@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0a0a0a;           /* Fondo principal ultra oscuro */
  --bg-card: #141414;           /* Fondo de tarjetas ligeramente más claro */
  --secondary: #d4af37;         /* Dorado elegante */
  --secondary-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  --txt: #f4f4f4;               /* Texto principal blanco hueso */
  --txt-muted: #e4e4e4;         /* Texto secundario blanco hueso de alto contraste */
  --border: #2a2a2a;            /* Bordes sutiles */
  --font-h: 'Cinzel', 'Georgia', serif;
  --font-b: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 30px rgba(212, 175, 55, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  color: var(--txt);
  line-height: 1.6;
  background: var(--primary); /* Aplicado fondo oscuro al body */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-h);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--txt);
}

@keyframes golden-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #aa7c11 0%, #d4af37 25%, #f1d47e 50%, #d4af37 75%, #aa7c11 100%);
  background-size: 200% auto;
  color: var(--primary);
  padding: 12px 28px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid transparent;
  animation: golden-shift 9s linear infinite;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-light {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease;
}

.btn-light:hover {
  background: linear-gradient(135deg, #aa7c11 0%, #d4af37 25%, #f1d47e 50%, #d4af37 75%, #aa7c11 100%);
  background-size: 200% auto;
  color: var(--primary);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  animation: golden-shift 9s linear infinite;
}

.btn-sm {
  margin-top: 0;
  padding: 8px 20px;
}

/* HEADER & NAVEGACIÓN */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

@media (min-width: 1200px) {
  header {
    padding: 15px calc((100% - 1100px) / 2);
  }
}

.logo {
  height: 38px;
  display: flex;
  align-items: center;
}

.logo svg {
  height: 100%;
  width: auto;
}

.logo svg path,
.logo svg g {
  fill: url(#logo-gold-gradient);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 12px;
  transition: var(--transition);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
  color: var(--txt);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary);
  transition: var(--transition);
}

/* HERO */
.hero {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 550px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), var(--hero-bg);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero.fade-in::before {
  opacity: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.2;
}

.hero-subtitle {
  margin-bottom: 25px; 
  font-size: 1.2rem; 
  color: var(--secondary);
  font-style: italic;
  font-family: var(--font-h);
}

/* SECCIONES COMPARTIDAS */
.media-showcase, .welcome {
  padding: 80px 5%;
  text-align: center;
}

.welcome-text {
  margin-bottom: 40px; 
  color: var(--txt); 
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px; 
  margin-left: auto; 
  margin-right: auto;
}

.media-showcase h2, .welcome h2, .instagram-feed h2, .map-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.media-showcase h2::after, .welcome h2::after, .instagram-feed h2::after, .map-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-gradient);
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.service-card {
  padding: 40px 25px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.service-card i {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-desc {
  font-size: 1.05rem;
  color: var(--txt-muted);
  margin-bottom: 15px;
  min-height: 54px;
}

.service-price {
  font-weight: 700;
  color: var(--txt);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.service-link i {
  font-size: 10px;
  margin-bottom: 0;
}

.service-link:hover {
  color: var(--txt);
  border-bottom: 1px solid var(--txt);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* GRILLA DE INSTAGRAM */
.instagram-feed {
  background: #050505;
  padding: 80px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* CARRUSEL DE INSTAGRAM */
.instagram-carousel-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 1000px;
  margin: 40px auto 30px;
  padding: 10px 0;
}

/* Desvanecimiento izquierdo y derecho */
.instagram-carousel-wrapper::before,
.instagram-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.instagram-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #050505 0%, rgba(5, 5, 5, 0) 100%);
}

.instagram-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #050505 0%, rgba(5, 5, 5, 0) 100%);
}

.instagram-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollInstagram 20s linear infinite;
}


.instagram-carousel-track:hover {
  animation-play-state: paused;
}

.instagram-carousel-track img {
  width: 220px;
  height: 220px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.instagram-carousel-track img:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
  box-shadow: var(--shadow-hover);
}

@keyframes scrollInstagram {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* MAPA */
.map-section {
  padding: 80px 0 0;
  text-align: center;
  background: var(--primary);
}

.map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

/* FOOTER */
footer {
  background: #000000;
  color: var(--txt);
  padding: 70px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
  color: var(--secondary);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 14px;
  color: var(--txt-muted);
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--txt-muted);
}

/* ================= ADAPTACIÓN RESPONSIVA (TABLET & MOBILE) ================= */

/* TABLET (Hasta 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 15px 30px;
  }
  
  .hero h1 {
    font-size: 42px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  
  .overlap-section {
    grid-template-columns: 1fr;
    margin: 60px auto;
    gap: 30px;
  }
  
  .overlap-image, .overlap-content {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  
  .overlap-content {
    margin-top: 0;
    padding: 40px 30px;
    text-align: center;
  }
  
  .instagram-carousel-wrapper {
    max-width: 90%;
  }
}

/* MOBILE (Hasta 767px) */
@media (max-width: 767px) {

  header {
    padding: 15px 20px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 61px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    gap: 15px;
    border-bottom: 1px solid var(--secondary);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    font-size: 14px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .welcome {
    padding: 60px 20px;
  }
  
  .welcome-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .media-showcase h2, .welcome h2, .instagram-feed h2, .map-section h2 {
    font-size: 28px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 30px auto 0;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-col h4 {
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  
  .map-section iframe {
    height: 300px;
  }
}

/* SMARTPHONES PEQUEÑOS (Hasta 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
  
  .hero .btn {
    padding: 12px 20px;
    font-size: 11px;
  }
  
  .overlap-content h2 {
    font-size: 24px;
  }
  
  .overlap-content p {
    font-size: 15px;
  }
  
  .instagram-carousel-track img {
    width: 160px;
    height: 160px;
  }
  
  .instagram-carousel-wrapper::before,
  .instagram-carousel-wrapper::after {
    width: 60px;
  }
}


/* ================= GRID DE VIDEOS (NUEVO) ================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.video-container::after {
    content: '\f026'; /* Icono mute de FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--txt);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: var(--transition);
    pointer-events: none;
    z-index: 5;
}

.video-container:hover::after {
    content: '\f028'; /* Icono volumen de FontAwesome */
    background: var(--secondary);
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.video-container:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-caption {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: var(--txt);
    letter-spacing: 0.5px;
    font-family: var(--font-b);
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 320px;
    }
}


/* ================= SECCIÓN OVERLAP (TRANSFORMACIÓN JOKER) ================= */
.overlap-section {
    display: grid;
    /* Cuadrícula de 12 columnas para controlar la superposición */
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    max-width: 1200px;
    margin: 100px auto; /* Espacio amplio arriba y abajo */
    padding: 0 5%;
}

.overlap-image {
    /* La imagen ocupa de la columna 1 hasta la 7 */
    grid-column: 1 / 8; 
    grid-row: 1;
    z-index: 1;
    position: relative;
}

.overlap-image img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
}

.overlap-content {
    /* El texto ocupa de la columna 6 hasta la 12 (se superpone sobre la 6 y 7) */
    grid-column: 6 / 13; 
    grid-row: 1;
    z-index: 2; /* Lo trae al frente */
    
    /* Estética Dark Luxury para la tarjeta */
    background-color: var(--bg-card);
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Borde dorado translúcido */
    position: relative;
}

/* Efecto de brillo sutil detrás de la tarjeta superpuesta */
.overlap-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: var(--secondary-gradient);
    z-index: -1;
    border-radius: 9px;
    opacity: 0.15;
}

.overlap-content h2 {
    font-size: 2.8rem;
    color: var(--secondary); /* Título en dorado */
    margin-bottom: 20px;
    line-height: 1.2;
}

.overlap-content p {
    color: var(--txt);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 992px) {
    .overlap-section {
        display: flex;
        flex-direction: column;
        margin: 60px auto;
    }
    
    .overlap-image {
        width: 100%;
    }

    .overlap-image img {
        max-height: 600px; /* Evita que la foto sea excesivamente alta en celular */
    }
    
    .overlap-content {
        margin-top: -100px; /* Sube la caja de texto sobre la imagen */
        width: 90%;
        padding: 40px 30px;
        text-align: center;
    }

    .overlap-content h2 {
        font-size: 25px;
        text-align: center;
    }
}

/* WHATSAPP FLOATING CTA */
.whatsapp-cta {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
}

.whatsapp-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-cta.visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* WHATSAPP TOOLTIP */
.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: var(--bg-card);
  color: var(--txt);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 22px;
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: var(--bg-card) transparent;
  display: block;
  width: 0;
}