@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* =======================
   VARIABLES DE TEMA
======================= */
:root{
  --bg:#0b0b0b;
  --text:#eaeaea;
  --gold:#d4af37;
}

body.light{
  --bg:#ffffff;
  --text:#1a1a1a;
}

/* =======================
   RESET
======================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
  transition:.4s ease;
}

/* =======================
   HEADER
======================= */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 48px;
  position:sticky;
  top:0;
  z-index:10;
  background:var(--bg);
}

.logo{
  height:44px;
  transition:.3s;
}

.nav{
  display:flex;
  align-items:center;
}

.nav a{
  margin-left:26px;
  text-decoration:none;
  color:var(--text);
  font-weight:400;
  position:relative;
  transition:.3s;
}

.nav a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--gold);
  transition:.3s;
}

.nav a:hover{
  color:var(--gold);
}

.nav a:hover::after{
  width:100%;
}

/* =======================
   SWITCH DE TEMA
======================= */
.theme-switch{
  margin-left:26px;
}

.theme-switch input{
  display:none;
}

.theme-switch label{
  cursor:pointer;
  font-size:1.25rem;
  color:var(--gold);
  transition:.3s;
}

/* =======================
   HERO
======================= */
.hero{
  min-height:85vh;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:relative;
  overflow:hidden;
  padding:32px 24px;
}

/* LOGO FONDO */
.hero-bg{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events:none;
}

.hero-bg img{
  width:68vw;
  max-width:900px;
  min-width:320px;
  opacity:.15;
  filter:blur(1px);
  animation:float 14s ease-in-out infinite;
}

/* ANIMACIÓN */
@keyframes float{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.05)}
}

/* =======================
   CONTENIDO HERO
======================= */
.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
  padding:32px 20px;
}

/* TITULO */
.hero-content h1{
  color:var(--gold);
  font-size:3.1rem;
  font-weight:600;
  letter-spacing:1px;
  text-shadow:
    0 2px 4px rgba(0,0,0,.6),
    0 8px 24px rgba(212,175,55,.45);
}

/* TEXTO */
.hero-content p{
  margin:18px 0 26px;
  font-size:1.1rem;
  color:var(--text);
  text-shadow:
    0 1px 3px rgba(0,0,0,.6),
    0 4px 14px rgba(0,0,0,.45);
}

/* BOTÓN */
.cta{
  display:inline-block;
  padding:13px 36px;
  border:1px solid var(--gold);
  color:var(--gold);
  text-decoration:none;
  border-radius:28px;
  transition:.3s;
}

.cta:hover{
  background:var(--gold);
  color:#000;
}

/* =======================
   CARRUSEL
======================= */
.carousel{
  overflow:hidden;
  margin:40px auto 30px;
  max-width:1100px;
}

.track{
  display:flex;
  gap:56px;
  animation:scroll 22s linear infinite;
}

.track img{
  height:66px;
  opacity:.85;
  transition:.3s;
}

.track img:hover{
  opacity:1;
  transform:scale(1.05);
}

@keyframes scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* =======================
   FOOTER
======================= */
.footer{
  text-align:center;
  padding:32px;
  opacity:.6;
  font-size:.9rem;
}

/* =======================
   MODO CLARO
======================= */
body.light .hero-content h1{
  text-shadow:
    0 2px 4px rgba(255,255,255,.7),
    0 6px 18px rgba(0,0,0,.15);
}

body.light .hero-content p{
  text-shadow:
    0 1px 3px rgba(255,255,255,.8),
    0 4px 12px rgba(0,0,0,.15);
}

body.light .theme-switch label{
  color:#000;
}

/* =======================
   RESPONSIVE MÓVIL
======================= */
@media(max-width:768px){

  .header{
    padding:16px 24px;
  }

  .logo{
    height:38px;
  }

  .nav a{
    margin-left:16px;
    font-size:.9rem;
  }

  .hero{
    min-height:75vh;
    padding:24px 16px;
  }

  .hero-bg img{
    width:90vw;
    opacity:.12;
  }

  .hero-content h1{
    font-size:2.2rem;
  }

  .hero-content p{
    font-size:1rem;
  }

  .carousel{
    margin:28px auto 24px;
  }

  .track img{
    height:52px;
  }
}

/* =======================
   PANTALLAS GRANDES
======================= */
@media(min-height:900px){
  .hero{
    min-height:80vh;
  }
}

