:root{
  --bg: #0b0f14;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --glass: rgba(0,0,0,.22);
  --glass-2: rgba(0,0,0,.35);
  --stroke: rgba(255,255,255,.16);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --accent: #d33a2c;
  --accent-2: #b81f15;
  --radius: 14px;
  --maxw: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* HERO (fijo a pantalla completa) */
.hero{
  position: fixed;
  inset: 0;
  height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero__slider{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slides{
  position: absolute;
  inset: 0;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.012);
  /* Evita que el slide “capture” clics (flechas/dots) */
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    opacity 2600ms cubic-bezier(.25,.9,.25,1),
    transform 5200ms cubic-bezier(.25,.9,.25,1);
  will-change: opacity, transform;
}

.slide.is-active{
  opacity: 1;
  transform: scale(1.0);
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.03);
  pointer-events: none;
}

/* Overlay “cinematográfico” + degradados para legibilidad */
.hero__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: none;
}

/* Contenido centrado (top brand + botones) */
.hero__content{
  position: relative;
  z-index: 3;
  width: min(var(--maxw), calc(100% - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  height: 100%;
  justify-content: flex-start;
  padding-top: 18px;
  /* Evita que el bloque “tape” flechas/dots del slider */
  pointer-events: none;
}

.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  pointer-events: auto;
}

.brand__logo{
  /* Más grande en web y se adapta al dispositivo */
  width: clamp(96px, 10vw + 64px, 190px);
  height: clamp(96px, 10vw + 64px, 190px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: visible;
  backdrop-filter: none;
}
.brand__logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand__name{
  /* Se reduce gradualmente en pantallas pequeñas */
  max-width: clamp(260px, 44vw, 420px);
  filter: none;
}
.brand__name img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /* “Borde” blanco para PNG (stroke simulado) */
  filter:
    drop-shadow(1px 0 0 rgba(255,255,255,.95))
    drop-shadow(-1px 0 0 rgba(255,255,255,.95))
    drop-shadow(0 1px 0 rgba(255,255,255,.95))
    drop-shadow(0 -1px 0 rgba(255,255,255,.95));
}

.brand__subtitle{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-shadow: none;
}
.brand__subtitle::before,
.brand__subtitle::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, 72vw);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.65),
    transparent
  );
}
.brand__subtitle::before{ top: 0; }
.brand__subtitle::after{ bottom: 0; }

.hero__spacer{
  flex: 0 0 auto;
  height: clamp(26px, 14vh, 170px);
}

/* Fila de info/links debajo del título */
.meta{
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  max-width: min(920px, 96vw);
  margin-top: 2px;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.25;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.meta__item{
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
  position: relative;
}

.meta__item::after{
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 18px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35), transparent);
}

.meta__item:last-of-type::after{
  content: none;
}

.meta__label{
  opacity: .9;
  font-weight: 600;
}
.meta__value{
  opacity: .95;
}
.meta__hint{
  opacity: .78;
}

.meta__link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.meta__link:hover{
  border-bottom-color: rgba(255,255,255,.68);
}
.meta__link:focus-visible{
  outline: 3px solid rgba(255,255,255,.22);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

/* Botones CTA en una sola fila (responsive con wrap) */
.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);

  transform: translateY(16px);
  opacity: 0;
  animation: ctaIn 1500ms cubic-bezier(.25,.9,.25,1) 320ms forwards;
  /* Los botones sí deben recibir clic */
  pointer-events: auto;
}

@keyframes ctaIn{
  to{ transform: translateY(0); opacity: 1; }
}

.cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.cta__btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  box-shadow: none;
}
.cta__btn:active{
  transform: translateY(0);
}
.cta__btn:focus-visible{
  outline: 3px solid rgba(255,255,255,.25);
  outline-offset: 3px;
}

/* Redes sociales debajo de la botonera */
.social{
  pointer-events: auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.social__link{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social__link:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.42);
}

.social__link:active{
  transform: translateY(0);
}

.social__link:focus-visible{
  outline: 3px solid rgba(255,255,255,.22);
  outline-offset: 3px;
}

.social__link svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Controles del slider */
.nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
  opacity: .85;
}
.nav:hover{
  opacity: 1;
  background: rgba(0,0,0,.38);
  border-color: rgba(255,255,255,.28);
}
.nav:active{
  transform: translateY(-50%) scale(.98);
}
.nav:focus-visible{
  outline: 3px solid rgba(255,255,255,.22);
  outline-offset: 3px;
}
.nav span{
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}
.nav--prev{ left: 18px; }
.nav--next{ right: 18px; }

.dots{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width 260ms ease, background 260ms ease;
}
.dot.is-active{
  width: 34px;
  background: rgba(255,255,255,.22);
}
.dot.is-active::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), #ff6a5a);
  transform-origin: left center;
  transform: scaleX(0);
  animation: dotProgress var(--autoplay-ms, 6500ms) linear forwards;
}

@keyframes dotProgress{
  to{ transform: scaleX(1); }
}
.dot:focus-visible{
  outline: 3px solid rgba(255,255,255,.20);
  outline-offset: 3px;
}

/* Reducir UI en mobile */
@media (max-width: 560px){
  /* En móvil ocultamos controles del slider (más limpio) */
  .nav{ display: none; }
  .dots{ display: none; }

  /* Compactar todo para que entren CTA + redes */
  .hero__content{
    width: calc(100% - 26px);
    padding-top: 10px;
    gap: 14px;
  }

  .brand{
    gap: 8px;
  }

  /* clamp() ya escala, solo afinamos el texto/espaciado */
  .brand__name{ max-width: clamp(240px, 74vw, 320px); }
  .brand__subtitle{
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: .22em;
  }

  .meta{
    gap: 6px 10px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .meta__item{
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .meta__item::after{
    margin-left: 10px;
  }

  .hero__spacer{
    height: clamp(10px, 4vh, 38px);
  }

  .cta{
    gap: 10px;
    padding: 10px;
  }
  .cta__btn{
    font-size: 12px;
    padding: 10px 12px;
  }

  .social{
    margin-top: 10px;
  }
}

/* iPhone 5 / 320x568 y similares: compactar logo + nombre */
@media (max-width: 360px) and (max-height: 600px){
  .brand__logo{
    width: 42px;
    height: 42px;
  }
  .brand__name{
    max-width: min(100px, 82vw);
  }
  .brand__subtitle{
    font-size: 10px;
    letter-spacing: .2em;
    padding: 6px 0;
  }
  .meta{
    font-size: 10.5px;
  }
}

/* Respeta usuarios con “reducir movimiento” */
@media (prefers-reduced-motion: reduce){
  .slide{ transition: none; transform: none; }
  .cta{ animation: none; opacity: 1; transform: none; }
  .nav, .cta__btn{ transition: none; }
}

/* (se removió el contenido demo de scroll) */
