/*
 * Luven — estilos de la landing.
 *
 * Los colores, tipografías, radios y sombras salen de tokens.css (la paleta
 * de marca). Los valores de medidas reproducen el prototipo aprobado
 * (docs/prototipo-aprobado.html). Si cambiás algo acá, mirá la página a
 * 390 px y a 1280 px antes de dar el cambio por bueno.
 */

/* Fuentes, servidas desde el sitio (sin pedidos a Google). Solo el subset
   latino: cubre el castellano completo (tildes, ñ, ¿, ¡). */
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-latin.woff2") format("woff2");
}

/* Valores del prototipo que no están en la paleta de marca. */
:root {
  --terracota-hover: #8f533b;
  --ink-lead: #4a433a;
  --phone-border: #e3d8c4;
  --phone-screen: #faf6ef;
  --header-bg: rgba(253, 250, 244, 0.72);
  --header-line: rgba(217, 202, 173, 0.55);
  --shadow-phone: 0 30px 60px rgba(80, 55, 30, 0.1), 0 2px 6px rgba(60, 45, 25, 0.05);
  --shadow-btn: 0 8px 20px rgba(166, 99, 72, 0.18);
  --content: 1120px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, ol, ul {
  margin: 0;
}
a {
  color: var(--terracota);
  transition: color 0.25s ease;
}
a:hover {
  color: var(--ink);
}
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
b {
  color: var(--ink);
  font-weight: 600;
}

.lv-wrap {
  max-width: var(--content);
  margin: 0 auto;
}

/* ---------- Textos compartidos ---------- */

.lv-tagline {
  font-family: var(--font-tagline);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.2em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--terracota);
}
.lv-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.lv-eyebrow--brand {
  color: var(--terracota);
}
.lv-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.lv-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lv-intro {
  font-size: 18px;
  line-height: 1.6;
}
.lv-body {
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Botones ---------- */

.lv-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--terracota);
  color: var(--crema);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.lv-btn:hover {
  background: var(--terracota-hover);
  color: var(--crema);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}
.lv-btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.lv-btn--block {
  display: flex;
  justify-content: center;
  padding: 0;
}
.lv-btn--secondary {
  background: transparent;
  border: 1px solid var(--terracota);
  color: var(--terracota);
}
.lv-btn--secondary:hover {
  background: var(--blanco);
  color: var(--terracota);
  box-shadow: none;
}
.lv-btn--inverse {
  padding: 0 28px;
  background: var(--crema);
  color: var(--terracota);
}
.lv-btn--inverse:hover {
  background: var(--blanco);
  color: var(--terracota);
  box-shadow: none;
}
.lv-btn--inverse:focus-visible {
  outline-color: var(--on-brand);
}

/* ---------- Header ---------- */

.lv-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--header-line);
}
.lv-head__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.lv-head__logo {
  line-height: 0;
  margin-right: auto;
}
.lv-head__logo img {
  display: block;
  height: 26px;
  width: auto;
}
.lv-head__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lv-head__login,
.lv-head__login:hover {
  padding: 12px 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

/* Menú: lo usan el header y el pie. */
.lv-nav {
  display: flex;
}
.lv-nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
}
.lv-nav a:hover {
  color: var(--terracota);
}
.lv-head .lv-nav {
  align-items: center;
  gap: 0 30px;
  font-weight: 500;
}
.lv-head .lv-nav a {
  padding: 12px 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.lv-head .lv-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: var(--terracota);
  transition: right 0.3s ease;
}
.lv-head .lv-nav a:hover::after {
  right: 0;
}
@media (max-width: 760px) {
  .lv-head .lv-nav {
    display: none;
  }
}

/* ---------- Secciones ---------- */

.lv-section {
  padding: clamp(64px, 9vw, 96px) var(--gutter);
}
.lv-section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lv-heading {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}
.lv-heading--wide {
  max-width: 680px;
}

/* ---------- Hero ---------- */

.lv-hero {
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(56px, 7vw, 88px);
}
.lv-hero__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
}
.lv-hero__text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lv-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.lv-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracota);
}
.lv-hero__lead {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-lead);
}
.lv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.lv-hero__note {
  font-size: 14px;
}
.lv-hero__visual {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.lv-hero__stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 0 0 70px 0;
}
.lv-hero__fiction {
  position: absolute;
  right: 0;
  top: -26px;
  font-size: 12px;
  color: var(--muted);
}

/* Pantalla simplificada de la app (decorativa). */
.lv-phone {
  margin-left: auto;
  width: 290px;
  max-width: 100%;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--phone-border);
  padding: 8px;
  box-shadow: var(--shadow-phone);
}
.lv-phone__screen {
  border-radius: 25px;
  background: var(--phone-screen);
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 470px;
}
.lv-phone__meta {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lv-phone__patient {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.lv-phone__tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
}
.lv-phone__tabs span {
  padding: 6px 0;
  color: var(--muted);
}
.lv-phone__tabs .is-active {
  color: var(--ink);
  border-bottom: 2px solid var(--terracota);
}
.lv-phone__note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lv-phone__chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lv-chip {
  align-self: flex-start;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
}

/* Piezas de las pantallas simplificadas. */
.lv-mock-heading {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracota);
}
.lv-phone .lv-mock-heading {
  font-size: 10.5px;
}
.lv-mock-heading--spaced {
  margin-top: 6px;
}
/* Línea de texto simulada; el ancho va en --w. */
.lv-skel {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  width: var(--w, 100%);
}

