/* ---------- Tipografía: Averta PE (misma que Portal Socio) ----------
   Regular → textos del footer · Bold → cuenta atrás · Black → título
   (no existe archivo Extrabold; el navegador usa Black para el peso 800). */
@font-face {
  font-family: "Averta PE";
  src: url("../fonts/AvertaPE-Regular.woff2") format("woff2"),
       url("../fonts/AvertaPE-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta PE";
  src: url("../fonts/AvertaPE-Bold.woff2") format("woff2"),
       url("../fonts/AvertaPE-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Averta PE";
  src: url("../fonts/AvertaPE-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --verde: #65a930;
  --negro: #1d1d1b;
  --rojo: #d41217;
  --crema: #ece3ce;
  --blanco: #ffffff;
  --fuente: "Averta PE", "Averta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente);
  background: var(--verde);
  color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Hero (zona verde) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--verde);
  min-height: 928px;
  padding: 59px 24px 90px;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 884px;
  margin: 0 auto;
}

.logo {
  width: 147px;
  height: auto;
}

.title {
  margin: 54px 0 28px;
  color: var(--crema);
  font-weight: 800;
  font-size: 45px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}

.title__dot {
  color: var(--rojo);
}

/* ---------- Caja de vídeo ---------- */
.video-wrap {
  position: relative;
  width: 100%;
}

.video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9; /* formato del vídeo de YouTube, sin franjas negras */
  background: var(--negro);
  border: 3px solid var(--rojo);
  border-radius: 20px;
  overflow: hidden;
}

.video > video,
.video > iframe,
.video > img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ---------- Cuenta atrás ---------- */
.countdown {
  margin: 12px 0 0;
  color: var(--blanco);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ---------- Decoraciones ---------- */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  height: auto;
}

.deco--retama-arriba {
  top: 0;
  left: 0;
  width: 260px;
  z-index: 1;
}

.deco--retama-abajo {
  right: 0;
  bottom: 0;
  width: 200px;
  z-index: 1;
}

.deco--manos {
  left: 0;
  bottom: 0;
  width: 375px;
  z-index: 1;
}

/* Brillos + bola roja: junto a la esquina superior derecha del vídeo */
.deco--brillos {
  top: -126px;
  right: -125px;
  width: 241px;
  z-index: 0;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 89px;
  padding: 20px 56px;
  background: var(--negro);
  color: var(--blanco);
  font-size: 16px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
}

.footer__contact a {
  text-decoration: none;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal a:hover,
.footer__contact a:hover {
  color: var(--crema);
}

.social {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--verde);
  border-radius: 3px;
  transition: background 0.2s;
}

.social a:hover {
  background: #57932a;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: var(--blanco);
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding: 48px 32px 200px;
  }

  .hero__content {
    max-width: 680px;
  }

  .logo {
    width: 120px;
  }

  .title {
    margin: 36px 0 32px;
    font-size: 40px;
  }

  .countdown {
    font-size: 54px;
  }

  .deco--retama-arriba {
    width: 200px;
  }

  .deco--retama-abajo {
    width: 155px;
  }

  .deco--manos {
    width: 260px;
  }

  /* En tablet los brillos van a la esquina superior derecha de la página */
  .video-wrap {
    position: static;
  }

  .deco--brillos {
    top: 12px;
    right: 20px;
    width: 130px;
  }

  .footer {
    padding: 20px 32px;
    font-size: 14px;
  }

  .footer__right {
    gap: 24px;
  }
}

/* ---------- Móvil ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 40px 16px 230px;
  }

  .logo {
    width: 100px;
  }

  .title {
    margin: 22px 0 22px;
    font-size: 28px;
  }

  .video {
    border-radius: 14px;
  }

  .countdown {
    margin-top: 18px;
    font-size: 36px;
  }

  .deco--retama-arriba {
    width: 120px;
  }

  .deco--retama-abajo {
    width: 110px;
  }

  .deco--manos {
    width: 210px;
  }

  .deco--brillos {
    top: 4px;
    right: 4px;
    width: 58px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px 24px;
    font-size: 13px;
    text-align: center;
  }

  .footer__right {
    flex-direction: column;
    gap: 12px;
  }

  .social a {
    width: 26px;
    height: 26px;
  }

  .social svg {
    width: 18px;
    height: 18px;
  }
}
