/* ==========================================================
   Tecnovista Digital — estilos principales
   (requiere tokens.css)
   ========================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tv-ink);
  background: var(--tv-white);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
h1, h2, h3, .plan__price, .features b, .band__price b { font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--tv-black); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--tv-grey); }
.lead { font-size: 1.15rem; color: #4a4a4a; max-width: 58ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tv-black); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--web); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tv-grey); margin-bottom: 1rem;
}
.eyebrow--web   { color: var(--web); }
.eyebrow--velsy { color: var(--velsy); }
.eyebrow--edit  { color: var(--edit); }
.eyebrow--light { color: #bdbdbd; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--dark  { background: var(--tv-black); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn--line  { border-color: var(--tv-black); color: var(--tv-black); background: transparent; }
.btn--line:hover { background: var(--tv-black); color: #fff; }
.btn--web   { background: var(--web); color: #fff; }
.btn--velsy { background: var(--velsy); color: var(--velsy-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--velsy-dark); }
.btn--edit  { background: var(--edit); color: #fff; }
.btn--edit-accent { background: var(--edit-accent); color: var(--edit-dark); }
.btn--light { background: #fff; color: var(--tv-black); }
.btn.is-soon { opacity: .75; cursor: default; }
.btn.is-soon:hover { transform: none; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--tv-line); box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tv-black); }
.brand__name { font-family: "Roboto Slab", Georgia, serif; font-size: 1.05rem; letter-spacing: .04em; }
.brand--light { color: #fff; }
.brand--light img { filter: invert(1); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__link { text-decoration: none; font-weight: 500; font-size: .97rem; position: relative; padding: .3em 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--tv-black); transition: width .2s; }
.nav__link:hover::after { width: 100%; }
.nav__link--web::after   { background: var(--web); }
.nav__link--velsy::after { background: var(--velsy); }
.nav__link--edit::after  { background: var(--edit); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--tv-black); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); background:
  radial-gradient(1200px 500px at 90% -10%, #f1f1ee 0%, transparent 60%), var(--tv-paper); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { color: var(--edit); }
.hero__lines { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em; border-radius: 999px;
  background: #fff; border: 1px solid var(--tv-line); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: border-color .2s, transform .15s;
}
.chip:hover { transform: translateY(-2px); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip--web .dot   { background: var(--web); }   .chip--web:hover   { border-color: var(--web); }
.chip--velsy .dot { background: var(--velsy); } .chip--velsy:hover { border-color: var(--velsy); }
.chip--edit .dot  { background: var(--edit); }  .chip--edit:hover  { border-color: var(--edit); }

.hero__art { position: relative; height: 520px; }
.tile { position: absolute; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(17,17,17,.14); margin: 0; }
.tile--code {
  left: 0; top: 40px; width: 68%; background: #0f172a; color: #e2e8f0; padding: 0 0 18px; z-index: 1;
  transform: rotate(-3deg);
}
.tile__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1e293b; margin-bottom: 12px; }
.tile__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.tile--code pre { margin: 0; padding: 0 20px; font: 500 .9rem/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; overflow: hidden; }
.c-k { color: #93c5fd; } .c-f { color: #60a5fa; } .c-s { color: #fcd34d; } .c-b { color: #a5b4fc; }

.tile--velsy {
  right: 4%; top: 0; width: 52%; background: #fff; padding: 16px 16px 10px; z-index: 2; transform: rotate(2deg);
  border-top: 4px solid var(--velsy);
}
.tile__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tile__head b { font-family: var(--font-display); font-size: 1.25rem; color: var(--velsy-dark); }
.tile__head span { font-size: .75rem; color: var(--tv-grey); }
.tile--velsy ul { list-style: none; margin: 0; padding: 0; }
.tile--velsy li { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 8px 0; border-top: 1px solid #f0ede7; }
.tile--velsy li small { margin-left: auto; font-size: .68rem; padding: 2px 8px; border-radius: 99px; background: var(--velsy-soft); color: #7a6d5a; }
.tile--velsy li em { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.s1 { background: #fde68a; } .s2 { background: #bfdbfe; } .s3 { background: #ddd6fe; }

.tile--book { right: 10%; bottom: 0; width: 46%; z-index: 3; overflow: hidden; transform: rotate(-1.5deg); border: 6px solid #fff; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--tv-paper); }
.section--dark { background: var(--tv-black); color: #e7e7e7; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head p:last-child { color: #555; font-size: 1.08rem; }

/* 3 líneas */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line {
  --c: var(--tv-black); --soft: #f3f3f3;
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--tv-line); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.line::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--c); }
.line:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.line--web   { --c: var(--web);   --soft: var(--web-soft); }
.line--velsy { --c: var(--velsy); --soft: var(--velsy-soft); }
.line--edit  { --c: var(--edit);  --soft: var(--edit-soft); }
.line__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--c); margin-bottom: 1.2rem; }
.line__icon svg { width: 26px; height: 26px; }
.line--velsy .line__icon { color: #9a7b16; }
.line__tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: .4rem; }
.line--velsy .line__tag { color: #9a7b16; }
.line p { color: #555; }
.line .ticks { margin-bottom: 1.6rem; }
.line__link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--tv-black); }
.line__link span { display: inline-block; transition: transform .2s; color: var(--c); }
.line:hover .line__link span { transform: translateX(5px); }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.6em; margin: .4em 0; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .85em; height: .5em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .6; }
.ticks--light li { color: #e9e4da; }

/* Web y software */
.section--web { background: linear-gradient(180deg, var(--web-soft) 0%, #fff 55%); }
.section--web h2 em { color: var(--web); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.service { padding: 22px; border-radius: var(--radius-s); background: #fff; border: 1px solid #dfe7fb; }
.service b { display: block; font-size: 1.05rem; color: var(--web-dark); margin-bottom: .35rem; }
.service span { font-size: .93rem; color: #555; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; padding: 36px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--tv-line); display: flex; flex-direction: column; }
.plan .ticks { margin-bottom: 1.8rem; }
.plan .btn { margin-top: auto; }
.plan__price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--tv-black); line-height: 1; margin-bottom: .8rem; }
.plan__price small { font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--tv-grey); }
.plan__desc { color: #555; font-size: .95rem; }
.plan--featured { border: 2px solid var(--web); box-shadow: 0 20px 40px rgba(37,99,235,.12); transform: translateY(-8px); }
.plan--featured .ticks li::before { color: var(--web); opacity: 1; }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--web); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; letter-spacing: .04em; }

/* Bandas Velsy / Editorial */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.band--velsy { background: var(--velsy-dark); color: #d9d3c7; }
.band--velsy h2 { color: #fff; }
.band--velsy h2 em { color: var(--velsy); }
.band--velsy .lead { color: #cfc8bb; }
.band__price { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; margin: 1.6rem 0; padding: 1rem 0; border-top: 1px solid #2d2a23; border-bottom: 1px solid #2d2a23; }
.band__price b { font-family: var(--font-display); font-size: 2rem; color: var(--velsy); }
.band__price .muted { color: #9a8e7a; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.browser { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ece9e3; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfc9be; }
.browser__bar span { margin-left: 12px; font-size: .75rem; color: #7a6d5a; background: #fff; padding: 2px 12px; border-radius: 6px; }

.band--edit { background: var(--edit-soft); }
.band--edit h2 em { color: var(--edit); }
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.book { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.book img { border-radius: 4px; box-shadow: 6px 10px 22px rgba(31,93,106,.28); transition: transform .25s; }
.book:hover img { transform: rotate(-2deg) scale(1.03); }
.book__vol { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--edit); margin-bottom: .3rem; }
.book h3 { color: var(--edit-dark); }
.book p { font-size: .97rem; color: #555; }

.features { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.features li { text-align: center; padding: 18px 10px; border-radius: var(--radius-s); background: rgba(255,255,255,.6); border: 1px solid #ead9bd; }
.features b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--edit); line-height: 1.2; }
.features span { font-size: .88rem; color: #5b5245; }

.pro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: var(--radius); background: var(--edit); color: #e6f0f1; }
.pro h3 { color: #fff; margin-bottom: .3rem; }
.pro p { margin: 0; }
.edit__note { margin: 24px 0 0; font-size: .9rem; color: #6d6253; }

/* Portfolio */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work { text-decoration: none; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--tv-line); background: #fff; transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; border-bottom: 1px solid var(--tv-line); }
.work img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.work:hover img { transform: scale(1.04); }
.work > div { padding: 20px 24px 24px; }
.work h3 { margin-bottom: .2rem; }
.work p { margin: 0; color: #555; font-size: .95rem; }
.work__tag { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-grey); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid var(--tv-line); display: flex; flex-direction: column; }
.quote p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--tv-black); flex: 1; }
.stars { color: #e0a800; letter-spacing: .15em; margin-bottom: .8rem; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote footer b { display: block; }
.quote footer small { color: var(--tv-grey); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--tv-black); color: #fff; display: grid; place-items: center; font-weight: 600; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.section--dark .lead { color: #bdbdbd; }
.section--dark h2 em { color: #d4d4d4; }
.contact__data { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__data li { display: grid; grid-template-columns: 90px 1fr; padding: .8rem 0; border-top: 1px solid #262626; }
.contact__data span { color: #8a8a8a; font-size: .9rem; }
.contact__data a { color: #fff; text-decoration: none; }
.contact__data a:hover { text-decoration: underline; }

.form { background: #1a1a1a; border: 1px solid #262626; border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: #cfcfcf; }
.form small { color: #8a8a8a; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8em .95em; border-radius: 10px; border: 1px solid #333; background: #111; color: #fff;
  font: inherit; font-size: 1rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #fff; }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: .6em; align-items: flex-start; font-size: .88rem; }
.form .check input { width: auto; margin-top: .3em; }
.form .check a { color: #fff; }
.form .btn { justify-self: start; }
.form__msg { margin: 0; font-size: .93rem; min-height: 1.4em; }
.form__msg.ok { color: #86efac; }
.form__msg.err { color: #fca5a5; }
.hp { position: absolute !important; left: -9999px; }

/* Pie */
.footer { background: #0a0a0a; color: #a3a3a3; padding: 64px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1rem; }
.footer nav a { display: block; text-decoration: none; padding: .25em 0; }
.footer nav a:hover { color: #fff; }
.footer .muted { color: #8a8a8a; max-width: 34ch; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid #1f1f1f; font-size: .85rem; }
.footer__bottom a { text-decoration: none; }

/* ==========================================================
   Páginas interiores (web-software, velsy, editorial)
   ========================================================== */
.nav__link[aria-current="page"]::after { width: 100%; }

.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 7vw, 90px); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .actions { margin-top: 2rem; }
.crumbs { font-size: .85rem; color: var(--tv-grey); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-hero--web { background: linear-gradient(160deg, var(--web-soft) 0%, #fff 70%); }
.page-hero--web h1 em { color: var(--web); }
.page-hero--velsy { background: var(--velsy-dark); color: #d9d3c7; }
.page-hero--velsy h1 { color: #fff; }
.page-hero--velsy h1 em { color: var(--velsy); }
.page-hero--velsy .lead { color: #cfc8bb; }
.page-hero--velsy .crumbs { color: #9a8e7a; }
.page-hero--edit { background: var(--edit-soft); }
.page-hero--edit h1 em { color: var(--edit); }

.hero__art.hero__art--books { height: 440px; }
@media (max-width: 640px) { .hero__art.hero__art--books { height: 270px; } }

/* Rejilla de tarjetas genérica */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--tv-line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.card p { color: #555; font-size: .96rem; margin: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: #f3f3f3; color: var(--tv-black); }
.card__icon svg { width: 24px; height: 24px; }
.cards--web .card__icon   { background: var(--web-soft); color: var(--web); }
.cards--velsy .card { background: #1f1c17; border-color: #2d2a23; }
.cards--velsy .card h3 { color: #fff; }
.cards--velsy .card p { color: #b9b1a3; }
.cards--velsy .card__icon { background: rgba(201,162,39,.14); color: var(--velsy); }
.cards--edit .card__icon  { background: var(--edit-soft); color: var(--edit); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--tv-line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c, var(--tv-black)); line-height: 1; margin-bottom: .8rem; }
.steps b { display: block; font-size: 1.08rem; margin-bottom: .3rem; color: var(--tv-black); }
.steps span { font-size: .94rem; color: #555; }
.steps--web   { --c: var(--web); }
.steps--velsy { --c: var(--velsy); }
.steps--velsy li { background: #1f1c17; border-color: #2d2a23; }
.steps--velsy b { color: #fff; }
.steps--velsy span { color: #b9b1a3; }

/* Bloque dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--tv-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0; position: relative; font-weight: 600; font-size: 1.05rem; color: var(--tv-black); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: #555; }

/* Llamada final */
.cta { border-radius: calc(var(--radius) * 1.4); padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; }
.cta--web   { background: var(--web); color: #e7eefe; }
.cta--web h2 { color: #fff; }
.cta--velsy { background: var(--velsy); color: #3a3220; }
.cta--velsy h2 { color: var(--velsy-dark); }
.cta--edit  { background: var(--edit); color: #e6f0f1; }
.cta--edit h2 { color: #fff; }

/* Velsy: precio */
.price-card { background: #fff; color: var(--tv-ink); border-radius: calc(var(--radius) * 1.3); padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border-top: 6px solid var(--velsy); }
.price-card h3 { margin-bottom: .2rem; }
.price-card__amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--velsy-dark); line-height: 1; margin: 1rem 0 .3rem; }
.price-card__amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--tv-grey); }
.price-card .ticks { margin: 1.4rem 0 1.8rem; }
.price-card .ticks li::before { color: var(--velsy); opacity: 1; }
.price-card .btn { width: 100%; }
.specialties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.specialty { display: block; text-decoration: none; padding: 28px; border-radius: var(--radius); background: var(--velsy-soft); border: 1px solid #e7dfd5; transition: transform .2s, box-shadow .2s; }
.specialty:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.specialty h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.specialty p { color: #6b604f; font-size: .95rem; margin: 0 0 1rem; }
.specialty span { font-weight: 600; color: #9a7b16; }

/* Editorial: libro destacado */
.volume { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.volume + .volume { margin-top: 80px; padding-top: 80px; border-top: 1px solid #ead9bd; }
.volume__cover img { border-radius: 6px; box-shadow: 10px 16px 36px rgba(31,93,106,.3); }
.volume__cover .btn { width: 100%; margin-top: 1.2rem; }
.volume h2 { color: var(--edit-dark); margin-bottom: .2rem; }
.volume__sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--edit); margin-bottom: 1.2rem; }
.chapters { list-style: none; counter-reset: ch; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.chapters li { counter-increment: ch; padding: .55rem 0; border-bottom: 1px dashed #e2d3b8; font-size: .96rem; }
.chapters li::before { content: counter(ch) "."; display: inline-block; width: 1.8em; font-weight: 600; color: var(--edit); }
.tagline { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--edit-accent); color: var(--edit-dark); padding: 4px 12px; border-radius: 99px; margin-bottom: 1rem; }

.inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.inside figure { margin: 0; }
.inside img { border-radius: 6px; border: 1px solid #e6dccb; box-shadow: 0 12px 26px rgba(0,0,0,.08); background: #fff; transition: transform .25s; }
.inside figure:hover img { transform: translateY(-4px) rotate(-1deg); }
.inside figcaption { font-size: .9rem; color: #5b5245; margin-top: .7rem; text-align: center; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience__box { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid #ead9bd; }
.audience__box h3 { color: var(--edit-dark); }
.audience__box--accent { background: var(--edit); border-color: var(--edit); color: #e6f0f1; }
.audience__box--accent h3 { color: #fff; }
.audience__box--accent .ticks li::before { color: var(--edit-accent); opacity: 1; }

.author { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid #ead9bd; }
.author__mark { width: 96px; height: 96px; border-radius: 50%; background: var(--edit); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; }
.author p { margin: 0; color: #555; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .band__grid, .contact { grid-template-columns: 1fr; }
  .hero__art { height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .lines, .plans, .quotes { grid-template-columns: 1fr; max-width: 620px; }
  .plan--featured { transform: none; }
  .books { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .page-hero__grid, .split { grid-template-columns: 1fr; }
  .cards, .specialties { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .volume { grid-template-columns: 260px 1fr; gap: 36px; }
  .inside { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--tv-line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid #f0f0f0; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__name { font-size: .92rem; }
  .hero__art { height: 380px; }
  .tile--code { width: 78%; }
  .tile--code pre { font-size: .78rem; }
  .tile--velsy { width: 64%; }
  .tile--velsy li small { display: none; }
  .tile--book { width: 44%; right: 4%; }
  .services, .works, .form__row { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; text-align: center; }
  .book img { max-width: 220px; margin-inline: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:last-child { grid-column: span 2; }
  .pro { flex-direction: column; align-items: flex-start; padding: 26px; }
  .form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .cards, .specialties, .steps, .steps--3, .audience, .chapters { grid-template-columns: 1fr; }
  .volume { grid-template-columns: 1fr; }
  .volume__cover { max-width: 280px; }
  .author { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .price-card { padding: 28px; }
}

/* ==========================================================
   Páginas legales
   ========================================================== */
.legal { max-width: 780px; padding: clamp(48px, 7vw, 90px) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .6rem; }
.legal p, .legal li { color: #444; }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--tv-line); vertical-align: top; }
.legal th { background: var(--tv-paper); }
.legal__date { color: var(--tv-grey); font-size: .9rem; }
.pendiente { background: #fff3c4; padding: 0 .3em; border-radius: 4px; font-weight: 600; color: #7a5a00; }
