@font-face{
  font-family: "Galgo";
  src: url("./assets/fonts/GalgoVF.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Clash Display";
  src: url("./assets/fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Clash Display";
  src: url("./assets/fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root{
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.75);
  --glass: rgba(20, 20, 20, .28);
  --glass-border: rgba(255,255,255,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Clash Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: var(--text);
  background: #0b0b0b;
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* HEADER */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .18s ease, border-color .18s ease, backdrop-filter .18s ease;
  overflow: visible; /* evita recorte al escalar el logo */
}

.site-header__inner{
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative; /* para el dropdown en móvil */
  overflow: visible;  /* evita recorte al escalar el logo */
}

.brand{
  display: inline-flex;
  align-items: center;
}

.brand img{
  height: 52px; /* mantiene el layout/alto del header */
  width: auto;
  display: block;

  transform: scale(1.35);           /* más grande en desktop sin cambiar header */
  transform-origin: left center;
}

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

.nav a{
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nav a:hover{ color: white; }

.menu-btn{
  display: none; /* solo móvil */
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: white;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1; /* ayuda al centrado visual */
}

.menu-btn__label{
  position: relative;
  top: -1px; /* sube ligeramente el texto "Menú" */
}

.menu-btn:hover{
  background: rgba(255,255,255,.16);
}

/* GLASS cuando hay scroll */
.site-header--scrolled{
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* HERO */
.hero{
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 16px 80px;

  background-image:
    radial-gradient(900px 420px at 50% 15%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55)),
    url("./assets/hero.webp"); /* cambiado a webp */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner{
  width: min(980px, 92vw);
}

.hero__title{
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.hero__title span:first-child{
  font-weight: 400; /* Tu empresa. -> Regular */
}

.hero__title span:last-child{
  font-weight: 500; /* Con superpoderes. -> Medium */
}

.hero__title span{
  display: block;
}

.hero__subtitle{
  margin: 0 auto 26px;
  width: min(720px, 92vw);
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero__actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn:hover{ background: rgba(255,255,255,.18); }

.btn--ghost{
  background: rgba(0,0,0,.20);
}

/* SECCIONES */
.section{
  padding: 72px 0;
  background: #0b0b0b;
}

.section h2{ margin: 0 0 10px; font-size: 28px; }
.section p{ margin: 0; color: rgba(255,255,255,.8); line-height: 1.7; }

@media (max-width: 800px){
  /* En móvil: ocultamos los links arriba y usamos el botón menú */
  .nav{
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(360px, 92vw);
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;

    background: rgba(20, 20, 20, .35);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header.site-header--menu-open .nav{
    display: flex;
  }

  .menu-btn{
    display: inline-flex;
  }

  .brand img{
    height: 60px; /* mantiene layout en móvil */
    transform: scale(1.25); /* más grande en móvil sin cambiar header */
    transform-origin: left center;
  }
}
