/* ==========================================================================
   Ferrari Professional · Promoción fin de año · Solentine Cosmética
   Mobile first · editorial minimalista
   ========================================================================== */

:root {
  /* Paleta de marca */
  --osso: #F4F1EA;       /* fondo bianco osso */
  --nero: #1C1B19;       /* texto */
  --oro: #A8895A;        /* acento: filetes, bordes, botón (no usar para texto pequeño sobre osso: 2,9:1) */
  --tortora: #B0A595;    /* secundario: solo decorativo o sobre fondo nero (7,1:1) */
  --salvia: #616D69;     /* acento puntual (4,8:1 sobre osso) */
  --bordeaux: #5C2A2A;   /* acento puntual (10,2:1 sobre osso) */

  /* Variantes para texto con contraste AA sobre osso */
  --oro-text: #7A6544;      /* 4,9:1 */
  --tortora-text: #6E6456;  /* 5,1:1 */

  --paper: #FBF9F4;         /* tarjetas, un punto más claro que el fondo */
  --line: rgba(168, 137, 90, .35);

  --serif: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 24px;
  --max: 1120px;
  --section-y: clamp(80px, 14vw, 160px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--osso);
  color: var(--nero);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -150%);
  background: var(--nero);
  color: var(--osso);
  padding: 12px 20px;
  font-size: 14px;
  z-index: 100;
  transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Recursos gráficos: etiqueta + filete + titular
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--oro-text);
  /* compensa el tracking del último carácter para centrar sobre el eje */
  padding-left: .28em;
}
.eyebrow--light { color: var(--tortora); }

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 20px auto 24px;
  background: var(--oro);
}
.rule--short { width: 28px; margin: 18px auto 22px; }

/* brillo festivo muy discreto que recorre el filete */
.rule--shine {
  position: relative;
  overflow: hidden;
}
.rule--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #F3E3C3, transparent);
  transform: translateX(-120%);
  animation: shine 5s var(--ease) 1.2s infinite;
}
@keyframes shine {
  0% { transform: translateX(-120%); }
  35%, 100% { transform: translateX(320%); }
}

.section {
  padding: var(--section-y) var(--gutter);
}

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(48px, 8vw, 80px);
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 7.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 24px;
  color: var(--tortora-text);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Botón
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  padding: 16px 40px;
  background: var(--oro);
  color: var(--nero);           /* 5,2:1 sobre oro */
  border: 1px solid var(--oro);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--nero);
  border-color: var(--nero);
  color: var(--osso);
}
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Logos (placeholders)
   -------------------------------------------------------------------------- */
.brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.brands__divider {
  width: 1px;
  height: 32px;
  background: var(--oro);
  opacity: .6;
}
.logo { width: auto; }
.logo--ferrari { height: 40px; }
.logo--solentine { height: 22px; }
.brands--footer { gap: 20px; }
.brands--footer .logo--ferrari { height: 34px; }
.brands--footer .logo--solentine { height: 19px; }
.logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--tortora-text);
}

/* --------------------------------------------------------------------------
   1 · Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter) 72px;
}

.hero__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 24px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 540px;
  margin: 32px auto 44px;
  color: var(--tortora-text);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.fineprint {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 9vw, 72px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--tortora-text);
}

.sparkle {
  position: absolute;
  fill: var(--oro);
  pointer-events: none;
  animation: twinkle 4.5s ease-in-out infinite;
}
.sparkle--a { width: 14px; top: 18%; left: 6%; opacity: .55; }
.sparkle--b { width: 9px; top: 30%; right: 8%; opacity: .4; animation-delay: 1.8s; }
.sparkle--c { width: 12px; top: 0; right: 12%; opacity: .5; }
@keyframes twinkle {
  0%, 100% { transform: scale(.85); opacity: .25; }
  50% { transform: scale(1); opacity: .65; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--oro), transparent);
}

/* --------------------------------------------------------------------------
   2 · Condiciones
   -------------------------------------------------------------------------- */
