/* Corleone, landing. Mismo sistema visual "salvia" de la app. */
:root {
  --sage: #eaefe7;
  --sage-deep: #dfe6da;
  --paper: #ffffff;
  --soft: #f6f8f4;
  --ink: #1a1f1c;
  --ink-2: #3d4540;
  --muted: #545d57;
  --line: #dde3d8;
  --forest: #1f4a3c;
  --forest-deep: #173a2f;
  --forest-tint: #cfe1d6;
  --lime: #d6ef8c;
  --lime-ink: #1d3410;
  --radius: 20px;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible,
.plan-pro :focus-visible {
  outline-color: var(--lime);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}

/* ---------- Tipografía ---------- */
h1 {
  font-size: clamp(2.3rem, 8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 13em;
}
h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.lead {
  font-size: clamp(1.04rem, 2.2vw, 1.2rem);
  color: var(--ink-2);
  max-width: 33em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary {
  background: var(--forest);
  color: #fff;
}
.btn-primary:hover {
  background: var(--forest-deep);
}
.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
}
.btn-lime:hover {
  background: #cbe87a;
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--soft);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
  background: rgba(234, 239, 231, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--forest);
  color: var(--lime);
  font-size: 18px;
  font-weight: 800;
}
.nav {
  display: none;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  background: var(--paper);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--paper);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="true"] {
  background: var(--lime);
  color: var(--lime-ink);
}
.top .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.top .login {
  display: none;
}
@media (max-width: 380px) {
  .top .btn-primary {
    display: none;
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .top .login {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 24px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 32px;
}
.hero .lead {
  margin-top: 18px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.cta-row .btn {
  flex: 1 1 220px;
}
.micro {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 960px) {
  .hero {
    padding: 48px 0 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }
  .cta-row .btn {
    flex: 0 0 auto;
  }
}

/* Foto y captura de la app */
.hero-visual {
  position: relative;
  padding-bottom: 40px;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 24px;
  background: var(--sage-deep);
}
.hero-phone {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 42%;
  max-width: 230px;
}
@media (min-width: 960px) {
  .hero-visual {
    padding: 0 0 48px;
  }
  .hero-photo {
    width: 82%;
    aspect-ratio: 4 / 4.7;
  }
  .hero-phone {
    right: 0;
    width: 44%;
    max-width: 250px;
  }
}

.phone {
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 24px 50px -28px rgba(26, 31, 28, 0.6);
}
.phone img {
  width: 100%;
  border-radius: 24px;
}
.screen {
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(26, 31, 28, 0.08), 0 30px 60px -36px rgba(26, 31, 28, 0.45);
}
.screen img {
  width: 100%;
}
.shot-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Canales ---------- */
.channels {
  padding: 0 0 8px;
}
.channels .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.channels p {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.channels ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channels li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Secciones ---------- */
.section {
  padding: 64px 0;
  scroll-margin-top: 64px;
}
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}
.section-head {
  max-width: 42rem;
  margin-bottom: 32px;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.06rem;
}

/* Producto: filas de texto + captura real */
.feature {
  display: grid;
  gap: 24px;
  align-items: center;
}
.feature + .feature {
  margin-top: 56px;
}
.feature-text h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.feature-text p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.04rem;
  max-width: 30em;
}
.feature-text .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}
.feature-phone {
  width: min(72%, 300px);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
  .feature + .feature {
    margin-top: 96px;
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .feature.narrow {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Calculadora de ahorro ---------- */
.on-dark {
  background: var(--forest);
  color: #fff;
  border-radius: 28px;
  margin: 0 8px;
}
@media (min-width: 720px) {
  .on-dark {
    margin: 0 16px;
    border-radius: 36px;
  }
}
.on-dark .section-head p {
  color: var(--forest-tint);
}
.calc {
  display: grid;
  gap: 16px;
}
.calc-inputs {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.field output {
  font-size: 18px;
  font-weight: 800;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--forest-tint);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 2px 0 0;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--lime) var(--fill), rgba(255, 255, 255, 0.22) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--lime);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border: 4px solid var(--forest);
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--forest);
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime);
}
.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--lime-ink);
}
.calc-result .big {
  display: block;
  font-size: clamp(3.5rem, 15vw, 5.6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.calc-result .unit {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.calc-result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.calc-result dl div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}
.calc-result dt {
  font-size: 13px;
  font-weight: 600;
}
.calc-result dd {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--forest-tint);
  max-width: 46rem;
}
@media (min-width: 900px) {
  .calc {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .calc-inputs,
  .calc-result {
    padding: 28px;
  }
}

/* ---------- Por qué nosotros ---------- */
.why-head {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
.why-head .section-head {
  margin-bottom: 0;
}
.photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sage-deep);
}
@media (min-width: 900px) {
  .why-head {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
}
.why-list {
  display: grid;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
}
.why-list li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.why-list p {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 40em;
}
@media (min-width: 860px) {
  .why-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    border-top: 0;
  }
  .why-list li {
    align-content: start;
    padding: 20px 0 0;
    border-top: 2px solid var(--ink);
    border-bottom: 0;
  }
}

.compare {
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.compare caption {
  caption-side: bottom;
  padding: 12px 12px 6px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.compare th,
.compare td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.compare tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
}
.compare tbody tr + tr th,
.compare tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.compare td {
  color: var(--ink-2);
}
.compare .us {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}
.compare thead .us {
  border-radius: 12px 12px 0 0;
  color: var(--forest);
}
.compare tbody tr:last-child .us {
  border-radius: 0 0 12px 12px;
}
.scroll-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 700px) {
  .scroll-hint {
    display: none;
  }
}

/* ---------- Precios ---------- */
.plans {
  display: grid;
  gap: 12px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--paper);
}
.plan-pro {
  background: var(--forest);
  color: #fff;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}
.plan-name {
  font-size: 16px;
  font-weight: 800;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 700;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}
.price b {
  font-size: clamp(3rem, 12vw, 4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.plan-pro .price b {
  color: var(--lime);
}
.price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.plan-pro .price span,
.plan-pro .plan-desc {
  color: var(--forest-tint);
}
.plan-desc {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.plan ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  font-size: 15px;
}
.plan li {
  position: relative;
  padding-left: 26px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  color: var(--forest);
}
.plan-pro li::before {
  color: var(--lime);
}
.plan li.off {
  color: var(--muted);
}
.plan li.off::before {
  top: 0.75em;
  height: 0;
  border-left: 0;
  transform: none;
  color: var(--muted);
}
.pay {
  margin-top: auto;
}
.plan .btn {
  width: 100%;
}
.pay-buttons:not(:empty) {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.pay-buttons:not(:empty) + .btn {
  display: none;
}
.pay-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.pay-status:empty {
  display: none;
}
.plan-pro .pay-status {
  color: var(--lime);
}
.plans-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .plan {
    padding: 32px 30px;
  }
}

/* ---------- Preguntas ---------- */
.faq {
  display: grid;
  gap: 8px;
  max-width: 50rem;
}
.faq details {
  border-radius: 18px;
  background: var(--paper);
  padding: 0 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 44rem;
}

/* ---------- Cierre y pie ---------- */
.closing {
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: 32px 20px;
  border-radius: 28px;
  background: var(--lime);
  color: var(--lime-ink);
}
.closing p {
  margin-top: 14px;
  max-width: 34em;
  font-size: 1.05rem;
}
.closing .cta-row {
  margin-top: 24px;
}
.closing-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
}
@media (min-width: 900px) {
  .closing {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding: 56px;
    border-radius: 36px;
  }
  .closing-photo {
    aspect-ratio: 4 / 3.4;
    border-radius: 24px;
  }
}

.foot {
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot .wrap {
  display: grid;
  gap: 18px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot small {
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 860px) {
  .foot .wrap {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
  }
}

/* ---------- Movimiento (solo una entrada suave) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
