:root {
  --olive-950: #171c15;
  --olive-900: #242b1f;
  --olive-800: #343c2c;
  --earth-700: #675444;
  --sand-400: #c7af8c;
  --cream-100: #eee8dc;
  --cream-50: #f6f1e8;
  --ink: #25251f;
  --muted-ink: #68665e;
  --white: #fffdf7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 4rem);

  color-scheme: dark;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--olive-950);
  color: var(--cream-50);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: var(--cream-50);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-scene {
  position: relative;
  min-height: 196svh;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--olive-900);
  background-image:
    radial-gradient(ellipse at 28% 54%, rgba(230, 188, 126, 0.46), transparent 34%),
    linear-gradient(180deg, #444936 0%, #262d22 40%, #74654f 63%, #b4a58c 73%, #24291e 100%);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
}

.page-scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 180svh;
  background-image:
    linear-gradient(180deg,
      rgba(17, 22, 15, 0.5) 0%,
      rgba(22, 27, 18, 0.3) 28%,
      rgba(43, 43, 29, 0.12) 56%,
      rgba(107, 79, 48, 0.08) 76%,
      rgba(223, 195, 153, 0.08) 100%),
    url("assets/images/hero-desktop.webp");
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  pointer-events: none;
}

.page-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 88svh;
  right: 0;
  left: 0;
  height: 104svh;
  background-image:
    radial-gradient(ellipse at 38% 18%, rgba(255, 222, 169, 0.32), transparent 56%),
    radial-gradient(circle at 18% 24%, rgba(255, 245, 219, 0.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 61%, rgba(79, 67, 48, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 32%, rgba(239, 222, 188, 0.24), transparent 58%);
  background-size: 100% 100%, 11rem 9rem, 13rem 12rem, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  opacity: 0.48;
  pointer-events: none;
}

.hero::before,
.hero::after,
.subscription-area::before,
.subscription-area::after {
  pointer-events: none;
}

.hero,
.subscription-area,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(1.4rem, 3.2vw, 3rem) var(--page-pad) clamp(1.8rem, 4vw, 3.75rem);
  isolation: isolate;
}

.brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  min-height: 4rem;
}

.brand-logo {
  display: block;
  width: clamp(15rem, 24vw, 24rem);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-logo.is-missing {
  visibility: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 7vh 0 2vh;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7.2vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 0.1em 0.7em rgba(7, 9, 6, 0.18);
}

.scroll-cue {
  position: relative;
  z-index: 20;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  color: rgba(255, 253, 247, 0.75);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  pointer-events: auto;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.scroll-cue:hover {
  color: var(--white);
  transform: translateY(-0.15rem);
}

.scroll-cue:active {
  opacity: 0.7;
  transform: translateY(0);
}

.scroll-cue:focus-visible {
  outline: 2px solid rgba(255, 253, 247, 0.95);
  outline-offset: 7px;
}

.scroll-cue:hover .scroll-line {
  transform: scaleY(1.13);
}

.scroll-line {
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(to bottom, currentColor 0 50%, transparent 50% 100%);
  background-size: 100% 200%;
  animation: scroll-pulse 2.4s ease-in-out infinite;
  transform-origin: top;
  transition: transform 180ms ease;
}

@keyframes scroll-pulse {
  0% {
    background-position: 0 100%;
    opacity: 0.25;
  }

  45% {
    opacity: 0.9;
  }

  100% {
    background-position: 0 -100%;
    opacity: 0.25;
  }
}

.subscription-area {
  display: grid;
  place-items: center;
  min-height: 86svh;
  margin-top: -18svh;
  padding:
    clamp(8rem, 16svh, 11rem) var(--page-pad) clamp(2.75rem, 5svh, 4.75rem);
}

.subscription-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 4.75rem);
  border: 1px solid rgba(91, 77, 56, 0.16);
  border-radius: 0.4rem;
  background: rgba(238, 231, 216, 0.94);
  box-shadow:
    0 3.5rem 10rem rgba(87, 61, 32, 0.3),
    0 1.25rem 3.5rem rgba(54, 47, 34, 0.18),
    inset 0 1px 0 rgba(255, 252, 242, 0.72);
  color: var(--ink);
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.reveal {
  opacity: 1;
  filter: none;
  transform: translateY(0);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-animate="true"] {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(24px);
}

.reveal[data-animate="true"].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--earth-700);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subscription-intro {
  max-width: 29rem;
  margin: 0 auto 2.25rem;
  color: var(--muted-ink);
  font-size: 0.88rem;
}

#subscription-form {
  scroll-margin-top: clamp(3rem, 10vh, 6rem);
}

.field-group label {
  display: block;
  margin-bottom: 0.55rem;
  color: #49483f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid #817c6e;
}

