/* 
==========================================================================
   LANDING PAGE BENTO GRID - ESTILOS COMPATIBLES CON WP / GUTENBERG
==========================================================================
   Autor: Senior Frontend Developer WordPress
   Colores:
     - Fondo Oscuro Principal: #1D3527 (Verde Pino)
     - Fondo Claro Secundario: #F8F9FA (Gris Claro)
     - Acento/CTA: #F3A922 (Amarillo Mostaza)
     - Texto Oscuro: #111111 (Sobre fondo claro)
     - Texto Claro: #FFFFFF (Sobre fondo oscuro)
========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,500;1,600;1,700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Variables de Diseño CSS */
:root {
  --color-dark-bg: #1D3527;
  --color-dark-card: #182C21;
  --color-light-bg: #F8F9FA;
  --color-accent: #E65F2B;
  --color-text-dark: #111111;
  --color-text-light: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);
  
  --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1200px;
}

/* Reset de Estilos Básicos para Demostración */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Contenedores */
.section-wrapper {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.section-wrapper.light-theme {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
}

.section-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Encabezados de Sección */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.light-theme .section-header .section-tag {
  color: var(--color-dark-bg);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.light-theme .section-header p {
  color: rgba(17, 17, 17, 0.7);
}

/* ==========================================================================
   SISTEMA DE RETÍCULA BENTO GRID (RESPONSIVE)
========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  grid-auto-flow: dense;
}

.bento-card {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  min-height: 250px;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Clases de Tamaño Bento */
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }

/* Bento Cards para Temas Claros */
.light-theme .bento-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.05);
}

.light-theme .bento-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   COMPONENTES DE DISEÑO CLAVE
========================================================================== */

/* 1. Tarjetas Bento Asimétricas con Imagen de Fondo y Etiquetas Flotantes */
.bento-card.has-media-bg {
  min-height: 380px;
  justify-content: flex-end;
}

.bento-card .media-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition-smooth);
}

.bento-card:hover .media-bg {
  transform: scale(1.04) rotate(0.5deg);
}

/* Superposición oscura gradual para legibilidad (Cinematic Vignette) */
.bento-card.has-media-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(29, 53, 39, 0) 30%,
    rgba(29, 53, 39, 0.75) 70%,
    rgba(24, 44, 33, 0.95) 100%
  );
  z-index: 2;
  transition: var(--transition-smooth);
}

.bento-card.has-media-bg:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(29, 53, 39, 0) 20%,
    rgba(29, 53, 39, 0.8) 60%,
    rgba(24, 44, 33, 1) 100%
  );
}

/* Etiqueta Flotante Superior */
.bento-card .floating-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  background: rgba(29, 53, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bento-card .floating-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

/* Contenido dentro de Bento Card */
.bento-card .card-body {
  position: relative;
  z-index: 3;
}

.bento-card .card-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.bento-card .card-text {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.light-theme .bento-card .card-text {
  color: rgba(17, 17, 17, 0.7);
}

/* 2. Botones Píldora con Hover Dinámico */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
  width: fit-content;
}

.btn-pill:hover {
  transform: translateY(-3px);
  background-color: #D44A17;
  box-shadow: 0 8px 24px rgba(230, 95, 43, 0.35);
}

.btn-pill .btn-arrow-icon {
  margin-left: 10px;
  display: inline-flex;
  transition: var(--transition-smooth);
}

.btn-pill:hover .btn-arrow-icon {
  transform: translateX(6px) scale(1.1);
}

/* Botón Secundario Outline */
.btn-pill-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-pill-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-light);
  box-shadow: none;
}

.btn-pill-outline:hover .btn-arrow-icon {
  color: var(--color-accent);
}

.light-theme .btn-pill-outline {
  color: var(--color-text-dark);
  border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .btn-pill-outline:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--color-text-dark);
}

/* 3. Componente Marquee Infinito (Bucle Continuo) */
.marquee-container {
  overflow: hidden;
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  padding: 20px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  user-select: none;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-infinite 25s linear infinite;
}

.marquee-text-group {
  display: flex;
  align-items: center;
}

.marquee-word {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Estrella separadora */
.marquee-word::after {
  content: '✦';
  font-size: 1.2rem;
  opacity: 0.6;
  margin-left: 20px;
}

@keyframes marquee-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pausar animación al pasar el cursor (opcional) */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* 4. Acordeón de FAQs Interactivo */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0.8; /* Requerimiento: opacidad de inactivos al 80% */
}