.conditions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--osso);
}
.conditions__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Velo hueso: más denso arriba y abajo, donde hay texto directamente sobre la foto */
.conditions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(244, 241, 234, .9) 0%,
    rgba(244, 241, 234, .82) 22%,
    rgba(244, 241, 234, .45) 45%,
    rgba(244, 241, 234, .45) 72%,
    rgba(244, 241, 234, .9) 88%,
    rgba(244, 241, 234, .94) 100%);
}

.tiers {
  display: grid;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(28, 27, 25, .08);
  padding: 48px 28px 44px;
}

.tier--featured {
  border: 1px solid var(--oro);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}

.tier__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: var(--nero);
  color: var(--osso);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 8px 16px 8px calc(16px + .26em);
}

.tier__from,
.tier__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tortora-text);
  padding-left: .24em;
}

.tier__amount {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(56px, 16vw, 76px);
  line-height: 1;
  letter-spacing: -.02em;
}

.tier__value {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  color: var(--bordeaux);
}

.tier__desc {
  margin-top: 2px;
  font-size: 15px;
  color: var(--nero);
}

.tier__or {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 200px;
  margin: 20px auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--oro-text);
}
.tier__or::before,
.tier__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.conditions__note {
  max-width: 520px;
  margin: 56px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 4.6vw, 23px);
  line-height: 1.5;
  color: var(--salvia);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   3 · Simulador
   -------------------------------------------------------------------------- */
.simulator {
  background: var(--paper);
  border-top: 1px solid rgba(28, 27, 25, .06);
  border-bottom: 1px solid rgba(28, 27, 25, .06);
}

.sim {
  max-width: 640px;
  margin: 0 auto;
}

.sim__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tortora-text);
  padding-left: .24em;
}
.sim__label span { letter-spacing: .1em; text-transform: none; }

.sim__field {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 28px;
  border-bottom: 1px solid var(--oro);
  max-width: 240px;
  padding: 0 4px;
}

.sim__input {
  width: 100%;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--nero);
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 60px);
  line-height: 1.1;
  text-align: center;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
@supports (field-sizing: content) {
  .sim__input { width: auto; field-sizing: content; min-width: 1.5ch; }
}
.sim__input::-webkit-outer-spin-button,
.sim__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim__input:focus { outline: none; }
.sim__field:focus-within { border-bottom-color: var(--bordeaux); box-shadow: 0 1px 0 var(--bordeaux); }

.sim__currency {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--oro-text);
}

/* Slider */
.sim__range {
  --pct: 25%;
  width: 100%;
  height: 44px;              /* zona táctil */
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.sim__range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--oro) var(--pct), rgba(28, 27, 25, .14) var(--pct));
}
.sim__range::-moz-range-track { height: 2px; background: rgba(28, 27, 25, .14); }
.sim__range::-moz-range-progress { height: 2px; background: var(--oro); }
.sim__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--oro);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 13px var(--oro);
}
.sim__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--oro);
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 1px var(--oro);
}
.sim__range:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }

.sim__scale {
  position: relative;
  height: 18px;
  font-size: 11px;
  color: var(--tortora-text);
  letter-spacing: .04em;
}
.sim__scale span { position: absolute; top: 0; transform: translateX(-50%); }
.sim__scale span:nth-child(1) { left: 0; transform: none; }
.sim__scale span:nth-child(2) { left: 12.5%; }
.sim__scale span:nth-child(3) { left: 25%; }
.sim__scale span:nth-child(4) { left: 45%; }
.sim__scale span:nth-child(5) { right: 0; left: auto; transform: none; }

.sim__results {
  margin-top: 48px;
  transition: opacity .3s var(--ease);
}
.sim__results.is-inactive { opacity: .3; }

.sim__big {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.25;
  text-wrap: balance;
}