input {
  min-width: 0;
  padding: 0.95rem 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

input::placeholder {
  color: #8c887d;
  opacity: 1;
}

button {
  align-self: center;
  padding: 0.68rem 1rem;
  border: 1px solid var(--olive-800);
  border-radius: 999px;
  background: var(--olive-800);
  color: var(--cream-50);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

button:hover {
  background: transparent;
  color: var(--olive-800);
}

button:active {
  transform: scale(0.97);
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d7aa6d;
  outline-offset: 4px;
}

.input-row:focus-within {
  border-bottom-color: var(--olive-800);
  box-shadow: 0 1px 0 var(--olive-800);
}

.form-message {
  min-height: 1.25rem;
  margin: 0.6rem 0 0;
  color: #8b3e2e;
  font-size: 0.75rem;
  text-align: left;
}

.form-message.is-success {
  color: #3f6741;
}

.privacy-note {
  max-width: 27rem;
  margin: 1rem auto 0;
  color: #77746c;
  font-size: 0.66rem;
  line-height: 1.55;
}

/* Footer compacto: redes más cerca del formulario y copyright más abajo. */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(13rem, 24svh, 17rem);
  padding:
    clamp(1.5rem, 3vh, 2.5rem) var(--page-pad) max(1rem, env(safe-area-inset-bottom));
  color: rgba(238, 232, 220, 0.72);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(238, 232, 220, 0.82);
  cursor: pointer;
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.social-link:hover {
  color: var(--cream-50);
  opacity: 0.96;
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 253, 247, 0.92);
  outline-offset: 6px;
}

.social-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

/* Compatibilidad con las dos nomenclaturas usadas en el HTML anterior. */
.tiktok-icon,
.social-icon-tiktok {
  fill: currentColor;
  stroke: none;
}

.instagram-dot {
  fill: currentColor;
  stroke: none;
}

.social-divider {
  width: 1px;
  height: 1.75rem;
  background: rgba(238, 232, 220, 0.38);
}

.site-footer p {
  margin: 0;
  padding-top: 0.9rem;
  color: rgba(238, 232, 220, 0.56);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  transform: translateY(0.7rem);
}

@media (max-width: 42rem) {
  .page-scene {
    min-height: 194svh;
    background-image:
      radial-gradient(ellipse at 30% 52%, rgba(232, 190, 129, 0.48), transparent 38%),
      linear-gradient(180deg, #494d39 0%, #293025 39%, #77664f 62%, #b8a990 74%, #20251b 100%);
    background-position: center, center;
    background-size: 100% 100%, 100% 100%;
  }

  .page-scene::before {
    top: 0;
    right: 0;
    left: 0;
    height: 160svh;
    background-image:
      linear-gradient(180deg,
        rgba(16, 21, 14, 0.46) 0%,
        rgba(21, 26, 17, 0.27) 29%,
        rgba(50, 46, 31, 0.1) 58%,
        rgba(117, 84, 49, 0.07) 78%,
        rgba(224, 195, 151, 0.07) 100%),
      url("assets/images/hero-mobile.webp");
    background-position: center, 52% top;
    background-size: 100% 100%, cover;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  }

  .page-scene::after {
    top: 86svh;
    height: 108svh;
    background-size: 100% 100%, 8rem 7rem, 10rem 9rem, 100% 100%;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .brand-header {
    min-height: 3.5rem;
  }

  h1 {
    font-size: clamp(3.4rem, 16.8vw, 5.2rem);
    line-height: 0.9;
  }

  .subscription-area {
    min-height: 82svh;
    margin-top: -12svh;
    padding-top: 13svh;
    padding-bottom: 3rem;
  }

  .subscription-card {
    padding: 2.5rem 1.35rem;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    border-bottom: 0;
  }

  input {
    padding: 0.85rem 0;
    border-bottom: 1px solid #817c6e;
  }

  button {
    width: 100%;
    min-height: 2.9rem;
  }

  .site-footer {
    min-height: 22svh;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .site-footer p {
    padding-top: 0.75rem;
    font-size: 0.68rem;
    transform: translateY(0.55rem);
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    gap: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .social-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .social-divider {
    height: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Privacidad integrada en una única línea bajo el formulario */
.privacy-block {
  max-width: 31rem;
  margin: 1rem auto 0;
  text-align: center;
}

.privacy-note {
  margin: 0;
  color: #77746c;
  font-size: 0.68rem;
  line-height: 1.6;
}

.privacy-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--olive-800);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  -webkit-tap-highlight-color: transparent;
}

.privacy-inline-link:hover {
  color: var(--olive-950);
}

.privacy-inline-link:focus-visible {
  outline: 2px solid #d7aa6d;
  outline-offset: 3px;
}

.privacy-details {
  max-width: 31rem;
  margin: 1rem auto 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid rgba(52, 60, 44, 0.24);
  border-bottom: 1px solid rgba(52, 60, 44, 0.16);
  background: rgba(255, 253, 247, 0.16);
  color: #5d5a51;
  font-size: 0.68rem;
  line-height: 1.58;
  text-align: left;
}

.privacy-details[hidden] {
  display: none;
}

.privacy-details p {
  margin: 0 0 0.72rem;
}

.privacy-details p:last-child {
  margin-bottom: 0;
}

.privacy-details strong {
  color: var(--olive-800);
  font-weight: 700;
}

.privacy-details a {
  color: var(--olive-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.privacy-full-link {
  padding-top: 0.2rem;
  text-align: center;
}

@media (max-width: 42rem) {

  .privacy-note,
  .privacy-details {
    font-size: 0.65rem;
  }

  .privacy-details {
    padding: 0.95rem 0.85rem;
  }
}
.subscription-logo {
  display: block;
  width: clamp(5.75rem, 8.5vw, 7rem);
  height: auto;
  max-width: none;
  margin: -0.7rem auto 1.2rem;
  padding: 0;
  border: 0;
  object-fit: contain;
}