/* =============================================
   EMBLEMA · Landing VSL elegante
   Paleta: oscuro cálido + acento vino
   ============================================= */

/* ============ TIPOGRAFÍAS LOCALES ============ */
@font-face {
  font-family: "Adineue PRO";
  src: url("assets/fonts/adineuePRO-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adineue PRO";
  src: url("assets/fonts/adineue%20PRO.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adineue PRO";
  src: url("assets/fonts/adineue%20PRO%20Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adineue PRO";
  src: url("assets/fonts/adineuePRO-Black%20(2).otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Denton";
  src: url("assets/fonts/DentonTest-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Denton";
  src: url("assets/fonts/DentonTest-RegularItalic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Denton";
  src: url("assets/fonts/DentonTest-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Denton";
  src: url("assets/fonts/DentonTest-LightItalic.otf") format("opentype");
  font-weight: 300; font-style: italic; font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  /* Paleta */
  --bg:           #0d0908;          /* negro cálido, casi marrón muy oscuro */
  --bg-soft:      #15100e;          /* secciones alternas */
  --bg-card:      #1a1311;          /* tarjetas */
  --fg:           #f4ece4;          /* cream / blanco cálido */
  --muted:        #8a7f78;           /* gris cálido para texto secundario */
  --line:         rgba(244, 236, 228, 0.10);
  --line-strong:  rgba(244, 236, 228, 0.22);

  /* Acento vino */
  --wine:         #7e2a37;          /* vino principal */
  --wine-deep:    #5a1d27;          /* sombras / hover */
  --wine-light:   #a64251;          /* gradient highlight */
  --wine-soft:    rgba(126, 42, 55, 0.18);
  --wine-glow:    rgba(166, 66, 81, 0.45);

  /* Fuentes */
  --font-sans:    "Adineue PRO", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Denton", "Times New Roman", Georgia, serif;

  /* Layout */
  --max:          1280px;
  --pad:          clamp(20px, 4.5vw, 64px);
  --gap:          clamp(20px, 2.5vw, 40px);

  /* Easings */
  --ease:         cubic-bezier(.2, .8, .2, 1);
}

/* ============ RESET LIGHT ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
  /* sutileza: textura sutil de grano oscuro */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(126, 42, 55, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(126, 42, 55, 0.10), transparent 50%);
  background-attachment: fixed;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
em, .lp-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============ HELPERS ============ */
.lp-accent {
  color: var(--fg);
  background: linear-gradient(90deg, var(--wine-light) 0%, var(--wine) 50%, var(--wine-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}
.lp-mark {
  color: var(--wine-light);
  font-size: 0.85em;
  margin: 0 8px;
}

/* ============ HEADER MINIMAL ============ */
.lp-hdr {
  display: flex; justify-content: center; align-items: center;
  padding: clamp(20px, 3vh, 36px) var(--pad);
}
.lp-hdr__logo img {
  height: clamp(144px, 16vw, 208px);
  width: auto;
}

/* ============ HERO ============ */
.lp-hero {
  text-align: center;
  padding: clamp(20px, 4vh, 48px) var(--pad) clamp(60px, 8vh, 100px);
  max-width: 1200px;
  margin: 0 auto;
}
.lp-hero__eyebrow {
  display: inline-block;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.lp-hero__headline {
  font-weight: 300;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin: 0 auto clamp(24px, 3vh, 32px);
  color: var(--fg);
}
.lp-hero__headline em {
  color: var(--wine-light);
}
.lp-hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto clamp(40px, 6vh, 64px);
}

/* ============ VSL VIDEO ============ */
.lp-vsl {
  max-width: 1080px;
  margin: 0 auto clamp(36px, 5vh, 56px);
  padding: 0;
}
.lp-vsl__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--line),
    0 0 80px var(--wine-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.lp-vsl__player:hover {
  transform: translateY(-3px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--line-strong),
    0 0 120px var(--wine-glow);
}
.lp-vsl__media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.lp-vsl__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.lp-vsl__player.is-playing .lp-vsl__overlay { opacity: 0; }
.lp-vsl__play {
  width: clamp(80px, 10vw, 120px);
  height: clamp(80px, 10vw, 120px);
  border-radius: 50%;
  background: var(--fg);
  display: grid; place-items: center;
  position: relative;
  transition: transform .35s var(--ease), background .25s ease;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}
.lp-vsl__player:hover .lp-vsl__play {
  transform: scale(1.06);
  background: var(--wine-light);
}
.lp-vsl__play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: clamp(16px, 2vw, 22px) 0 clamp(16px, 2vw, 22px) clamp(26px, 3vw, 34px);
  border-color: transparent transparent transparent var(--bg);
  margin-left: 8px;
  transition: border-color .25s ease;
}
.lp-vsl__player:hover .lp-vsl__play::after { border-left-color: var(--fg); }

.lp-vsl__sound {
  position: absolute;
  right: clamp(16px, 2.5vw, 24px);
  bottom: clamp(16px, 2.5vw, 24px);
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  z-index: 4;
}
.lp-vsl__sound:hover {
  background: var(--wine);
  color: var(--fg);
  border-color: var(--wine);
  transform: translateY(-2px);
}

/* ============ BOTONES ============ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.lp-btn--primary {
  background: var(--wine);
  color: var(--fg);
  border-color: var(--wine);
  box-shadow: 0 12px 40px var(--wine-soft);
}
.lp-btn--primary:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px var(--wine-glow);
}
.lp-btn--lg {
  padding: 20px 36px;
  font-size: 16px;
  letter-spacing: 0.05em;
}
.lp-btn--bob {
  animation: lp-bob 2.6s ease-in-out infinite;
}
@keyframes lp-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.lp-btn--bob:hover { animation-play-state: paused; }

/* ============ CLIENTES ============ */
.lp-clients {
  padding: clamp(40px, 6vh, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.lp-clients__eyebrow {
  text-align: center;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.lp-clients__viewport {
  overflow: hidden;
  position: relative;
}
.lp-clients__viewport::before,
.lp-clients__viewport::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.lp-clients__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-soft), transparent);
}
.lp-clients__viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-soft), transparent);
}
.lp-clients__track {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  animation: lp-clients-scroll 45s linear infinite;
  width: max-content;
}
.lp-clients__item {
  height: clamp(110px, 13vw, 170px);
  width: auto;
  flex-shrink: 0;
  opacity: 0.6;
  filter: brightness(0) invert(1); /* fuerza blanco si el logo lo permite */
  transition: opacity .3s ease, transform .3s ease;
}
.lp-clients__item:hover {
  opacity: 1;
  transform: scale(1.05);
}
@keyframes lp-clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ TESTIMONIOS · CASES ============ */
.lp-cases {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.lp-cases__head {
  text-align: center;
  margin-bottom: clamp(48px, 6vh, 72px);
}
.lp-cases__eyebrow {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.lp-cases__title {
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 auto;
}
.lp-cases__title em { color: var(--wine-light); }

.lp-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}
@media (max-width: 1024px) {
  .lp-cases__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-cases__grid { grid-template-columns: 1fr; }
}

.lp-case {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.lp-case:hover {
  border-color: var(--wine);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--wine-soft);
}

/* Player se inyecta vía JS arriba del bloque */
.lp-case__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.lp-case__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .3s ease;
}
.lp-case__player:hover .lp-case__thumb {
  transform: scale(1.04);
  filter: brightness(.65);
}
.lp-case__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 7vw, 72px); height: clamp(56px, 7vw, 72px);
  border-radius: 50%;
  background: rgba(244, 236, 228, 0.95);
  display: grid; place-items: center;
  pointer-events: none;
  transition: transform .25s ease, background .25s ease;
}
.lp-case__player:hover .lp-case__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--wine-light);
}
.lp-case__play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--bg);
  margin-left: 4px;
}
.lp-case__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.lp-case__stats {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 24px 22px 12px;
}
.lp-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.lp-stat__check {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wine);
  flex-shrink: 0;
  display: inline-grid; place-items: center;
}
.lp-stat__check::after {
  content: "";
  display: block;
  width: 5px; height: 9px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(45deg) translate(-1px, -1px);
}

