/* ===================================================
   home.css — Navbar + Hero
   Coach Sebastián Zamperoni
=================================================== */


/* ====================================================
   INTRO SPLASH — Pantalla de entrada SZ
==================================================== */
#sz-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Líneas de fondo animadas (efecto "pista") */
#sz-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0px,
      transparent 60px,
      rgba(30,91,198,0.04) 60px,
      rgba(30,91,198,0.04) 61px
    );
  animation: introLines 1.8s ease forwards;
}

@keyframes introLines {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Logo central */
.sz-intro__logo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sz-intro__svg {
  /* SVG inline — fondo transparente, glow solo sobre las letras */
  width: 200px;
  height: 200px;
  overflow: visible;          /* permite que el glow desborde el viewBox */
  filter: drop-shadow(0 0 0px rgba(255,68,228,0));
  transition: filter 0.55s ease, opacity 0.5s ease;
  opacity: 0;
}

.sz-intro__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,68,228,0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Glow cuando está completo */
.sz-intro--glow .sz-intro__svg {
  /* Glow en capas — ilumina SOLO las letras, sin cuadrado */
  filter: drop-shadow(0 0 40px rgba(255,68,228,0.8))
          drop-shadow(0 0 14px rgba(255,68,228,1))
          drop-shadow(0 0 70px rgba(255,68,228,0.4));
}

/* Wipe: panel que barre la pantalla hacia arriba */
.sz-intro__wipe {
  position: absolute;
  inset: 0;
  background: #080c14;
  transform: translateY(100%);
  z-index: 3;
}

/* La animación de salida: el wipe sube y arrastra todo */
.sz-intro--exit {
  animation: introExit 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.sz-intro--exit .sz-intro__wipe {
  animation: introWipe 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introExit {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 1; }
}

@keyframes introWipe {
  /* El wipe sube un poco antes para crear la ilusión de barrido */
  0%   { transform: translateY(100%); }
  30%  { transform: translateY(0%); }
  100% { transform: translateY(0%); }
}

/* Hero entra suavemente después del intro */
.intro-done .hero__content {
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

/* ====================================================
   NAVBAR
==================================================== */
.header { position: relative; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--t), border-color var(--t);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 1.4rem var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--t);
}

.navbar.scrolled .navbar__inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-white);
}

.navbar__logo-icon {
  width: 34px; height: 34px;
  background: var(--color-orange);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar__logo-text strong { font-weight: 900; }
/* ---- Logo SZ — SVG inline con Cormorant Garamond ---- */
/* El SVG es transparente por naturaleza: drop-shadow solo ilumina las letras */

/* Navbar y footer */
.navbar__logo-svg,
.footer__logo-svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: visible;        /* permite que el glow salga del viewBox */
  filter: drop-shadow(0 0 4px rgba(255,68,228,0.3));
  transition: filter var(--t);
}
/*Footer data profe */
.footer-data-profe { 
    display: block;
    
}

.navbar__logo:hover .navbar__logo-svg,
a:hover .footer__logo-svg {
  filter: drop-shadow(0 0 12px rgba(255,68,228,0.8))
          drop-shadow(0 0 4px rgba(255,68,228,1));
}

/* Badge "SZ TRIA TEAM" en el hero */
.hero__badge-svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255,68,228,0.5));
}

/* Mini logo en la foto "Sobre mí" */
.sobre__tag-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(255,68,228,0.35));
}

/* ---- Hero team badge ---- */
.hero__team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,68,228,0.08);
  border: 1px solid rgba(255,68,228,0.3);
  border-radius: var(--r-full);
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-pink);
}


/* Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.navbar__link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transition: transform var(--t);
  transform-origin: left;
}

.navbar__link:hover,
.navbar__link.active { color: var(--color-white); }

.navbar__link:hover::after,
.navbar__link.active::after { transform: scaleX(1); }

.navbar__cta { padding: 0.6rem 1.2rem; font-size: 0.7rem; }

/* Toggle hamburguesa */
.navbar__toggle {
  display: none;
  font-size: 1.7rem;
  color: var(--color-white);
  z-index: 201;
}