/* Tarjeta de confidencialidad sobre la pantalla. */
.lv-privacy-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 92%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lv-privacy-card__title {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.lv-privacy-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.lv-privacy-card__row:first-of-type {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.lv-privacy-card__row b {
  color: var(--terracota);
}

/* ---------- Franja de hechos ---------- */

.lv-facts-band {
  padding: 0 var(--gutter);
}
.lv-facts {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 14px;
}

/* ---------- Cómo funciona ---------- */

.lv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 32px;
}
.lv-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lv-step__mock {
  box-sizing: border-box;
  height: 170px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lv-step__mock--center {
  justify-content: center;
  gap: 12px;
}
.lv-step__mock-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}
.lv-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
}
.lv-modes span {
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.lv-modes .is-active {
  border-color: var(--terracota);
  color: var(--terracota);
}
.lv-closing {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 48px;
}
.lv-closing__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.lv-closing .lv-body {
  flex: 1 1 420px;
}

/* ---------- Confidencialidad ---------- */

.lv-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 56px;
}
/* Lista con título y filas separadas por líneas finas. */
.lv-list {
  display: flex;
  flex-direction: column;
}
.lv-list__title {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.lv-list__title--brand {
  color: var(--terracota);
}
.lv-list > p {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.55;
}
.lv-list > p:last-child {
  border-bottom: 0;
}
.lv-list--compact .lv-list__title {
  margin-bottom: 0;
}
.lv-list--compact > p {
  padding: 12px 0;
  line-height: normal;
}

.lv-flow-title {
  margin: 80px 0 28px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lv-flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 24px;
}
.lv-flow li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--terracota);
}
.lv-flow__num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--terracota);
}
.lv-flow__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.lv-flow__text {
  font-size: 14px;
  line-height: 1.6;
}

.lv-tech {
  margin-top: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
}
.lv-tech__facts {
  flex: 1 1 460px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 32px;
  font-size: 14px;
  line-height: 1.6;
}
.lv-tech__links {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lv-tech__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Testimonios ---------- */

.lv-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 48px;
}
.lv-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}
.lv-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}
.lv-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.lv-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--border);
}

/* ---------- Precio ---------- */

.lv-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 72px;
}
.lv-price__info {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lv-price__info .lv-list {
  margin-top: 24px;
}
.lv-plan {
  box-sizing: border-box;
  flex: 1 1 400px;
  max-width: 480px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lv-plan__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lv-plan__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.lv-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.lv-plan__amount {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lv-plan__period {
  font-size: 15px;
}
.lv-plan__note {
  font-size: 14px;
}
.lv-plan__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.lv-plan__features li {
  display: flex;
  gap: 10px;
}
.lv-plan__features li > span:first-child {
  color: var(--terracota);
}
.lv-plan__foot {
  text-align: center;
  font-size: 13px;
}

/* ---------- Nosotros ---------- */

.lv-about__text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lv-about__contact {
  margin-top: 8px;
}
.lv-team {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
.lv-member {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.lv-member:first-child {
  border-top-color: var(--border-strong);
}
.lv-member:last-child {
  border-bottom: 1px solid var(--border);
}
.lv-member__initials {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--terracota);
}
.lv-member__name {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
}
.lv-member__role {
  margin-top: 4px;
  font-size: 15px;
}

/* ---------- Banda de cierre ---------- */

.lv-cta-band {
  padding: 0 var(--gutter) clamp(64px, 9vw, 96px);
}
.lv-cta {
  box-sizing: border-box;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px);
  background: var(--surface-brand);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.lv-cta__text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lv-cta__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--on-brand);
}
.lv-cta__text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-brand);
}

/* ---------- Pie ---------- */

.lv-footer {
  padding: 56px var(--gutter) 32px;
  border-top: 1px solid var(--border-strong);
}
.lv-footer__in {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.lv-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.lv-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lv-footer__brand img {
  align-self: flex-start;
  height: 28px;
  width: auto;
}
.lv-footer__brand .lv-tagline {
  font-size: 15px;
}
.lv-footer .lv-nav {
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 14px;
}
.lv-footer .lv-nav a {
  padding: 11px 0;
}
.lv-footer__copy {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Página 404 ---------- */

.lv-notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.lv-notfound .lv-hero__actions {
  margin-top: 8px;
}

/* ---------- Aparición al hacer scroll ----------
   js/main.js agrega .lv-anim al <html> solo si el navegador puede animar;
   sin JavaScript todo se ve desde el principio. */

.lv-anim .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.lv-anim .rv.in {
  opacity: 1;
  transform: none;
}
.lv-anim .rv-g > .rv:nth-child(2) { transition-delay: 0.12s; }
.lv-anim .rv-g > .rv:nth-child(3) { transition-delay: 0.24s; }
.lv-anim .rv-g > .rv:nth-child(4) { transition-delay: 0.36s; }
.lv-anim .rv-g > .rv:nth-child(5) { transition-delay: 0.48s; }
.lv-anim .rv-d { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lv-anim .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
