/* ============================================================
   QUINTANORTE — Capa de estilo orgánica
   Cárgalo DESPUÉS de css/style.css en el <head>:
   <link href="css/style-mejorado.css" rel="stylesheet">
   ============================================================ */

/* -------- 1. Tipografía con carácter --------
   Open Sans queda como cuerpo. Sumamos una display con personalidad
   (Bebas Neue es alta, cervecera, gratis y carga en <40KB).
   Agrega esto al <head> ANTES de tu Open Sans:
   <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,600;9..144,800&display=swap" rel="stylesheet">
*/

:root {
  --qn-primary: #d4a017;     /* dorado cerveza — ajusta al de tu marca */
  --qn-dark: #1a1410;        /* casi negro cálido */
  --qn-cream: #faf6ef;       /* fondo crema, no blanco puro */
  --qn-accent: #c0392b;      /* rojo acento */
  --qn-muted: #7a6f63;
  --qn-shadow-soft: 0 10px 40px -10px rgba(26, 20, 16, 0.25);
  --qn-shadow-card: 0 20px 60px -20px rgba(26, 20, 16, 0.35);
}

/* Fuente display para títulos grandes y mayúsculas */
.display-4,
.navbar-brand h1,
.card-title,
h1.text-black,
h2.text-uppercase {
  font-family: 'Bebas Neue', 'Open Sans', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* Cuerpo con un toque más editorial */
body {
  background-color: var(--qn-cream);
  font-family: 'Open Sans', sans-serif;
  color: var(--qn-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* -------- 2. Topbar: de bloques a línea fluida -------- */
.bg-primary.py-3 {
  padding: 1.2rem 0 !important;
  background: linear-gradient(135deg, var(--qn-primary) 0%, #e8b840 100%) !important;
  position: relative;
  overflow: hidden;
}

.bg-primary.py-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.bg-primary .h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}


/* -------- 3. Navbar más ligero, sticky en scroll -------- */
.nav-bar {
  position: sticky !important;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 246, 239, 0.85);
  transition: box-shadow 0.3s ease;
}

.navbar.bg-QN {
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-brand h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--qn-dark) !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover h1 {
  color: var(--qn-primary) !important;
}

.nav-item.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 1.5rem 1rem !important;
  color: var(--qn-dark) !important;
  transition: color 0.25s ease;
}

.nav-item.nav-link::after {
  content: "";
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--qn-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.nav-link:hover::after,
.nav-item.nav-link.active::after {
  width: 24px;
  left: calc(50% - 12px);
}


/* -------- 4. Carrusel: imagen con tratamiento más cinematográfico -------- */
.carousel-item img {
  filter: brightness(0.7) saturate(1.1);
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(26, 20, 16, 0.6) 100%
  );
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
}

.carousel-caption h1.display-4 {
  font-family: 'Fraunces', 'Bebas Neue', serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.carousel-caption h5 {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.2em;
  font-weight: 600;
  opacity: 0.92;
  animation: slideUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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


/* -------- 5. Sección Polas: respiración y asimetría sutil -------- */
#Polas {
  padding: clamp(4rem, 10vw, 8rem) 0 !important;
  background:
    radial-gradient(ellipse at top right, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
    var(--qn-cream);
}

#Polas h1.display-4 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 0.5rem !important;
  position: relative;
}

#Polas h2.text-primary {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--qn-muted) !important;
  font-weight: 400 !important;
  margin-bottom: 4rem !important;
  position: relative;
}

#Polas h2.text-primary::before,
#Polas h2.text-primary::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--qn-primary);
  vertical-align: middle;
  margin: 0 1rem;
}

.pola-card {
  display: block;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pola-card:hover {
  transform: translateY(-8px);
  text-decoration: none;
}

.pola-img-container {
  position: relative;
  padding: 2rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
  transition: all 0.4s ease;
}

.pola-card:hover .pola-img-container {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  box-shadow: var(--qn-shadow-card);
}

.pola-img-container img {
  max-width: 100%;
  height: auto;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pola-img-container .img-hover {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.pola-card:hover .img-normal { opacity: 0; transform: scale(0.95); }
.pola-card:hover .img-hover { opacity: 1; transform: translateX(-50%) scale(1.05); }

.pola-card h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-top: 1.5rem !important;
  transition: color 0.3s ease;
}

.pola-card:hover h5 {
  color: var(--qn-primary) !important;
}


/* -------- 6. Mapa: marco más limpio -------- */
#Lugares {
  padding: clamp(4rem, 10vw, 8rem) 0 !important;
  background: var(--qn-dark);
  color: var(--qn-cream);
}

#Lugares h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--qn-primary) !important;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 3rem !important;
}

.map-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}

.map-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* -------- 7. Servicios: tarjetas con personalidad -------- */
#Servicios {
  padding: clamp(4rem, 10vw, 8rem) 0 !important;
}

#Servicios h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  margin-bottom: 4rem !important;
}

#Servicios .card {
  border-radius: 20px !important;
  overflow: hidden;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

#Servicios .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--qn-primary), var(--qn-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#Servicios .card:hover {
  transform: translateY(-12px);
  box-shadow: var(--qn-shadow-card) !important;
}

#Servicios .card:hover::before {
  transform: scaleX(1);
}

