:root {
  --azul: #0033FF;
  --verde-wsp1: #25D366;
  --verde-wsp2: #1EBE5C;
  --azul-fb1: #1877F2;
  --azul-fb2: #0D65D9;
}

/* ===========================
   BASE GENERAL
=========================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ===========================
   SECCIÓN PRINCIPAL
=========================== */
.hero {
  background-image: url('img/imagenfondo.png'); /* usa .png si tu fondo es png */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* altura completa del viewport */
  min-height: 100svh;
  height: 100svh;

  /* centrado perfecto en todas las pantallas */
  display: flex;
  align-items: center;
  justify-content: center;

  /* margen seguro simétrico para notch y barras */
  --safe-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
  padding-top: max(16px, env(safe-area-inset-top) + 12px);
  padding-bottom: max(16px, env(safe-area-inset-bottom) + 12px);
  padding-left: calc(var(--safe-inline) + 16px);
  padding-right: calc(var(--safe-inline) + 16px);

  box-sizing: border-box;
  position: relative;
}

/* Fallback para navegadores sin soporte svh */
@supports not (height: 100svh) {
  .hero {
    min-height: 100vh;
    height: 100vh;
  }
}

/* Fix específico Safari iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: 100svh !important;
    height: 100svh !important;
  }
}

/* ===========================
   LOGO SUPERIOR DERECHO
=========================== */
.logo-top {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 16px);
  right: calc(env(safe-area-inset-right) + 16px);
  z-index: 10;
}

.logo-top img {
  width: clamp(110px, 15vw, 160px);
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-top img:hover {
  transform: scale(1.05);
}

/* ===========================
   CAJA SEMITRANSPARENTE
=========================== */
.glass {
  background: rgba(255, 255, 255, 0.9); /* menos transparente */
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: clamp(26px, 3vw, 40px) clamp(18px, 3vw, 30px);
  width: min(560px, 95%);
  text-align: center;
  margin-inline: auto;
}

/* ===========================
   TEXTOS
=========================== */
.glass h2 {
  color: var(--azul);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 12px;
}

.glass p {
  color: #333;
  margin-bottom: 30px;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.5em;
}

/* ===========================
   BOTONES
=========================== */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 12px auto;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform .15s ease, opacity .15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.cta img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Colores por red */
.wsp {
  background: linear-gradient(90deg, var(--verde-wsp1), var(--verde-wsp2));
}

.web {
  background: linear-gradient(90deg, #0033FF, #0066FF);
}

.ig {
  background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF);
}

.fb {
  background: linear-gradient(90deg, var(--azul-fb1), var(--azul-fb2));
}

/* ===========================
   RESPONSIVE (MÓVIL)
=========================== */
@media (max-width: 600px) {
  .hero {
    padding: 12px;
    min-height: 100svh;
  }

  .glass {
    border-radius: 16px;
    padding: 25px 20px;
    width: 100%;
  }

  .glass h2 {
    font-size: 20px;
    line-height: 1.3em;
  }

  .glass p {
    font-size: 15px;
    margin-bottom: 24px;
  }

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

  .cta img {
    width: 20px;
    height: 20px;
  }

  .logo-top img {
    width: 110px;
  }
}
