/**
 * Landing En Obras — Estilos mínimos (usa theme-tokens.css)
 * Fuentes Bangers y Permanent Marker se cargan por <link> en index.html (sin @import bloqueante).
 */

:root {
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  background-color: #0d0d0d;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tf-font-display);
}

.landing-wrapper {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-wrapper > * {
  position: relative;
  z-index: 2;
}

/* Zona hero: fondo imagen única. */
.landing-hero-zone {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 2rem;
  background-color: #0d0d0d;
  background-image: url("../img/bg/fondo-landing-sin-texto.png");
  background-image: image-set(
    url("../img/bg/fondo-landing-sin-texto.webp") type("image/webp"),
    url("../img/bg/fondo-landing-sin-texto.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.landing-hero-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

.landing-hero-zone > .landing-header,
.landing-hero-zone > .landing-hero,
.landing-hero-zone > .landing-form-area,
.landing-hero-zone > .landing-container {
  position: relative;
  z-index: 3;
}

.landing-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.landing-logo {
  display: inline-block;
}

.landing-logo img {
  display: block;
  max-width: 360px;
  height: auto;
}

.landing-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.landing-hero-title {
  font-family: var(--tf-font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.landing-hero-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: #e5e7eb;
  margin: 0;
}

/* Área del formulario: solo caja del form + sticker flotante en esquina */
.landing-form-area {
  position: relative;
  width: 100%;
  max-width: 576px;
  margin-bottom: 1.25rem;
  padding: 32px;
}

/* Sticker flotando sobre esquina de la caja del formulario */
.landing-form-corner-sticker {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 15;
  width: 120px;
  height: auto;
  pointer-events: none;
  animation: float-sticker 3s ease-in-out infinite;
}

@keyframes float-sticker {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

.landing-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.landing-container .landing-social,
.landing-container .landing-benefits {
  color: #e5e7eb;
}

.landing-urgencia {
  color: var(--tf-color-secondary);
}

/* Caja formulario: pegatina física (blanco, borde grueso, sombra dura, rotación sutil) */
.landing-sticker {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border: 4px solid #000;
  border-radius: var(--tf-radius-sticker);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.85);
  padding: 2rem;
  transform: rotate(-0.5deg);
  position: relative;
  z-index: 10;
}

.landing-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.landing-form input[type="email"],
.landing-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #9ca3af;
  border-radius: var(--tf-radius-default);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.landing-form input[type="email"]:focus,
.landing-form input[type="text"]:focus {
  outline: none;
  border-color: var(--tf-color-primary);
}

.landing-form .consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.landing-form .consent-wrap input {
  margin-top: 0.25rem;
}

/* Botón CTA gráfico (fondo PNG) — hover físico tipo sticker, sin glow */
.cta-button {
  position: relative;
  z-index: 11;
  display: inline-block;
  width: 100%;
  min-height: 56px;
  padding: 0.875rem 1rem;
  background-color: transparent;
  background-image: url("../img/ui/button-suscribe-es.png");
  background-image: image-set(
    url("../img/ui/button-suscribe-es.webp") type("image/webp"),
    url("../img/ui/button-suscribe-es.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  border-radius: var(--tf-radius-default);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

/* Sombra oval tipo sticker debajo del botón */
.cta-button::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 10%;
  width: 80%;
  height: 10px;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(6px);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.15s ease;
}

.cta-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.08);
}

.cta-button:hover:not(:disabled)::after {
  bottom: -12px;
  filter: blur(8px);
}

.cta-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.95);
}

.cta-button:disabled {
  transform: none;
  filter: grayscale(1);
  opacity: 0.6;
  cursor: not-allowed;
}

.landing-form-micro {
  margin: 1rem 0 0.25rem;
  font-size: 0.9375rem;
  color: #374151;
  text-align: center;
}

.landing-form-trust {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
}

.landing-form-trust[aria-hidden="true"] {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.landing-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--tf-radius-default);
  font-size: 0.9375rem;
  display: none;
}

.landing-status.visible {
  display: block;
}

.landing-status.success {
  background: rgba(124, 252, 0, 0.2);
  border: 2px solid var(--tf-color-secondary);
  color: #166534;
}

.landing-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #dc2626;
  color: #991b1b;
}

.landing-social {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  text-align: center;
}

/* Beneficios: stickers como iconos + texto, debajo del formulario */
.landing-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

.benefit-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

/* Página gracias: bloque central (reutiliza .landing-sticker), placeholder Pepe, CTA volver */
.gracias-sticker {
  text-align: center;
}

.gracias-pepe-wrap {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 100px;
  height: 100px;
  pointer-events: none;
  /* Cuando exista el asset: añadir img con .gracias-pepe-wrap img { width: 100%; height: auto; } */
}

.gracias-title {
  font-family: var(--tf-font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #111827;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.gracias-sub {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: #374151;
  margin: 0 0 1rem;
}

.gracias-text {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.gracias-cta-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--tf-color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--tf-radius-default);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gracias-cta-instagram svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.gracias-cta-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 1);
}

.landing-urgencia {
  margin: 0;
  font-family: var(--tf-font-handwriting);
  font-size: 1rem;
  color: var(--tf-color-primary);
  text-align: center;
}

.landing-claim-final {
  font-family: var(--tf-font-handwriting);
}

/* Responsive: tablet y móvil — beneficios en columna */
@media (max-width: 768px) {
  .landing-hero-zone {
    /* Mismo fondo que desktop */
    padding: 1rem 1rem 1.5rem;
    min-height: auto;
  }

  .landing-form-area {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .landing-benefits {
    flex-direction: column;
    gap: 1rem;
  }

  .benefit-item {
    justify-content: center;
  }

  .benefit-text {
    font-size: 1.0625rem;
  }
}

/* Móvil estrecho: 375px mínimo, CTA visible sin scroll */
@media (max-width: 480px) {
  .landing-hero-zone {
    padding: 0.75rem 0.75rem 1rem;
  }

  .landing-logo img {
    max-width: 260px;
  }

  .landing-hero-title {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  }

  .landing-form-area {
    padding: 0.75rem;
  }

  .landing-form-corner-sticker {
    width: 64px;
    right: 12px;
    top: -4px;
  }

  .landing-sticker {
    padding: 1.25rem;
    transform: rotate(-0.3deg);
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
  }

  .cta-button {
    min-height: 52px;
  }
}

/* Honeypot y contenedor Turnstile invisible: fuera de vista, no interactivo */
.landing-hide-away {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