.faq-item:hover {
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-header {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0;
  transition: var(--transition-fast);
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  font-size: 1.1rem;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-body-content {
  padding: 0 30px 24px 30px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ESTADO ACTIVO - El ítem activo adquiere fondo de acento y tipografía oscura */
.faq-item.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  opacity: 1 !important; /* Requerimiento: ítem activo destaca al 100% de opacidad */
  box-shadow: 0 8px 24px rgba(230, 95, 43, 0.25);
}

.faq-item.active .faq-question {
  color: var(--color-text-dark);
}

.faq-item.active .faq-toggle-icon {
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-text-dark);
  transform: rotate(45deg); /* Efecto cruz a 'X' */
}

.faq-item.active .faq-body-content {
  color: rgba(17, 17, 17, 0.85);
}


/* ==========================================================================
   ESTRUCTURAS ESPECÍFICAS DE LAS SECCIONES (FLOW SOL CARRETTONI)
========================================================================== */

/* A. Navigation Header */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, border-bottom-color 0.4s ease, padding 0.4s ease;
}

/* Estado del Header cuando se hace scroll */
.nav-header.nav-scrolled {
  padding: 16px 24px;
  background: rgba(12, 24, 16, 0.85); /* Fondo verde bosque oscuro translúcido */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-decoration: none;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent);
}

/* B. Hero Section (Cinematic Full-Width Layout) */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('img/tomi_hero_corn_new.jpg');
  background-size: cover;
  background-position: right center;
  padding: 140px 24px 80px 24px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(29, 53, 39, 0.95) 0%,
    rgba(29, 53, 39, 0.85) 30%,
    rgba(29, 53, 39, 0.4) 60%,
    rgba(29, 53, 39, 0.1) 100%
  );
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-text-content {
  max-width: 650px;
  text-align: left;
}

.hero-main-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-accent); /* Amarillo Mostaza */
  margin-top: 12px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtags {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 8px;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* C. Servicios Section */
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
  display: inline-block;
  color: var(--color-accent);
}

/* D. Blog Section */
.blog-grid-card {
  min-height: 340px;
}

.blog-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* E. Storytelling Trajectory Section */
.story-section {
  padding: 100px 24px;
  background-color: var(--color-dark-bg);
}

.story-block {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 100px;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block:nth-child(even) {
  flex-direction: row-reverse;
}

.story-image-container {
  flex: 1.1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition-smooth);
}

.story-block:hover .story-img {
  transform: scale(1.04) rotate(0.5deg);
}

.story-text-container {
  flex: 1;
}

.story-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(230, 95, 43, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(230, 95, 43, 0.05);
}

.story-text-container h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.story-text-container p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* F. Alianzas Section (Brand Logos Grid) */
.alliances-section {
  padding: 80px 24px;
  background-color: var(--color-dark-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.alliances-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(17, 17, 17, 0.4); /* Cambiado a gris oscuro traslúcido */
  margin-bottom: 48px;
}

.alliances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  align-items: center;
  justify-items: center;
}

