:root {
  --ink: #100135;
  --purple: #640fea;
  --green: #0ffc7e;
  --paper: #F9F7F2;
  --paper-soft: #FCFAF5;
  --line: rgba(16, 1, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lato", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav {
  width: 100%;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  background-color: var(--paper);
  border-bottom: 1px solid rgba(184, 190, 196, 0.35);
  position: relative;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background-color: rgba(100, 15, 234, 0.35);
}

.site-nav a {
  display: inline-flex;
}

.site-nav img {
  width: auto;
  height: 48px;
}

.home-main {
  min-height: calc(100svh - 176px);
}

.newsletter-section {
  padding: clamp(24px, 4vw, 56px) 20px clamp(56px, 8vw, 96px);
}

.newsletter-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.newsletter-copy {
  display: grid;
  gap: clamp(36px, 4.9vw, 54px);
  justify-items: start;
}

.newsletter-copy h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(3rem, 5.25vw, 4.7rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0.012em 0 0 currentColor;
  text-wrap: pretty;
}

.title-main {
  display: block;
  font-size: 1.22em;
}

.title-parenthetical {
  display: block;
  margin-top: 0.12em;
  font-size: 0.98em;
  font-weight: 400;
  text-shadow: none;
}

.marker-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
  z-index: 1;
}

.marker-line::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.02em;
  z-index: -1;
  height: 0.32em;
  border-radius: 999px;
  background: none;
  transform: scaleX(0) rotate(-0.4deg);
  transform-origin: left;
  animation: none;
}

.marker-line.marker-luxe.is-visible::after {
  animation-timing-function: cubic-bezier(0.16, 0.8, 0.2, 1);
}

.marker-line.marker-garantiza {
  padding-bottom: 0.15em;
}