@media (max-width: 1100px) {
  /* Forzamos a que el botón hamburguesa original de la barra quede por encima de la persiana */
  .navbar__toggle {
    display: block;
    position: relative;
    z-index: 400; /* Mayor que el z-index de la persiana (300) para quedar arriba */
  }

  .navbar__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 22, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 300; /* Queda justo por debajo del botón toggle */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
  }

  .navbar__links.open { 
    display: flex; 
  }
}

/* ====================================================
   HERO
==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagen de fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55);
}

/* Overlay en capas */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,10,22,0.92) 0%, rgba(8,12,20,0.4) 65%, transparent 100%),
    linear-gradient(0deg,   rgba(6,10,22,0.65) 0%, transparent 55%);
}

/* Línea diagonal decorativa */
.hero__diagonal {
  position: absolute;
  top: 0; right: 18%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--color-orange) 40%, transparent 100%);
  opacity: 0.35;
  transform: skewX(-12deg);
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 9rem var(--sp-md) 5rem 6rem;
  animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

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

/* Disciplinas eyebrow */
.hero__disciplines {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__disciplines span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__disciplines span i { color: var(--color-orange); font-size: 0.75rem; }
.hero__disciplines .sep { color: var(--color-orange); font-weight: 900; }

/* H1 */
.hero__title {
  font-family: var(--font-display);
  color: var(--color-white);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
 
}

.hero__title em.hero__line {
  font-style: italic;
  color: var(--color-pink);
  font-weight: 700;
  display: block;
}

/* Subtítulo */
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(212,207,201,0.75);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* CTAs */
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-blue-lt);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero__stat-sep {
  width: 1px; height: 2.8rem;
  background: var(--color-border);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.3);
  font-size: 1.3rem;
  animation: scrollBounce 2.2s ease infinite;
  transition: color var(--t);
}

.hero__scroll:hover { color: var(--color-pink); }

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

/* ====================================================
   RESPONSIVE — home.css
==================================================== */
@media (max-width: 1024px) {
  .hero__content { padding-left: var(--sp-md); }
}

@media (max-width: 768px) {
  /* Hero ajustes mobile */
  .hero__content { padding: 7rem var(--sp-sm) 4rem; max-width: 100%; }
  .hero__diagonal { display: none; }
  .hero__subtitle br.hero__br { display: none; }
  .hero__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  /* iPhone 14 y similares (390px) */
  .hero__content { padding: 6rem 1.1rem 3.5rem; }
  .hero__title { font-size: clamp(1.9rem, 9.5vw, 2.6rem); line-height: 1.0; }
  .hero__subtitle { font-size: 0.92rem; }
  .hero__stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero__stat-sep { display: none; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__team-badge { font-size: 0.6rem; }
}

@media (max-width: 390px) {
  .hero__title { font-size: 1.75rem; }
  .hero__content { padding: 5.5rem 1rem 3rem; }
}

/* Copete SEO — visible pero pequeño */
.hero__title-seo {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

/* Título visual — el que ya tenías */
.hero__title-visual  {
  display: block;
  font-size: clamp(2.2rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero__title_line {
  color: var(--color-pink)
  ;
}

/* ====================================================
   SELECTOR DE IDIOMAS (ES | EN)
==================================================== */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--t);
  font-weight: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--color-white);
}

.lang-btn.active {
  color: var(--color-pink);
  pointer-events: none; /* Evita que se pueda clickear el idioma ya activo */
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 1024px) {
  .navbar__inner .lang-selector {
    display: none; /* Oculta el selector horizontal de computadoras */
  }
  .navbar__links .lang-selector {
    margin-left: 0;
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
    font-size: 1.1rem; /* Lo hace más grande y cómodo para tocar con el dedo */
  }
}
.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--t);
}
.lang-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
}