/* =============================================================================
   FARO AGENCIA — styles.css
   Estilos personalizados que complementan Tailwind CSS
   =============================================================================
   CONTENIDO:
     1. Variables globales (CSS custom properties)
     2. Componentes de UI (logos, videos, animaciones)
     3. Menú hamburguesa móvil
   ============================================================================= */


/* =============================================================================
   1. VARIABLES GLOBALES
   ============================================================================= */

:root {
  --primary-color:  #0D2C4D;
  --accent-color:   #f7d160;
  --whatsapp-green: #25D366;
}


/* =============================================================================
   2. COMPONENTES DE UI
   ============================================================================= */

/* Íconos de Material Symbols — configuración base */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Logos de clientes — grises por defecto, color en hover */
.client-logo-img {
  filter:     grayscale(100%) opacity(0.5);
  transition: all 0.4s ease;
}
.client-logo-img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Overlay cinematográfico sobre el reproductor de video */
.video-overlay-cinematic {
  background: radial-gradient(
    circle at center,
    rgba(13, 44, 77, 0.4)  0%,
    rgba(13, 44, 77, 0.85) 100%
  );
}

/* Comilla decorativa en tarjetas de testimonios */
.quote-ornament {
  font-family: serif;
  line-height: 1;
}


/* =============================================================================
   2b. ANIMACIONES
   ============================================================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Estado inicial: invisible hasta que el scroll lo activa */
.reveal-on-scroll {
  opacity: 0;
}


/* =============================================================================
   3. MENÚ HAMBURGUESA MÓVIL
   ============================================================================= */

/* ── Botón ──────────────────────────────────────────────────────────────────── */

.hamburger-btn {
  position:        relative;
  width:           40px;
  height:          40px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  border-radius:   50%;
  background:      transparent;
  border:          none;
  padding:         0;
  transition:      background 0.3s ease;
}
.hamburger-btn:hover {
  background: rgba(13, 44, 77, 0.06);
}

.hamburger-icon {
  position: relative;
  width:    22px;
  height:   16px;
}

.hamburger-icon span {
  position:         absolute;
  left:             0;
  height:           1.5px;
  background-color: #0D2C4D;
  border-radius:    2px;
  transform-origin: center;
  transition:
    width     0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.4s ease;
}

.hamburger-icon span:nth-child(1) { top: 0px;  width: 22px; }
.hamburger-icon span:nth-child(2) { top: 7px;  width: 16px; }
.hamburger-icon span:nth-child(3) { top: 14px; width: 22px; }

/* Estado abierto: las líneas forman una X */
.hamburger-btn.active .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg);  width: 22px; }
.hamburger-btn.active .hamburger-icon span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.active .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }


/* ── Overlay ────────────────────────────────────────────────────────────────── */

.mobile-menu-overlay {
  position:                fixed;
  inset:                   0;
  background-color:        rgba(13, 44, 77, 0.18);
  backdrop-filter:         blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity:                 0;
  visibility:              hidden;
  z-index:                 40;
  transition:
    opacity    0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.5s ease;
}
.mobile-menu-overlay.active {
  opacity:    1;
  visibility: visible;
}


/* ── Panel lateral ──────────────────────────────────────────────────────────── */

.mobile-menu {
  position:       fixed;
  top:            0;
  right:          0;
  height:         100dvh;
  width:          82%;
  max-width:      340px;
  background:     #ffffff;
  box-shadow:     -20px 0 60px rgba(13, 44, 77, 0.08);
  transform:      translateX(100%);
  z-index:        50;
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
  transition:     transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.active {
  transform: translateX(0);
}


/* ── Header del panel ───────────────────────────────────────────────────────── */

.mobile-menu-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.25rem 1.5rem;
  border-bottom:   1px solid #f1f5f9;
  flex-shrink:     0;
}

.mobile-menu-close {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      transparent;
  border:          1px solid #e2e8f0;
  color:           #0D2C4D;
  cursor:          pointer;
  font-size:       1rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      background 0.3s ease, border-color 0.3s ease;
}
.mobile-menu-close:hover {
  background:   #f8fafc;
  border-color: #cbd5e1;
}


/* ── Contenido scrollable ───────────────────────────────────────────────────── */

.mobile-menu-content {
  padding:    1.25rem 1.5rem;
  flex:       1;
  overflow-y: auto;
}

.mobile-menu-links {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  margin-bottom:  1.5rem;
}


/* ── Links de navegación ────────────────────────────────────────────────────── */

.mobile-menu-link {
  display:         flex;
  align-items:     center;
  padding:         0.875rem 1rem;
  color:           #0D2C4D;
  text-decoration: none;
  font-weight:     600;
  font-size:       0.9375rem;
  border-radius:   0.625rem;
  min-height:      52px;
  opacity:         0;
  transform:       translateX(16px);
  transition:
    background 0.25s ease,
    color      0.25s ease,
    transform  0.25s ease,
    opacity    0s;
}
.mobile-menu-link:active {
  background: #f1f5f9;
  transform:  scale(0.98);
}

/* Animación de entrada escalonada (stagger) */
.mobile-menu.active .mobile-menu-link {
  opacity:   1;
  transform: translateX(0);
  transition:
    background 0.25s ease,
    color      0.25s ease,
    transform  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity    0.4s ease;
}
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.30s; }


/* ── Separador ──────────────────────────────────────────────────────────────── */

.mobile-menu-divider {
  height:     1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin:     1rem 0;
}


/* ── Botón CTA (WhatsApp) ───────────────────────────────────────────────────── */

.mobile-menu-cta {
  padding:     1.25rem 1.5rem;
  flex-shrink: 0;
  border-top:  1px solid #f8fafc;
}

.mobile-menu-cta-btn {
  width:           100%;
  padding:         0.875rem 1rem;
  background:      #f7d160;
  color:           #0D2C4D;
  text-decoration: none;
  font-weight:     900;
  font-size:       0.9375rem;
  border-radius:   0.625rem;
  border:          none;
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  min-height:      52px;
  transition:      background 0.3s ease, transform 0.2s ease;
}
.mobile-menu-cta-btn:active {
  transform:  scale(0.97);
  background: #ead445;
}


/* ── Bloquear scroll cuando el menú está abierto ────────────────────────────── */

body.menu-open {
  overflow: hidden;
}