.alliance-logo {
  max-width: 140px;
  max-height: 48px;
  opacity: 0.65;
  color: #222222; /* Color base oscuro */
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.alliance-logo:hover {
  opacity: 1;
  color: var(--color-accent);
  filter: grayscale(0%);
  transform: scale(1.05);
}

.alliance-logo-wrapper.principal-logo .alliance-logo {
  max-width: 180px;
  max-height: 60px;
  opacity: 1;
  color: #111111;
  filter: grayscale(0%);
}

.alliance-logo-wrapper.principal-logo .alliance-logo:hover {
  color: var(--color-accent);
}

/* G. Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.contact-info {
  grid-column: span 5;
}

.contact-form-container {
  grid-column: span 7;
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(230, 95, 43, 0.15);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23FFFFFF' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 24px;
  padding-right: 40px;
  cursor: pointer;
}

select.form-control option {
  background-color: var(--color-dark-card);
  color: var(--color-text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}


/* ==========================================================================
   MEDIA QUERIES - GARANTIZAR RESPONSIVIDAD DEL BENTO GRID Y ACCORDION
========================================================================== */

/* Tablets y Pantallas Medianas (Ajuste de Bento Layouts) */
@media (max-width: 992px) {
  .section-wrapper {
    padding: 60px 20px;
  }
  
  .span-8, .span-6, .span-4, .span-3 {
    grid-column: span 6;
  }
  
  .hero-cinematic {
    padding-top: 120px;
  }
  
  .hero-main-title {
    font-size: 3.8rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-info, .contact-form-container {
    grid-column: span 1;
  }
  
  .nav-links {
    display: none; /* En WordPress real se usaría un menú hamburguesa */
  }
  
  .story-block {
    gap: 32px;
    margin-bottom: 60px;
  }
  
  .story-text-container h3 {
    font-size: 1.8rem;
  }
}

/* Dispositivos Móviles (Conversión a Flujo Vertical Completo) */
@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bento-card {
    grid-column: span 1 !important; /* Forzar 100% de ancho */
    grid-row: span 1 !important; /* Desarmar row spans para evitar espacios vacíos */
    padding: 24px;
    min-height: auto;
  }
  
  .bento-card.has-media-bg {
    min-height: 300px;
  }
  
  .hero-cinematic {
    background-image: url('img/tomi_hero_corn_mobile.jpg');
    background-position: center center;
    padding-top: 120px;
  }
  
  .hero-bg-overlay {
    background: rgba(29, 53, 39, 0.85);
  }
  
  .hero-main-title {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .marquee-word {
    font-size: 1.3rem;
    padding: 0 20px;
  }
  
  .faq-header {
    padding: 20px;
  }
  
  .faq-question {
    font-size: 1rem;
    max-width: 85%;
  }
  
  .faq-body-content {
    padding: 0 20px 20px 20px;
    font-size: 0.9rem;
  }
  
  .contact-form-container {
    padding: 24px;
  }
  
  .story-block, .story-block:nth-child(even) {
    flex-direction: column !important;
    gap: 24px;
    margin-bottom: 48px;
  }
  
  .story-image-container {
    width: 100%;
    min-height: 420px !important;
    flex: none;
  }
  
  .story-text-container {
    width: 100%;
  }
}

/* ==========================================================================
   MOBILE MENU DRAWER & BURGER
   ========================================================================== */
.mobile-menu-toggle {
  display: none; /* Oculto en escritorio */
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
  color: var(--color-accent);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -340px; /* Oculto fuera de pantalla a la derecha */
  width: 320px;
  height: 100vh;
  background-color: var(--color-dark-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
  right: 0; /* Deslizar hacia adentro */
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px 30px 30px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.mobile-menu-close:hover {
  color: var(--color-accent);
}

.mobile-nav-links {
  list-style: none;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  padding-left: 8px; /* Efecto micro-animación deslizante */
}

/* ==========================================================================
   FAQ ACCORDION STYLES
   ========================================================================== */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon-arrow {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  transition: transform var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.quote-section blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.85rem; /* Letra un poco más chica */
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 20px auto;
  letter-spacing: normal;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links, #nav-cta {
    display: none !important; /* Ocultar menú de escritorio */
  }
  .mobile-menu-toggle {
    display: block; /* Mostrar botón hamburguesa */
  }
}

@media (max-width: 768px) {
  .quote-section blockquote {
    font-size: 1.6rem !important;
  }
  .stat-number {
    font-size: 2.2rem !important;
  }
  .mobile-menu-drawer {
    width: 280px;
  }
}

/* ==========================================================================
   INSTAGRAM GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 100px 24px;
  background-color: var(--color-dark-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-dark-bg);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--color-accent);
}

.gallery-media-container {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 Aspect Ratio for Instagram style */
  overflow: hidden;
}

.gallery-media-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-media-container img {
  transform: scale(1.05);
}

/* Video specific overlays */
.gallery-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-video-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.play-icon-wrapper {
  width: 54px;
  height: 54px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(230, 95, 43, 0.4);
  transition: var(--transition-smooth);
}

.gallery-item:hover .play-icon-wrapper {
  transform: scale(1.15);
  background-color: #FFFFFF;
  color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.video-views {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(24, 44, 33, 0.85);
  color: #FFFFFF;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

/* Photo specific overlays */
.gallery-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 95, 43, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-photo-overlay {
  background: rgba(230, 95, 43, 0.15);
  opacity: 1;
}

.instagram-icon-wrapper {
  width: 46px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(0.85);
  transition: var(--transition-smooth);
}

.gallery-item:hover .instagram-icon-wrapper {
  transform: scale(1);
}

.gallery-info {
  padding: 16px;
  background: var(--color-dark-card);
  border-top: 1px solid var(--color-border);
}

.gallery-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   VIDEO POPUP MODAL
   ========================================================================== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 33, 23, 0.85);
  backdrop-filter: blur(10px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 460px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10001;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #FFF;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10003;
  line-height: 1;
  transition: var(--transition-fast);
}

.video-modal-close:hover {
  background: var(--color-accent);
  color: #FFF;
  transform: rotate(90deg);
}

.video-modal-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 135%; /* Ratio idónea para publicaciones/reels embebidos de Instagram */
  background: #000;
}

.video-modal-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