#Servicios .card-body {
  padding: 3rem 2rem !important;
}

#Servicios .card i.fas {
  color: var(--qn-primary) !important;
  font-size: 2.5rem;
  margin-bottom: 1.5rem !important;
  transition: transform 0.4s ease;
}

#Servicios .card:hover i.fas {
  transform: scale(1.15) rotate(-5deg);
}

#Servicios .card-title {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

#Servicios .card-text {
  color: var(--qn-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* -------- 8. Footer más cálido y menos plano -------- */
.bg-dark {
  background: linear-gradient(180deg, var(--qn-dark) 0%, #0d0a08 100%) !important;
}

.bg-dark h2.text-white,
.bg-dark h4.text-white {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
}

.bg-dark .btn-outline-light {
  border-color: rgba(255,255,255,0.2) !important;
  transition: all 0.3s ease;
}

.bg-dark .btn-outline-light:hover {
  background: var(--qn-primary) !important;
  border-color: var(--qn-primary) !important;
  transform: translateY(-3px);
}

.bg-dark .form-control {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 10px !important;
  transition: background 0.3s ease;
}

.bg-dark .form-control:focus {
  background: rgba(255,255,255,0.12);
  box-shadow: none;
}

.bg-dark .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.bg-dark .btn-secondary {
  background: var(--qn-primary) !important;
  border: 0;
  padding: 0.9rem;
  border-radius: 10px !important;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bg-dark .btn-secondary:hover {
  background: #b8870f !important;
  transform: translateY(-2px);
}


/* -------- 9. Back to top más sutil -------- */
.back-to-top {
  background: var(--qn-dark) !important;
  border: 0 !important;
  border-radius: 50% !important;
  width: 48px;
  height: 48px;
  box-shadow: var(--qn-shadow-soft);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--qn-primary) !important;
  transform: translateY(-4px);
}


/* -------- 10. Mobile-first: ajustes para nativos digitales -------- */
@media (max-width: 768px) {

  /* Topbar: oculta las palabras laterales en móvil, solo logo */
  .bg-primary.py-3 .col-md-4:first-child,
  .bg-primary.py-3 .col-md-4:last-child {
    display: none;
  }

  .bg-primary.py-3 .col-md-4:nth-child(2) img {
    height: 60px !important;
  }

  /* Navbar móvil con backdrop más fuerte */
  .navbar-collapse {
    background: rgba(250, 246, 239, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--qn-shadow-soft);
  }

  .nav-item.nav-link {
    padding: 1rem 0.5rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-item.nav-link:last-child {
    border-bottom: 0;
  }

  /* Carrusel: caption se ajusta */
  .carousel-caption {
    padding: 1rem !important;
  }

  /* Polas: 2 columnas con más aire */
  #Polas .col-6 {
    margin-bottom: 2rem !important;
  }

  /* Servicios: cards apiladas con menos espacio entre ellas */
  #Servicios .col-md-4 {
    margin-bottom: 1.5rem;
  }

  /* Footer centrado y compacto */
  .bg-dark .col-lg-3,
  .bg-dark .col-lg-6 {
    text-align: center;
    margin-bottom: 2.5rem !important;
  }
}


/* -------- 11. Animación al hacer scroll (CSS puro) -------- */
@media (prefers-reduced-motion: no-preference) {
  .pola-card,
  #Servicios .card,
  .map-responsive {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

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


/* -------- 12. Selección de texto en color de marca -------- */
::selection {
  background: var(--qn-primary);
  color: var(--qn-dark);
}
/* ============================================================
   AGE GATE — Estilos del modal de verificación
   Agrega este bloque AL FINAL de tu css/style-mejorado.css
============================================================ */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: ageGateFadeIn 0.4s ease;
}

.age-gate[hidden] {
  display: none;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-gate-card {
  position: relative;
  background: var(--qn-cream, #faf6ef);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.5);
  animation: ageGateSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1.5rem;
}

.age-gate-card h2 {
  font-family: 'Bebas Neue', 'Open Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: 0.05em;
  color: var(--qn-dark, #1a1410);
  margin-bottom: 1rem;
}

.age-gate-card p {
  color: var(--qn-muted, #7a6f63);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-age-confirm,
.btn-age-deny {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0;
}

.btn-age-confirm {
  background: var(--qn-primary, #d4a017);
  color: var(--qn-dark, #1a1410);
  box-shadow: 0 8px 20px -8px rgba(212, 160, 23, 0.6);
}

.btn-age-confirm:hover {
  transform: translateY(-2px);
  background: #c0900e;
  box-shadow: 0 12px 28px -8px rgba(212, 160, 23, 0.7);
}

.btn-age-deny {
  background: transparent;
  color: var(--qn-muted, #7a6f63);
  border: 1px solid rgba(0,0,0,0.1);
}

.btn-age-deny:hover {
  background: rgba(0,0,0,0.04);
  color: var(--qn-dark, #1a1410);
}

.age-gate-legal {
  display: block;
  font-size: 0.72rem;
  color: var(--qn-muted, #7a6f63);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@keyframes ageGateFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ageGateSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .age-gate-card {
    border-radius: 16px;
  }
  .age-gate-logo { height: 56px; }
}