.lp-case__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  padding: 4px 22px 16px;
}
.lp-case__by {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 12px 22px 22px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.lp-case__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.lp-case__role {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ GARANTÍAS ============ */
.lp-guarantee {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* Glow vino sutil decorativo al fondo (sustituye la "burbuja" colorida del ref) */
.lp-guarantee::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--wine-soft) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.lp-guarantee__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.lp-guarantee__head {
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lp-guarantee__seal {
  color: var(--wine-light);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.lp-guarantee__seal::before {
  content: "";
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wine-soft), transparent 70%);
  z-index: -1;
}
.lp-guarantee__title {
  font-weight: 400;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.lp-guarantee__title em {
  font-style: italic;
  color: var(--wine-light);
}

.lp-guarantee__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .lp-guarantee__list { grid-template-columns: 1fr; max-width: 540px; }
}
.lp-guarantee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  background: rgba(244, 236, 228, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.lp-guarantee__item:hover {
  border-color: var(--wine);
  background: rgba(244, 236, 228, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--wine-soft);
}

/* Sello check arriba de cada garantía */
.lp-guarantee__item .lp-guarantee__seal {
  color: var(--wine-light);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 4px;
}
.lp-guarantee__item .lp-guarantee__seal::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wine-soft), transparent 70%);
  z-index: -1;
}

.lp-guarantee__item p {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--fg);
  max-width: 36ch;
  margin: 0 auto;
}

/* Título de cada garantía: Denton itálico, vino */
.lp-mark-hl {
  display: block;
  background: none;
  padding: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--wine-light);
}

/* ============ CIERRE + FORM ============ */
.lp-close {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: 880px;
  margin: 0 auto;
}
.lp-close__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.lp-close__eyebrow {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.lp-close__title {
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vh, 40px);
}
.lp-close__title em { color: var(--wine-light); }
.lp-close__copy p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}
.lp-close__copy strong {
  color: var(--fg);
  font-weight: 500;
}
.lp-close__cta-note {
  color: var(--wine-light) !important;
  font-weight: 500;
  margin-top: 22px !important;
  font-size: clamp(15px, 1.4vw, 17px) !important;
}

/* Typeform embebido */
.lp-typeform {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: 36px;
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px var(--wine-soft);
}
.lp-typeform > div[data-tf-live] {
  min-height: 560px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .lp-typeform { min-height: 620px; }
  .lp-typeform > div[data-tf-live] { min-height: 620px; }
}

.lp-close__sign {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.lp-foot {
  padding: clamp(40px, 6vh, 60px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.lp-foot__logo {
  height: 28px;
  width: auto;
  margin: 0 auto 16px;
  opacity: 0.55;
}
.lp-foot__copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ ACCESIBILIDAD ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
*:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 4px;
  border-radius: 4px;
}
