/* =====================================================
   OPERACIÓN RESET — Landing de registro
   Clon fiel de sergionature.com/or/registro (GHL)
   Paleta y tipografías tal cual el original.
   ===================================================== */

:root {
  --crema: #EDE3C7;          /* --color-pxmetach en GHL */
  --crema-clara: #F5EEDF;    /* --color-cismnxkk en GHL */
  --crema-titulo: #FCF2DC;
  --oliva: #6E8458;
  --input-bg: #F0E8E5;
  --negro: #000000;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #0E1210;
  font-family: 'Cabin', sans-serif;
  color: var(--crema);
}

body.is-locked { overflow: hidden; }

/* =====================================================
   HERO
   ===================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 900px;
  padding: 140px 45px;
  background-image: url('assets/hero-desktop.webp');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: #0E1210;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* --- Marca --- */

.nature-inline-wrap {
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 26px;
}

.nature-inline-wrap h1 {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin: 0;
  white-space: nowrap;
}

.nature-brand {
  font-family: 'Antic Didone', serif;
  font-weight: 1000;
  font-size: clamp(28.6px, 3.52vw, 46.2px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crema-titulo);
  text-shadow:
    0px 2px 6px rgba(0, 0, 0, 0.5),
    0px 1px 0px rgba(0, 0, 0, 0.25);
}

.nature-mark {
  width: 108px;
  height: 108px;
  display: block;
}

/* --- Titular --- */

.titulo-sergio {
  font-family: 'Cabin', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 3.2vw, 58px);
  line-height: 1.16;
  text-align: left;
  color: var(--crema);
  margin: 8px 0 0;
  padding: 0;
  letter-spacing: -0.02em;
  /* 54% = ancho real de la columna de texto en el original (729px a 1440) */
  max-width: 54%;
  text-wrap: balance;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.55);
}

.titulo-sergio .resalte {
  color: var(--crema-clara);
  font-weight: 600;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

/* --- Subtítulo --- */

.subtitulo-sergio {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.38;
  text-align: left;
  color: rgba(237, 227, 199, 0.75);
  margin: 19px 0 0;
  padding: 0;
  letter-spacing: -0.01em;
  max-width: 54%;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.45);
}

.subtitulo-sergio .resalte-suave {
  color: var(--crema);
  font-weight: 600;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.45);
}

/* --- Fechas de la edición (hero y pop-up) --- */

.fechas-sergio {
  margin: 22px 0 0;
  font-family: 'Cabin', sans-serif;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.35;
  font-weight: 400;
  color: rgba(237, 227, 199, 0.88);
  text-align: left;
  letter-spacing: -0.01em;
  max-width: 54%;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.45);
}

.fechas-sergio strong {
  font-weight: 700;
  color: var(--crema);
  letter-spacing: 0.02em;
}

.lp-fechas {
  margin: 14px 0 0;
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: var(--crema-clara);
  text-align: left;
}

.lp-fechas strong { font-weight: 700; }

/* --- Bloque CTA --- */

.cta-block {
  margin-top: 44px;
  max-width: 583px;
}

.codigo-sergio {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--crema);
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.35);
}

.codigo-sergio strong { font-weight: 600; color: var(--crema); }

.boton-sergio-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 16px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.08px;
  text-transform: uppercase;
  color: var(--crema);
  background: rgba(20, 24, 18, 0.42);
  border: 2px solid var(--crema);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.boton-sergio-outline:hover { background: rgba(20, 24, 18, 0.62); }
.boton-sergio-outline:active { transform: translateY(1px); }

.boton-sergio-label { white-space: nowrap; }

.boton-sergio-icon { width: 20px; height: 20px; flex-shrink: 0; }

.disclaimer-sergio {
  display: block;
  width: fit-content;
  margin: 14px auto 0 auto;
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(237, 227, 199, 0.78);
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.35);
}

/* --- Enlaces legales (obligatorios para España, discretos) --- */

.legal-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  padding: 0 16px;
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  color: rgba(237, 227, 199, 0.6);
}

.legal-foot a {
  display: inline-block;
  padding: 12px 4px;          /* zona táctil de 44 px sin cambiar el aspecto */
  margin: -12px 0;
  color: rgba(237, 227, 199, 0.78);
  text-decoration: none;
}

.legal-foot a:hover { color: #F5EEDF; text-decoration: underline; }

/* =====================================================
   POP-UP
   ===================================================== */

.lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
}

.lp-overlay[hidden] { display: none; }

.lp-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.lp-panel {
  position: relative;
  width: 720px;
  max-width: 100%;
  padding: 20px;
  border: 3px solid var(--crema-clara);
  border-radius: 2px;
  background-color: #1B1F17;
  background-image: url('assets/popup-bg.webp');
  background-size: cover;
  background-position: 50% 50%;
  animation: lp-in 0.28s ease both;
}

@keyframes lp-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.lp-close {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 39px;
  height: 37px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-close svg { width: 100%; height: 100%; display: block; }

.nature-inline-wrap2 {
  width: 100%;
  padding: 2px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.lp-kicker {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.3;
  color: var(--crema-clara);
}

.nature-brand2 {
  font-family: 'Antic Didone', serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crema);
  text-align: center;
  text-shadow:
    0px 2px 6px rgba(0, 0, 0, 0.5),
    0px 1px 0px rgba(0, 0, 0, 0.25);
}

.lp-lead {
  margin: 20px 0 16px;
  font-family: 'Cabin', sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--crema-clara);
  text-align: left;
}

.lp-lead strong { font-weight: 700; }

/* --- Bullets (stack icono + texto) --- */

.simplex-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Cabin', sans-serif;
  margin-bottom: 16px;
}

.simplex-texto {
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--crema);
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.38);
}

