/* ═══════════════════════════════════════════════════════════════
   PRIMMATE VIP ESTUDIO — layouts-v2.css
   Navbar, Hero, Footer (claro), Grid, Responsive mobile-first
═══════════════════════════════════════════════════════════════ */

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 118, 58, 0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  cursor: pointer;
}

.navbar__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.navbar__brand:hover .navbar__logo-img {
  transform: scale(1.1);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 18px rgba(212, 118, 58, 0.45);
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.navbar__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(
    90deg,
    var(--text-primary)  0%,
    var(--gold-light)    45%,
    var(--text-primary)  55%,
    var(--text-primary)  100%
  );
  background-size: 250% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.6s ease;
}

.navbar__brand:hover .navbar__brand-name {
  background-position: 0% center;
}

.navbar__brand-sub {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
  transition: color 0.3s ease;
}

.navbar__brand:hover .navbar__brand-sub {
  color: var(--gold);
}

.navbar__brand.roaring .navbar__logo-img {
  animation: gorilla-roar 0.5s ease forwards;
}

@keyframes gorilla-roar {
  0%   { transform: scale(1)    rotate(0deg); }
  15%  { transform: scale(1.15) rotate(-6deg); box-shadow: 0 0 0 3px var(--gold), 0 0 28px rgba(212,118,58,0.6); }
  30%  { transform: scale(1.15) rotate(5deg);  }
  45%  { transform: scale(1.12) rotate(-4deg); }
  60%  { transform: scale(1.1)  rotate(3deg);  }
  80%  { transform: scale(1.06) rotate(-1deg); }
  100% { transform: scale(1.1)  rotate(0deg);  box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(212,118,58,0.45); }
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: var(--space-2) 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar__link:hover { color: var(--text-primary); }
.navbar__link:hover::after { transform: scaleX(1); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;  /* fallback navegadores viejos */
  min-height: 100svh; /* iOS/Android: alto visible real, sin contar la barra del navegador */
  display: flex;
  /* El emblema del gorila ocupa el tercio superior de la foto: el texto se
     ancla abajo para no taparlo. De ahí flex-end en lugar de center. */
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-repeat: no-repeat;
  /* `cover` + `center top`: la foto llena SIEMPRE toda la pantalla, sin franjas
     negras a los costados, y el anclaje arriba mantiene el medallón a la vista
     recorte lo que recorte.

     Se probó `auto 100%` para que la escena entrara entera, pero dejaba bandas
     negras laterales bien visibles: los bordes de la foto tienen hojas
     iluminadas, no funden a negro.

     Que `cover` no le monte el nombre encima de la cara depende del ENCUADRE de
     la imagen, no del CSS: los archivos hero-* se generan con el medallón
     desplazado hacia arriba y la franja inferior fundida a negro, justamente
     para dejar libre la mitad de abajo. Si se reemplaza alguna foto del hero,
     respetar eso — medallón terminando antes del 55% del alto.

     NO va overlay general: un velo oscuro apagaría la lámpara y el halo LED,
     que son el foco visual. El contraste del texto lo da el zócalo de ::after. */
  background-position: center top;
  background-size: cover;
  background-image: url('../img/hero-1920.jpg');
}

/* Pantallas grandes de alta densidad (Retina, 4K) */
@media (min-width: 1025px) and (min-resolution: 1.5dppx) {
  .hero__bg { background-image: url('../img/hero-2560.jpg'); }
}

/* Monitores ultrapanorámicos y bajos (21:9 tipo 2560x1080): al ser mucho más
   anchos que 16:9, `cover` escala por el ancho y el medallón crece hasta
   rozar el nombre. Subir el encuadre 6vh alcanza y sobra; el recorte extra
   se lo lleva la parte de arriba, que es fondo. */
@media (min-aspect-ratio: 2/1) and (max-height: 1150px) {
  .hero__bg { background-position: center -6vh; }
}

/* Celular o tablet con poca altura (teléfono apaisado, ventana chica): el
   medallón queda grande respecto al alto disponible. Mismo remedio. */
@media (max-width: 768px) and (max-height: 820px) {
  .hero__bg { background-position: center -8vh; }
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Solo zócalo inferior: da contraste al CTA y a la flecha de scroll.
     De la mitad para arriba queda limpio para no tocar el cono de luz. */
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.30) 18%,
    transparent 44%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* Anclado abajo: arranca por debajo del emblema (que termina al ~59% de
     la foto) y deja aire para la flecha de scroll. */
  padding: var(--space-8) var(--space-6) clamp(4.5rem, 10vh, 8rem);
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 8px;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.hero__brand-vip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.hero__brand-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text-muted);
}

