/* Properyo landing — tokens de marca (ver BRAND_ASSETS.md) */
:root {
  --navy: #164A5B;
  --coral: #E47C63;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --muted: #35606E;
  --on-navy: #E6E1D4;
  --line: #E3DDCF;
  --mint: #E4F0EC;
  --blush: #FBE5DE;
  --mist: #EAF1F2;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding-top: 112px; }
.stack { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.section-head { display: flex; flex-direction: column; gap: 48px; }
.section-head.tight { gap: 40px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: var(--navy); box-shadow: 0 10px 30px -8px rgba(228,124,99,.6); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(245,241,232,.45); }
.btn-ghost:hover { background: rgba(245,241,232,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 46px; padding: 0 24px; font-size: 15px; }

/* Nav */
.nav { position: sticky; top: 12px; z-index: 30; max-width: 1200px; margin: 12px auto 0; padding: 0 16px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(22,74,91,.1); border-radius: 999px; box-shadow: 0 8px 30px -12px rgba(22,74,91,.25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: rgba(22,74,91,.07); }

/* Hero */
.hero { margin: 12px 16px 0; border-radius: 40px; color: var(--cream); overflow: hidden;
  background: radial-gradient(900px 500px at 85% 0%, rgba(228,124,99,.28), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(245,241,232,.08), transparent 60%), var(--navy); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.035em; color: var(--white); text-wrap: balance; }
.hero-sub { font-size: 20px; max-width: 32em; color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { font-size: 15px; color: #CFE0E3; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(245,241,232,.1); box-shadow: inset 0 0 0 1px rgba(245,241,232,.22); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Demo */
.demo-wrap { flex: 1 1 440px; min-width: 0; }
.demo { background: var(--white); color: var(--navy); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px 0; }
.demo-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.demo-meta { font-size: 14px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; background: var(--cream); border-radius: 999px; }
.rows { display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: transparent; color: var(--navy); font-size: 15px; text-align: left; transition: background .2s, color .2s; }
.row:hover { background: var(--mist); }
.row[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.row .name { font-weight: 500; }
.row .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.detail { background: var(--cream); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-head strong { font-family: var(--font-display); font-size: 16px; }
.detail-head span { font-size: 13px; color: var(--muted); }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 12px; font-size: 15px; }
.steps li::before { content: ""; flex: 0 0 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--blush); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid #DCD5C3; font-family: var(--font-display); }
.total span:first-child { font-weight: 700; }
.total span:last-child { font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.demo-hint { font-size: 13px; color: var(--muted); padding: 0 8px 4px; }

/* Chips strip */
.strip { padding-top: 40px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--white); }

/* Antes / ahora */
.compare { display: flex; flex-wrap: wrap; gap: 20px; }
.compare > div { flex: 1 1 380px; min-width: 0; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.compare .before { box-shadow: inset 0 0 0 2px rgba(22,74,91,.18); color: var(--muted); }
.compare .after { background: var(--navy); color: var(--white); }
.compare .tagline { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.compare ul { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { grid-column: span 4; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(22,74,91,.35); }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.tile p { font-size: 17px; color: var(--muted); }
.tile .eyebrow { color: var(--muted); }
.s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.tile-dark { background: var(--navy); color: var(--cream); }
.tile-dark h3 { color: var(--white); font-size: 30px; }
.tile-dark p, .tile-dark .eyebrow { color: var(--on-navy); }
.tile-mist { background: var(--mist); }
.tile-blush { background: var(--blush); }
.tile-blush p, .tile-blush .eyebrow { color: var(--navy); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.chain .chip { background: var(--cream); color: var(--navy); }
.chain .chip.final { background: var(--coral); }
.tile-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tile-chips .chip { background: var(--mint); }

/* Roles */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 16px; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.panel { background: var(--white); border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; }
.panel-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.panel-copy p { font-size: 18px; color: var(--muted); }
.points { flex: 1 1 360px; min-width: 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }

/* Pasos */
.how { display: flex; flex-wrap: wrap; gap: 28px; }
.how li { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 4px solid var(--navy); }
.how li:last-child { border-top-color: var(--coral); }
.how .num { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; }
.how h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.how p { font-size: 16px; color: var(--muted); }

/* Planes */
.plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plan { flex: 1 1 300px; min-width: 0; border-radius: 28px; padding: 36px 32px; background: var(--white); display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.plan .price { font-size: 15px; color: var(--muted); }
.plan .desc { font-size: 16px; color: var(--muted); }
.plan ul { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23164A5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan-featured { background: var(--navy); color: var(--cream); box-shadow: 0 30px 60px -30px rgba(22,74,91,.7); }
.plan-featured h3 { color: var(--white); }
.plan-featured .price, .plan-featured .desc { color: var(--on-navy); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-top .chip { background: var(--coral); color: var(--navy); }

/* FAQ */
.faq-grid { display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-start; }
.faq-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq-list { flex: 2 1 520px; min-width: 0; border-bottom: 1px solid rgba(22,74,91,.22); }
.faq-item { border-top: 1px solid rgba(22,74,91,.22); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; background: none; border: 0; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 19px; text-align: left; }
.faq-q .icon { font-size: 28px; font-weight: 500; line-height: 1; transition: transform .2s; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 48px 24px 0; font-size: 17px; color: var(--muted); }

/* CTA */
.cta-section { padding: 112px 16px 16px; }
.cta { max-width: 1200px; margin: 0 auto; padding: 72px 48px; border-radius: 40px; color: var(--cream); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px;
  background: radial-gradient(700px 400px at 90% 0%, rgba(228,124,99,.35), transparent 60%), var(--navy); }
.cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta .h2 { color: var(--white); }
.cta p { font-size: 19px; color: var(--on-navy); }
.cta-form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-form input { flex: 1 1 220px; min-width: 0; min-height: 58px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--white); color: var(--navy); font-family: var(--font-body); font-size: 17px; }
.form-msg { flex-basis: 100%; font-size: 15px; color: var(--on-navy); min-height: 1.5em; }

/* Footer */
.footer { padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--navy); }

@media (max-width: 900px) {
  .s7, .s5, .s6, .tile { grid-column: span 12; }
  .wrap { padding: 0 20px; }
  .hero { border-radius: 28px; }
  .hero-in { padding-top: 56px; padding-bottom: 56px; }
  .nav-links { display: none; }
  .panel { padding: 28px; }
  .cta { padding: 48px 28px; border-radius: 28px; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .btn, .tile, .faq-q .icon { transition: none; }
}