.sim__msg {
  min-height: 1.6em;
  margin-top: 40px;
  font-size: 15px;
  color: var(--salvia);
  font-weight: 500;
}
.sim__msg:empty { margin-top: 0; }

/* --------------------------------------------------------------------------
   4 · Qué incluye
   -------------------------------------------------------------------------- */
.products {
  display: grid;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.product img,
.ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ph {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% 30%, #FBF9F4 0%, #ECE6DA 100%);
  border: 1px solid rgba(168, 137, 90, .22);
}
.ph span {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--tortora-text);
}

.product__name {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}
.product__name::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto 16px;
  background: var(--oro);
}

/* --------------------------------------------------------------------------
   5 · CTA final
   -------------------------------------------------------------------------- */
.final {
  background: var(--nero);
  color: var(--osso);
}

.final__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.final__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 9vw, 64px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 44px;
  text-wrap: balance;
}

.final .btn:hover {
  background: var(--osso);
  border-color: var(--osso);
  color: var(--nero);
}

.final__help {
  max-width: 420px;
  margin: 32px auto 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--tortora);        /* 7,1:1 sobre nero */
}
.final__help a {
  color: var(--osso);
  text-decoration: underline;
  text-decoration-color: var(--oro);
  text-underline-offset: 4px;
  /* objetivo táctil */
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6 · Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 72px var(--gutter) 48px;
  background: var(--osso);
}
.footer .rule { margin: 32px auto; }

.footer__address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.8;
  color: var(--nero);
  max-width: 520px;
  margin: 0 auto;
}
.footer__address a {
  display: inline-block;
  padding: 10px 2px;
  margin: -10px 0;
  text-decoration-color: var(--oro);
  text-underline-offset: 3px;
}

.footer__legal {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--tortora-text);
}

/* --------------------------------------------------------------------------
   CTA fijo en móvil
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 241, 234, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
body.has-sticky { padding-bottom: 80px; }

/* --------------------------------------------------------------------------
   Animaciones de aparición (solo si hay JS)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .tiers .reveal:nth-child(2) { transition-delay: .1s; }
.js .tiers .reveal:nth-child(3) { transition-delay: .2s; }
.js .products .reveal:nth-child(2) { transition-delay: .1s; }
.js .products .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Tablet ≥ 768 px
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root { --gutter: 48px; }

  .eyebrow { font-size: 12px; }

  .hero { padding-top: 40px; }
  .hero__lead { font-size: 17px; }
  .sparkle--a { left: -2%; }
  .sparkle--b { right: 0; }

  .brands { gap: 28px; }
  .brands__divider { height: 40px; }
  .logo--ferrari { height: 52px; }
  .logo--solentine { height: 28px; }

  .tiers {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  .tier { padding: 52px 18px 44px; }
  .tier__amount { font-size: 56px; }
  .tier__value { font-size: 30px; }
  .tier__desc { font-size: 14px; }

  .sim__results {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 24px;
  }
  .sim__results .tier__or {
    flex-direction: column;
    margin: 0;
    height: 100%;
    max-width: none;
  }
  .sim__results .tier__or::before,
  .sim__results .tier__or::after { width: 1px; height: auto; }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .product__name { font-size: 24px; }

  .footer__legal { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Escritorio ≥ 1024 px
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .tiers { gap: 32px; }
  .tier { padding: 64px 32px 56px; }
  .tier__amount { font-size: 76px; }
  .tier__value { font-size: 36px; }
  .tier__desc { font-size: 15px; }
  .tier--featured,
  .js .tier--featured.reveal.is-in { transform: translateY(-16px); }
  .js .tier--featured.reveal:not(.is-in) { transform: translateY(2px); }

  .products { gap: 40px; }
  .product__name { font-size: 28px; }
}

/* En escritorio no hace falta el CTA fijo */
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
}

/* Textos directamente sobre la foto de fondo: tonos más profundos para mantener AA */
.conditions .section__head .eyebrow { color: #5E4D33; }
.conditions .conditions__note { color: #434D4A; }
