/* ===== Estilos generales del sitio (landing, editor, visor) ===== */
:root { --red: #a8192a; --red-2: #7a1020; --green: #1d5e3f; --gold: #d8a93c; --cream: #fbf6ee; --paper: #fffdf9; --ink: #2b1b17; --muted: #74625b; --line: #eaded0;
  --radius: 18px; --shadow: 0 14px 40px -18px rgba(70, 25, 15, .35); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem 'Nunito Sans', sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(168, 25, 42, .7); }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 1.25rem 'Fraunces', serif; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.05rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--red); }
@media (max-width: 820px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); background: #e1efe5; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-top: .35em; letter-spacing: -.01em; }
.hero h1 em { color: var(--red); font-style: italic; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .adv { transform: rotate(1.5deg); }
.hero-badge { position: absolute; z-index: 5; left: -18px; bottom: 28px; background: var(--paper); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; transform: rotate(-3deg); }
.hero-badge b { font-size: 1.6rem; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 32px; } .hero-badge { left: 6px; } }

/* secciones */
.sec { padding: 72px 0; }
.sec-alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .sec { padding: 52px 0; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sec-alt .card { background: var(--cream); }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card-ico { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 600 1.2rem 'Fraunces', serif; margin-bottom: 10px; }

/* demo */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.opt-group { margin-bottom: 18px; }
.opt-group > span { display: block; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font: 700 .92rem 'Nunito Sans', sans-serif; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-color { width: 40px; height: 40px; padding: 0; }
.chip-color[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--ink); }
.demo-hint { font-size: .92rem; color: var(--muted); }

/* ideas */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ideas-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ideas-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
@media (max-width: 600px) { .ideas-list { grid-template-columns: 1fr; } }

/* precio */
.price { max-width: 460px; margin: 0 auto; text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 26px; padding: 34px 26px; box-shadow: var(--shadow); }
.price-amount { font: 600 3.6rem/1 'Fraunces', serif; margin: 10px 0; }
.price ul { text-align: left; padding: 0; list-style: none; margin: 20px 0 26px; display: grid; gap: 8px; }
.price li::before { content: '✓ '; color: var(--green); font-weight: 900; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.final { text-align: center; background: var(--red); color: #fff; border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.final p { opacity: .85; margin: 0 0 24px; }
.final .btn { background: #fff; color: var(--red); }
.foot { padding: 36px 0 48px; color: var(--muted); font-size: .9rem; text-align: center; }
.foot a { color: inherit; }

/* formularios */
label.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=url], input[type=password], input[type=date], textarea { width: 100%; font: inherit; color: inherit; background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

/* comparativa */
.compare { overflow-x: auto; max-width: 820px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font: 600 1rem 'Fraunces', serif; background: var(--cream); }
.compare th:last-child, .compare td:last-child { background: #f1f8f3; }
.compare td:nth-child(2) { color: var(--muted); }
@media (max-width: 560px) { .compare th, .compare td { padding: 10px 8px; font-size: .85rem; } }
