/* Citasly · sistema visual renovado */
:root {
  --primary: #635bdb;
  --primary-dark: #4e46bd;
  --accent: #ff8066;
  --accent-dark: #eb684f;
  --text: #202238;
  --muted: #6d7086;
  --bg: #f7f7fb;
  --white: #fff;
  --border: #e7e7f0;
  --radius: 22px;
  --font: "Manrope", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 18px 50px rgba(39, 38, 81, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .65em; font-weight: 800; letter-spacing: -.045em; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 7px; }
.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Navegación */
.topbar { background: #292844; color: #f5f3ff; font-size: .78rem; text-align: center; padding: .48rem 0; font-weight: 700; letter-spacing: .015em; }
.site-header { background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(231,231,240,.85); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; letter-spacing: -.05em; }
.logo:hover { color: var(--text); }
.logo-mark { filter: drop-shadow(0 5px 10px rgba(99,91,219,.22)); }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: #505168; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .35rem 0; transition: color .2s; }
.nav ul a:hover { color: var(--primary); }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(48,44,104,.15); }
.btn-sm { padding: .68rem 1.2rem; font-size: .87rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(99,91,219,.2); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #312635; box-shadow: 0 8px 20px rgba(255,128,102,.2); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--text); border-color: #dedeea; }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }

/* Portada */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 7vw, 6rem); background: radial-gradient(ellipse at 77% 34%, rgba(255,128,102,.15), transparent 30%), radial-gradient(ellipse at 8% 10%, rgba(99,91,219,.12), transparent 36%), linear-gradient(145deg, #f4f2ff 0%, #fbfaff 50%, #fff5f1 100%); }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(99,91,219,.11); border-radius: 50%; right: -175px; bottom: -230px; box-shadow: 0 0 0 42px rgba(99,91,219,.025), 0 0 0 84px rgba(99,91,219,.02); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.78); color: var(--primary-dark); font-weight: 800; font-size: .76rem; padding: .55rem .9rem; border-radius: 999px; margin-bottom: 1.35rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid rgba(99,91,219,.13); box-shadow: 0 5px 20px rgba(39,38,81,.04); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,128,102,.14); }
.hero h1 { max-width: 12ch; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 44ch; line-height: 1.75; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 12% 8%; background: rgba(99,91,219,.15); filter: blur(55px); border-radius: 50%; }
.hero-art img { width: 100%; position: relative; filter: drop-shadow(0 28px 35px rgba(52,48,109,.14)); }
.trust { background: #fff; border-block: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 1.15rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 3rem; font-weight: 700; color: #55566d; font-size: .88rem; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; background: #e9f7f1; color: #16845f; border-radius: 50%; margin-right: .55rem; font-size: .73rem; font-weight: 900; }

/* Secciones y tarjetas */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-white { background: #fff; }
.section-head { text-align: center; max-width: 690px; margin: 0 auto 3rem; }
.section-head h2 { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: 0 7px 24px rgba(39,38,81,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.grid-3 > .card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d8d5f5; }
.section-white .card { background: #fcfcff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem; }
.step-num { display: inline-flex; width: 2.7rem; height: 2.7rem; align-items: center; justify-content: center; border-radius: 15px; background: #efedff; color: var(--primary); font-weight: 900; margin-bottom: 1.2rem; }
.step p, .feature p, .benefit p { color: var(--muted); margin: 0; font-size: .94rem; }
.icon-box { display: inline-flex; width: 3.15rem; height: 3.15rem; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(145deg, #f0efff, #e7e5ff); color: var(--primary); margin-bottom: 1.15rem; }
.icon-box .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.feature h3 { margin-bottom: .55rem; }
.benefit .stat { color: var(--primary-dark); font-weight: 800; font-size: 1.02rem; margin-top: 1.15rem; }
.benefit .stat-note { font-size: .8rem; margin-top: .25rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.compare-col li { padding: .7rem 0 .7rem 2rem; position: relative; border-top: 1px solid var(--border); color: #55566d; }
.compare-col li:first-child { border-top: 0; }
.compare-col li::before { position: absolute; left: 0; font-weight: 800; }
.compare-before { background: #faf9fb !important; }
.compare-before li::before { content: "–"; color: #a4a2b2; }
.compare-after { border-color: #cbc7fa; background: linear-gradient(145deg, #f3f1ff, #fff) !important; box-shadow: 0 0 0 1px rgba(99,91,219,.08) inset; }
.compare-after li::before { content: "✓"; color: var(--primary); }

/* Planes */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 840px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2.2rem; }
.plan-featured { border: 1.5px solid #aaa5f0; box-shadow: 0 20px 55px rgba(99,91,219,.14); background: linear-gradient(160deg, #fff, #f8f7ff) !important; }
.badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; padding: .4rem 1rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .07em; box-shadow: 0 6px 16px rgba(99,91,219,.25); }
.plan-desc { color: var(--muted); min-height: 3.2em; font-size: .92rem; }
.price { margin: .6rem 0 1.3rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price-amount { font-size: 3.25rem; font-weight: 800; letter-spacing: -.06em; }
.price-cur, .price-per { color: var(--muted); font-weight: 700; font-size: .9rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan-list li { padding: .5rem 0 .5rem 1.8rem; position: relative; color: #55566d; font-size: .91rem; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: #21936c; font-weight: 900; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 1.5rem; font-size: .85rem; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0 0 1rem; color: var(--muted); font-style: italic; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption span { color: var(--muted); font-size: .85rem; }

/* FAQ y cierre */
.faq { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 0 1.3rem; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #cbc7fa; box-shadow: 0 8px 24px rgba(39,38,81,.05); }
.faq-item summary { cursor: pointer; font-weight: 800; padding: 1.2rem 2rem 1.2rem 0; list-style: none; position: relative; font-size: .95rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; font-size: .93rem; }
.final-cta { position: relative; overflow: hidden; background: #292844; color: #fff; text-align: center; padding: clamp(4rem, 8vw, 6rem) 0; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; width: 420px; height: 420px; top: -270px; left: -130px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); }
.final-cta::after { left: auto; top: auto; right: -150px; bottom: -320px; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; }
.final-cta p { font-size: 1.05rem; margin-bottom: 1.7rem; color: #d8d7e7; }

/* Páginas internas y blog */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; background: linear-gradient(135deg, #f3f1ff, #fff8f5); }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.post-meta { color: var(--muted); font-weight: 600; font-size: .9rem; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-cover { overflow: hidden; background: #f0efff; }
.post-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-cover img { transform: scale(1.035); }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body time { font-size: .8rem; color: var(--muted); font-weight: 700; }
.post-card-body h2 { font-size: 1.25rem; margin: .45rem 0 .6rem; }
.post-card-body h2 a { color: var(--text); text-decoration: none; }
.post-card-body h2 a:hover { color: var(--primary); }
.post-card-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.read-more { font-weight: 800; text-decoration: none; font-size: .9rem; }
.read-more::after { content: " →"; }
.post-hero { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 2rem; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: var(--shadow); }
.prose { padding-bottom: 4rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: #f1efff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.post-cta { margin-top: 3rem; background: #292844; color: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.post-cta h2 { color: #fff; margin-top: 0; }
.post-cta p { color: #d8d7e7; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; width: min(1000px, 100% - 3rem); }
.form label { display: block; font-weight: 700; margin: 1rem 0 .35rem; font-size: .9rem; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea { width: 100%; font: inherit; font-size: .95rem; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: 13px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(99,91,219,.12); }
.form button { margin-top: 1.25rem; }
.form-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-side h2 { font-size: 1.05rem; }

/* Pie */
.site-footer { background: #222137; color: #c7c6d8; padding: 4rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.24); text-underline-offset: 3px; }
.site-footer a:hover { color: #ffad9c; }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-desc { margin-top: 1rem; max-width: 38ch; color: #aaa9bf; font-size: .9rem; }
.footer-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .11em; color: #fff; margin-bottom: .85rem; }
.footer-title-2 { margin-top: 1.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-list li { margin-bottom: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3b3951; font-size: .8rem; }
.footer-notice { color: #8e8da6; margin: .5rem 0 0; }

/* Adaptación a pantallas */
@media (max-width: 900px) {
  .hero-grid, .compare, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 1rem; }
  .hero-copy { text-align: center; }
  .hero h1, .lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { max-width: 700px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-art { order: 1; max-width: 520px; margin-inline: auto; }
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.4rem; gap: 1rem; box-shadow: 0 18px 24px rgba(39,38,81,.08); }
  .js .nav.open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a { display: block; padding: .75rem 0; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav-wrap { position: relative; }
}
@media (max-width: 600px) {
  .container, .container-narrow, .contact-grid { width: min(100% - 2rem, 1160px); }
  .nav-wrap { min-height: 68px; }
  .hero { padding-top: 3.4rem; }
  .hero-grid { gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .lead { font-size: 1rem; }
  .btn-row { gap: .65rem; }
  .btn-row .btn { width: 100%; }
  .trust ul { justify-content: flex-start; gap: .65rem 1.2rem; }
  .grid-3, .steps, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .section-head { margin-bottom: 2rem; }
  .section { padding: 3.8rem 0; }
  .plan { padding: 1.6rem; }
  .compare-col { padding: 1.3rem; }
  .post-cta { padding: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .grid-3 > .card:hover { transform: none; }
}