.simplex-texto-principal { color: var(--crema); }

.simplex-texto strong,
.simplex-texto b {
  font-weight: 600;
  color: var(--crema-clara);
}

.simplex-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--crema);
  -webkit-mask: url('assets/check.svg') center / contain no-repeat;
  mask: url('assets/check.svg') center / contain no-repeat;
}

.simplex-icon-oliva { background: var(--oliva); }
.simplex-icon-crema { background: var(--crema); }

/* --- Formulario --- */

.lp-form { margin-top: 24px; }

.lp-field { position: relative; margin-bottom: 8px; }

.lp-form input {
  width: 100%;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  background: var(--input-bg);
  border: 0;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.73) 2px 2px 5px 3px;
  -webkit-appearance: none;
  appearance: none;
}

.lp-form input::placeholder { color: rgba(0, 0, 0, 0.72); }
.lp-form input:focus { outline: 2px solid var(--crema-clara); outline-offset: 2px; }
.lp-form input.is-invalid { outline: 2px solid #C0392B; outline-offset: 2px; }

.lp-field--icon input { padding-left: 36px; }

.lp-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #000;
  pointer-events: none;
}

/* intl-tel-input (mismo plugin que usa GHL) */
.lp-field--phone .iti { width: 100%; display: block; }
.lp-field--phone input { padding-left: 50px; }
.lp-field--phone .iti__flag-container { z-index: 2; }
.lp-field--phone .iti__selected-flag { padding-left: 12px; border-radius: 12px 0 0 12px; }

.lp-error {
  margin: 4px 0 0;
  font-family: 'Cabin', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFD5CE;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6);
}

.lp-error[hidden] { display: none; }

.lp-submit {
  width: 100%;
  margin-top: 15px;
  padding: 13px 15px;
  background: var(--negro);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lp-submit:hover { opacity: 0.9; }
.lp-submit:active { transform: translateY(1px); }
.lp-submit[disabled] { opacity: 0.65; cursor: default; }

.lp-submit-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  line-height: 26.4px;
  font-weight: 600;
  letter-spacing: 1.08px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.lp-disclaimer {
  margin-top: 12px;
  font-size: 15px;
  color: var(--crema-clara);
}

/* Información básica de protección de datos junto al formulario (RGPD, primera capa) */
.lp-rgpd {
  margin: 14px 0 0;
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(237, 227, 199, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lp-rgpd strong { font-weight: 600; color: rgba(245, 238, 223, 0.85); }
.lp-rgpd a { color: var(--crema-clara); }

/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 768px) {

  /* Móvil: la foto solo tiene desenfoque real en su 32% inferior, y el bloque de texto
     necesita más que eso. Sin velo, el subtítulo cae sobre la camisa blanca y el contraste
     baja a 1,2:1 (el mínimo legible es 4,5:1). Medido a 360, 390, 414 y 430 px de ancho. */
  .hero {
    min-height: 900px;              /* fallback para navegadores sin svh */
    min-height: max(900px, 100svh); /* evita la banda negra en iPhone Plus / Pro Max */
    padding: 320px 20px 44px;
    align-items: flex-start;
    background-image: url('assets/hero-mobile.webp');
    background-position: 50% 0%;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Arranca en el 18%: la cara de Sergio queda intacta; se apaga la camisa, que es
       lo que competía con el texto. */
    background: linear-gradient(180deg,
      rgba(14, 18, 16, 0) 18%,
      rgba(14, 18, 16, 0.35) 28%,
      rgba(14, 18, 16, 0.62) 38%,
      rgba(14, 18, 16, 0.80) 50%,
      rgba(14, 18, 16, 0.88) 62%,
      rgba(14, 18, 16, 0.90) 100%);
  }

  .nature-inline-wrap { padding: 4px 0; gap: 0; }

  .nature-brand {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .nature-mark { display: none; }

  .titulo-sergio {
    font-size: 31px;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-top: 12px;
    max-width: 100%;
    text-wrap: initial;
  }

  .titulo-sergio .resalte { white-space: normal; }

  .subtitulo-sergio {
    font-size: 17px;
    line-height: 1.42;
    margin-top: 20px;
    max-width: 100%;
  }

  .fechas-sergio {
    max-width: 100%;
    font-size: 15px;
    margin-top: 16px;
  }

  .lp-fechas { font-size: 15px; }

  .cta-block {
    margin: 38px auto 0;
    max-width: 330px;
  }

  .codigo-sergio {
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  .boton-sergio-outline {
    width: calc(100% - 20px);
    margin: 12px auto 0;
    padding: 16px 12px;
    gap: 8px;
  }

  .disclaimer-sergio {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
  }

  .lp-scroll { padding: 24px 5px; }

  .lp-panel {
    width: 380px;
    padding: 20px 10px;
  }

  .lp-close { top: -11px; right: -6px; }

  .lp-kicker { font-size: 26px; }

  .lp-lead { font-size: 16px; margin: 16px 0 14px; }

  .simplex-item { gap: 10px; margin-bottom: 14px; }
  .simplex-texto { font-size: 16px; line-height: 1.42em; }
  .simplex-icon { width: 16px; height: 16px; margin-top: 3px; }

  .lp-submit-label { font-size: 18px; line-height: 22px; }
  .lp-disclaimer { font-size: 14px; }
}

/* Móviles bajos (360x640, 375x667): sin esto el botón queda por debajo del fold
   y el usuario no ve el CTA sin hacer scroll. */
@media (max-width: 768px) and (max-height: 720px) {
  .hero {
    padding-top: 190px;
    min-height: 100svh;
  }

  .titulo-sergio { font-size: 28px; margin-top: 10px; }
  .subtitulo-sergio { font-size: 16px; margin-top: 14px; }
  .cta-block { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-panel { animation: none; }
}