.hero__brand-estudio {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 7px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: var(--space-8);
}

.hero__cta {
  min-width: 200px;
  /* Lift sutil para despegar el CTA del fondo fotográfico */
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

/* Legibilidad del texto sobre fondo fotográfico */
.hero__brand-name,
.hero__brand-vip,
.hero__brand-estudio,
.hero__tagline {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  transition: var(--transition);
  animation: bounce 2s infinite;
  padding: var(--space-2);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__scroll-hint:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── FOOTER (modo claro v2) ─────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer--light {
  background: var(--bg-light);
  border-top: 1px solid var(--border-on-light);
  color: var(--text-on-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-6);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.footer--light .footer__logo { color: var(--gold-deep); }

.footer__logo span {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 3px;
  display: block;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.footer--light .footer__logo span { color: var(--muted-on-light); }

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

.footer--light .footer__tagline { color: var(--text-on-light); }

.footer__nav-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer--light .footer__nav-title { color: var(--gold-deep); }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer--light .footer__nav a { color: var(--text-on-light); }
.footer__nav a:hover { color: var(--gold); padding-left: 4px; }
.footer--light .footer__nav a:hover { color: var(--gold-deep); }

.footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer--light .footer__info-item { color: var(--text-on-light); }

.footer__info-item svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.footer--light .footer__info-item svg { color: var(--gold-deep); }

.footer__whatsapp {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition, 0.2s ease);
}

.footer__whatsapp:hover { color: var(--gold); }
.footer--light .footer__whatsapp:hover { color: var(--gold-deep); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-6) var(--space-6);
  text-align: center;
}

.footer--light .footer__bottom { border-top-color: var(--border-on-light); }

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.footer--light .footer__bottom p { color: var(--muted-on-light); }

.footer__credit {
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer__credit:hover { opacity: 1; }

.footer__credit span {
  color: var(--gold);
  font-weight: 600;
}

.footer--light .footer__credit span { color: var(--gold-deep); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-title { font-size: var(--text-3xl); }

  .navbar__nav {
    position: fixed;
    top: 72px; right: 0;
    width: min(85vw, 320px); height: calc(100vh - 72px);
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .navbar__nav.open { transform: translateX(0); }
  .navbar__toggle   { display: flex; }
  .navbar__link     { padding: var(--space-3) 0; font-size: var(--text-base); }

  .hero__brand-name { font-size: 2.2rem; letter-spacing: 5px; }
  .hero__cta { width: 100%; max-width: 280px; justify-content: center; }

  /* Mobile/tablet: encuadre vertical 9:16 de la misma escena.
     Es un recorte lateral del render original (no un reescalado deformado),
     más cerrado que en escritorio para que el medallón se vea grande. */
  .hero__bg { background-image: url('../img/hero-1080.jpg'); }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid     { flex-direction: column; align-items: center; }

  .cta-section__inner { flex-direction: column; text-align: center; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-6);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero__title { font-size: var(--text-4xl); }
  .auth-card   { padding: var(--space-8) var(--space-6); }

  /* Hero compacto: todo entra en la ventana visible del teléfono */
  .hero__content       { padding: var(--space-6) var(--space-4) clamp(3.5rem, 8vh, 5.5rem); }
  .hero__brand-name    { font-size: 1.9rem; letter-spacing: 4px; }
  .hero__brand-estudio { margin-bottom: var(--space-4); }
  .hero__tagline       { margin-bottom: var(--space-4); }
  .hero__scroll-hint   { bottom: var(--space-4); }
}

/* Teléfonos apaisados o pantallas muy bajas: el emblema y el texto compiten
   por el mismo alto, así que se comprime todo y se achica el zócalo.
   El corte va en 780px (no 700) porque a 704px de alto el nombre todavía
   llegaba a tocar el medallón. */
@media (max-height: 780px) {
  .hero__content       { padding-bottom: var(--space-10); }
  .hero__brand-name    { font-size: 1.8rem; margin-bottom: var(--space-2); }
  .hero__brand-estudio { margin-bottom: var(--space-3); }
  .hero__tagline       { margin-bottom: var(--space-3); }
  .hero__scroll-hint   { bottom: var(--space-3); }
}

@media (max-width: 360px) {
  .hero__brand-name { font-size: 1.75rem; letter-spacing: 3px; }
}