.marker-line.marker-garantiza::after {
  left: -0.15em;
  right: -0.2em;
  bottom: -0.26em;
  height: 0.4em;
  border-radius: 0;
  background-image: url("../images/brush-underline-purple.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.95;
  transform: scaleX(0) rotate(-1.8deg);
}

.marker-line.marker-garantiza.is-visible::after {
  animation-name: marker-pass-garantiza;
  animation-duration: var(--marker-duration, 1.85s);
  animation-delay: var(--marker-delay, 1.25s);
  animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

.newsletter-letter {
  max-width: 62ch;
  display: grid;
  gap: 1.55rem;
  font-size: 22px;
  line-height: 1.72;
  font-weight: 400;
  color: #100135;
  letter-spacing: 0.005em;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 2500ms ease, transform 2500ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-letter p {
  margin: 0;
}

.copy-bold {
  font-weight: 900;
}

.copy-punch {
  max-width: 44ch;
  font-size: clamp(1.42rem, 2.15vw, 1.82rem);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.copy-punch span {
  color: var(--purple);
}

.copy-marker {
  position: relative;
  display: inline-block;
  z-index: 1;
  white-space: nowrap;
}

.copy-marker::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  z-index: -1;
  height: 0.36em;
  border-radius: 999px;
  background: rgba(15, 252, 126, 0.42);
}

.newsletter-subheadline {
  display: grid;
  gap: 1.35rem;
  max-width: 58ch;
  font-size: clamp(1.62rem, 2.42vw, 2.08rem);
  line-height: 1.36;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
}

.irony-note {
  width: min(100%, 58ch);
  display: grid;
  gap: 1.35rem;
  margin: 0.55rem 0 0.28rem;
}

.values-line {
  max-width: 58ch;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.income-line {
  max-width: 58ch;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.cute-line {
  max-width: 21ch;
  justify-self: center;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  transform: rotate(-1.1deg);
  filter: drop-shadow(0 12px 18px rgba(141, 94, 38, 0.16));
}

.newsletter-letter > p:nth-of-type(n+2) {
  font-size: inherit;
  line-height: inherit;
}

.newsletter-letter .offer-line {
  max-width: 56ch;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.newsletter-letter > p:nth-of-type(4) {
  font-weight: 900;
}

.newsletter-form {
  width: min(620px, 100%);
  padding: clamp(1.5rem, 3.2vw, 2.15rem);
  justify-self: center;
  position: relative;
  text-align: center;
  border: 4px solid var(--purple);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 247, 242, 0.98) 100%),
    radial-gradient(circle at 100% 0%, rgba(15, 252, 126, 0.24), transparent 34%);
  box-shadow:
    0 0 0 6px rgba(15, 252, 126, 0.22),
    0 22px 54px rgba(16, 1, 53, 0.16);
}

.newsletter-form::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(16, 1, 53, 0.16);
  border-radius: 11px;
  pointer-events: none;
}

.honeypot {
  display: none;
}

.newsletter-label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.newsletter-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.newsletter-field-row input {
  min-width: 0;
  width: 100%;
  border: 2px solid rgba(16, 1, 53, 0.32);
  border-radius: 12px;
  outline: 0;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1.02rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(16, 1, 53, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.newsletter-field-row input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(100, 15, 234, 0.14), 0 10px 22px rgba(16, 1, 53, 0.08);
}

.newsletter-field-row input::placeholder {
  color: rgba(16, 1, 53, 0.44);
}

.cta-primary {
  --cta-radius: 12px;
  --cta-shadow: rgba(16, 1, 53, 0.18);
  --cta-bg: #640FEA;
  --cta-text: #FFFFFF;
  --cta-edge: linear-gradient(to right,
      rgba(72, 8, 168, 0.95) 0%,
      rgba(100, 15, 234, 0.95) 10%,
      rgba(100, 15, 234, 0.95) 90%,
      rgba(72, 8, 168, 0.95) 100%);
  display: inline-grid;
  place-items: center;
  width: min(16.5rem, 100%);
  min-height: 4rem;
  padding: 0;
  border: none;
  border-radius: var(--cta-radius);
  background: transparent;
  color: var(--cta-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transform: translateY(0);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--cta-radius);
  background: var(--cta-shadow);
  filter: blur(2px);
  transform: translateY(3px);
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.22s ease;
  opacity: 0.9;
  z-index: 0;
}

.cta-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--cta-radius);
  background: var(--cta-edge);
  z-index: 1;
}

.cta-label {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: calc(var(--cta-radius) - 1px);
  padding: 1.05rem 1.5rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  transform: translateY(-3px);
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.4, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(16, 1, 53, 0.12);
  position: relative;
}

.newsletter-submit {
  width: min(12.5rem, 100%);
}

.newsletter-submit .cta-label {
  flex-direction: column;
  gap: 2px;
  padding: 0.82rem 1rem;
  line-height: 1.05;
}

.cta-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.cta-primary:active {
  filter: brightness(0.99);
  transform: translateY(1px);
}

.cta-primary:hover::before {
  transform: translateY(4px);
  opacity: 1;
}

.cta-primary:active::before {
  transform: translateY(1px);
  opacity: 0.85;
}

.cta-primary:hover .cta-label {
  transform: translateY(-4px);
}

.cta-primary:active .cta-label {
  transform: translateY(-1px);
}

.cta-primary:focus-visible {
  outline: none;
}

.cta-primary:focus-visible .cta-label {
  box-shadow:
    0 0 0 3px rgba(100, 15, 234, 0.3),
    0 8px 18px rgba(16, 1, 53, 0.16);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 36px 16px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: 140px;
  opacity: 0.82;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  body {
    min-width: 0;
  }

  .site-nav {
    padding: 14px 14px 11px;
  }

  .site-nav::after {
    left: 16px;
    right: 16px;
  }

  .site-nav img {
    height: 42px;
  }

  .home-main {
    min-height: auto;
  }

  .newsletter-section {
    padding: 24px 16px 54px;
  }

  .newsletter-shell {
    width: 100%;
  }

  .newsletter-copy {
    gap: 42px;
    justify-items: stretch;
  }

  .newsletter-copy h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 15.6vw, 4.75rem);
    line-height: 0.96;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  .title-main {
    font-size: 1.16em;
  }

  .title-parenthetical {
    margin-top: 0.18em;
    font-size: 0.72em;
    line-height: 1.08;
  }

  .marker-line.marker-garantiza::after {
    left: -0.1em;
    right: -0.12em;
    bottom: -0.22em;
  }

  .newsletter-letter {
    max-width: 100%;
    gap: 1.18rem;
    font-size: clamp(1.04rem, 4.42vw, 1.16rem);
    line-height: 1.62;
  }

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

  .newsletter-subheadline {
    gap: 1.65rem;
    font-size: clamp(1.68rem, 7.25vw, 2rem);
    line-height: 1.22;
    max-width: 100%;
  }

  .irony-note {
    width: 100%;
    gap: 1rem;
    margin-top: 0.25rem;
  }

  .values-line {
    max-width: 100%;
  }

  .income-line {
    max-width: 100%;
  }

  .copy-punch {
    max-width: 100%;
    font-size: clamp(1.28rem, 5.4vw, 1.52rem);
    line-height: 1.24;
  }

  .copy-marker {
    white-space: normal;
  }

  .newsletter-letter .offer-line {
    max-width: 100%;
    margin: 0;
  }

  .newsletter-form {
    width: 100%;
    padding: 1.12rem;
    border-width: 3px;
    border-radius: 14px;
    box-shadow:
      0 0 0 4px rgba(15, 252, 126, 0.2),
      0 18px 38px rgba(16, 1, 53, 0.14);
  }

  .newsletter-form::before {
    inset: 8px;
    border-radius: 9px;
  }

  .newsletter-label {
    margin-bottom: 0.78rem;
    font-size: 1rem;
  }

  .newsletter-field-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .newsletter-field-row input {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 11px;
  }

  .newsletter-submit {
    width: 100%;
    min-height: 54px;
  }

  .newsletter-submit .cta-label {
    min-height: 54px;
    padding: 0.82rem 0.9rem;
  }

  .newsletter-error {
    margin-bottom: 0;
  }

  .site-footer {
    padding-top: 30px;
    padding-bottom: 36px;
  }
}

@media (max-width: 380px) {
  .newsletter-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .newsletter-copy h1 {
    font-size: clamp(3rem, 15.4vw, 3.82rem);
  }

  .newsletter-letter {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .newsletter-subheadline {
    font-size: clamp(1.55rem, 7.05vw, 1.72rem);
    line-height: 1.24;
  }

  .newsletter-form {
    padding: 1rem;
  }
}

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

  .cta-primary {
    transition: none;
  }

  .cta-label {
    transition: none;
  }

  .scroll-reveal {
    transition: none;
  }

  .marker-line.marker-garantiza::after {
    animation: none;
    transform: scaleX(1) rotate(-1.8deg);
  }
}

@keyframes marker-pass-garantiza {
  from {
    transform: scaleX(0) rotate(-1.8deg);
  }

  to {
    transform: scaleX(1) rotate(-1.8deg);
  }
}
