/* CMS Base — estilos de la web pública.
   Los colores, tipografías y radios salen de Ajustes › Diseño (variables :root que imprime la plantilla). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--c-text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-primary); color: var(--c-on-primary); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--f-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; text-transform: var(--heading-case); text-wrap: balance; }
.h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); letter-spacing: -.025em; }
.h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.7rem); }
.h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.h4 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--c-muted); max-width: 62ch; }
.muted { color: var(--c-muted); }
em { font-style: normal; color: var(--c-primary-text); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { --b: var(--c-primary); --t: var(--c-on-primary); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-btn); border: 2px solid var(--b); background: var(--b); color: var(--t); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--b); text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--c-primary-text); border-color: currentColor; }
.btn-ghost:hover { background: var(--c-primary-soft); box-shadow: none; }
.btn-invert { --b: #fff; --t: var(--c-primary-dark); }
.btn-ghost-invert { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-invert:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn[aria-busy=true] { opacity: .7; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btns.center { justify-content: center; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-line); transition: background .2s ease, box-shadow .2s ease; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--c-dark); flex-shrink: 0; }
.logo-text { font-family: var(--f-heading); font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em; }
.logo-img { width: auto; max-height: 48px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a { display: block; padding: 10px 12px; color: var(--c-dark); text-decoration: none; font-weight: 550; font-size: .98rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-primary-text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.nav .btn { color: var(--c-on-primary); padding: 8px 20px; border-radius: var(--radius-btn); box-shadow: none; }
.nav-cta { margin-left: 8px; }
.nav-phone a { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.nav-phone svg { width: 18px; height: 18px; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 6px; margin-left: -8px; cursor: pointer; display: inline-flex; color: var(--c-dark); }
.sub-toggle svg { width: 16px; height: 16px; }
.sub { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .3); border: 1px solid var(--c-line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; }
.sub a { padding: 10px 12px; font-size: .95rem; }
.sub a:hover { background: var(--c-light); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.lang-switch { display: flex; gap: 2px; margin-left: 6px; }
.nav .lang-switch a { padding: 6px 8px; font-size: .8rem; font-weight: 700; color: var(--c-muted); border-radius: 6px; box-shadow: none; }
.nav .lang-switch a[aria-current] { color: var(--c-dark); background: var(--c-light); }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--c-dark); cursor: pointer; }
.burger svg { width: 28px; height: 28px; }
.hdr-dark .site-header, .hdr-primary .site-header { border-color: transparent; }
.hdr-dark .site-header { background: var(--c-dark); }
.hdr-primary .site-header { background: var(--c-primary); }
.hdr-dark .nav > ul > li > a, .hdr-dark .brand, .hdr-dark .sub-toggle, .hdr-dark .burger,
.hdr-primary .nav > ul > li > a, .hdr-primary .brand, .hdr-primary .sub-toggle, .hdr-primary .burger { color: #fff; }
.hdr-primary .nav .btn { --b: #fff; --t: var(--c-primary-dark); color: var(--t); }
.hdr-dark .nav .lang-switch a, .hdr-primary .nav .lang-switch a { color: rgba(255, 255, 255, .75); }
.hdr-dark .nav .lang-switch a[aria-current], .hdr-primary .nav .lang-switch a[aria-current] { color: #fff; background: rgba(255, 255, 255, .16); }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }

/* ---------- Secciones ---------- */
.blk { padding: clamp(64px, 5vw + 40px, 112px) 0; }
.bg-white { background: #fff; }
.bg-light { background: var(--c-light); }
.bg-dark { background: var(--c-dark); color: var(--c-on-dark); }
.bg-primary { background: var(--c-primary); color: var(--c-on-primary); }
.bg-dark .lead, .bg-primary .lead, .bg-dark .muted, .bg-primary .muted { color: inherit; opacity: .85; }
.bg-dark a:not(.btn), .bg-primary a:not(.btn) { color: inherit; }
.bg-dark em, .bg-primary em { color: inherit; text-decoration: underline; text-decoration-color: var(--c-secondary); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.bg-dark .eyebrow, .bg-primary .eyebrow { color: inherit; opacity: .85; }
.bg-dark .btn-ghost, .bg-primary .btn-ghost { color: #fff; }
.bg-primary .btn:not(.btn-ghost):not(.btn-ghost-invert):not(.btn-invert) { --b: #fff; --t: var(--c-primary-dark); }
.eyebrow { font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-text); margin: 0 0 14px; }
.sec-head { margin-bottom: clamp(36px, 3vw + 20px, 56px); }
.sec-head.center { text-align: center; max-width: 780px; margin-inline: auto; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head .lead { margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Hero ---------- */
.blk-hero { padding: 0; }
.bg-hero { background: linear-gradient(180deg, var(--c-primary-soft), #fff 85%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 110px); }
.hero-center .hero-inner { grid-template-columns: 1fr; text-align: center; max-width: 900px; }
.hero-center .lead { margin-inline: auto; }
.hero-center .btns, .hero-center .points { justify-content: center; }
.hero-split .hero-inner:not(:has(.hero-media)) { grid-template-columns: 1fr; max-width: 900px; }
.hero-title { margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.hero-image .hero-inner, .hero-has-bg .hero-inner { grid-template-columns: 1fr; }
.hero-has-bg { position: relative; color: #fff; isolation: isolate; }
.hero-has-bg .hero-inner { min-height: min(78vh, 760px); align-content: center; max-width: 1200px; }
.hero-has-bg .hero-copy { max-width: 760px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35)); }
.hero-has-bg .lead, .hero-has-bg .eyebrow, .hero-has-bg .crumbs, .hero-has-bg .crumbs a { color: rgba(255, 255, 255, .9); }
.hero-has-bg em { color: inherit; text-decoration: underline; text-decoration-color: var(--c-secondary); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.hero-has-bg .btn-ghost { color: #fff; }
.hero-form { padding: clamp(24px, 3vw, 36px); }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; font-weight: 550; }
.points li { display: flex; align-items: center; gap: 8px; }
.points svg { width: 20px; height: 20px; color: var(--c-primary-text); flex: none; }
.hero-has-bg .points svg { color: var(--c-secondary); }
.rating-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 16px; background: #fff; color: var(--c-dark); border-radius: 999px; text-decoration: none; font-size: .9rem; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .35); }
.rating-chip strong { font-size: 1.05rem; }

/* ---------- Migas ---------- */
.crumbs-wrap { padding-top: 20px; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: inherit; }
.hero-center .crumbs ol { justify-content: center; }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 2vw + 12px, 34px); border: 1px solid var(--c-line); position: relative; }
.bg-white .card { background: var(--c-light); border-color: transparent; }
.bg-dark .card, .bg-primary .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: inherit; }
.cards .card p:last-child { margin-bottom: 0; }
.card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: calc(var(--radius) * .8); background: var(--c-primary-soft); color: var(--c-primary-text); margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; }
.card-num { display: block; font-family: var(--f-heading); font-size: 2.2rem; font-weight: 750; color: var(--c-primary-text); line-height: 1; margin-bottom: 16px; }
.cards-image .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cards-image .card > :not(.card-img) { padding-inline: clamp(22px, 2vw, 28px); }
.cards-image .card h3 { margin-top: 22px; }
.cards-image .card > :last-child { padding-bottom: 26px; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(h3 a):hover { box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 650; color: var(--c-primary-text); }
.card-link svg { width: 18px; height: 18px; }

.cards-plain .card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 22px 24px; }
.cards-plain .card h3 { margin: 2px 0 0; font-size: 1.05rem; }
.cards-plain .card p, .cards-plain .card .card-link { grid-column: 2; }
.card-check svg { width: 26px; height: 26px; color: var(--c-primary-text); }

/* ---------- Texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-solo { grid-template-columns: 1fr; max-width: 820px; }
.split-img-left .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.checklist svg { width: 24px; height: 24px; color: var(--c-primary-text); flex: none; margin-top: 1px; }
.bg-dark .checklist svg, .bg-primary .checklist svg { color: var(--c-secondary); }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c-primary); font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.prose th { background: var(--c-light); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin: 0; text-align: center; }
.stat-value { font-family: var(--f-heading); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 750; line-height: 1; letter-spacing: -.03em; color: var(--c-primary-text); }
.bg-dark .stat-value, .bg-primary .stat-value { color: inherit; }
.stat dd { margin: 10px 0 0; font-weight: 550; color: var(--c-muted); }
.bg-dark .stat dd, .bg-primary .stat dd { color: inherit; opacity: .85; }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--f-heading); font-weight: 750; font-size: 1.25rem; }
.bg-primary .step-n { background: #fff; color: var(--c-primary-dark); }
.step p { margin: 0; color: var(--c-muted); }
.bg-dark .step p, .bg-primary .step p { color: inherit; opacity: .85; }

/* ---------- Precios ---------- */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plans-1 { max-width: 460px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--c-text); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(26px, 2vw + 14px, 38px); }
.plan-featured { border: 2px solid var(--c-primary); box-shadow: 0 30px 60px -36px var(--c-primary); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--c-secondary); color: var(--c-on-secondary); font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 1.3rem; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.plan-price strong { font-family: var(--f-heading); font-size: 3rem; line-height: 1; letter-spacing: -.03em; }
.plan-price span, .plan-price small { color: var(--c-muted); font-weight: 600; }
.plan-desc { color: var(--c-muted); }
.plan-list { list-style: none; padding: 18px 0 0; margin: 0 0 26px; border-top: 1px solid var(--c-line); display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.plan-list svg { width: 20px; height: 20px; color: var(--c-primary-text); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plans-note { margin: 28px auto 0; color: var(--c-muted); font-size: .95rem; max-width: 70ch; }
.bg-dark .plans-note, .bg-primary .plans-note { color: inherit; opacity: .85; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 110px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.bg-dark .faq-item, .bg-primary .faq-item { border-color: rgba(255, 255, 255, .2); }
.faq-q { margin: 0; font-size: 1.08rem; font-family: var(--f-body); letter-spacing: 0; text-transform: none; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; background: none; border: 0; text-align: left; font-weight: 650; cursor: pointer; line-height: 1.4; }
.acc-btn svg { width: 22px; height: 22px; flex: none; transition: transform .2s ease; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 22px; color: var(--c-muted); }
.bg-dark .faq-a, .bg-primary .faq-a { color: inherit; opacity: .9; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Reseñas y testimonios ---------- */
.greviews-score { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.greviews-score strong { font-size: 1.9rem; font-family: var(--f-heading); }
.greviews-score > span:last-child { color: var(--c-muted); }
.stars { color: #f5a400; letter-spacing: 2px; }
.stars-off { color: #d7d6dc; }
.greview, .testimonial { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.greview blockquote, .testimonial blockquote { margin: 0; }
.greview blockquote p, .testimonial blockquote p { margin: 0; line-height: 1.6; }
.greview figcaption, .testimonial figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.greview figcaption strong, .testimonial figcaption strong { display: block; font-weight: 650; font-size: .95rem; }
.greview figcaption small, .testimonial figcaption small { display: block; color: var(--c-muted); font-size: .82rem; }
.gav { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; font-weight: 750; color: #fff; background: var(--c-primary-dark); }
.gav-1 { background: #0b7a5c; } .gav-2 { background: #b4471f; } .gav-3 { background: #1f5fb4; } .gav-4 { background: #8a1f6d; } .gav-5 { background: #4b5320; }
.greviews-foot { margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.greviews-attr { font-size: .82rem; color: var(--c-muted); }
.t-quote svg { width: 36px; height: 36px; color: var(--c-primary); opacity: .35; }

/* ---------- Galería, logos, equipo ---------- */
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-item figcaption { font-size: .9rem; color: var(--c-muted); margin-top: 8px; }
.logos-title { text-align: center; font-weight: 650; color: var(--c-muted); margin-bottom: 28px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos a:hover img, .logos li:hover img { filter: none; opacity: 1; }
.person { margin: 0; text-align: center; }
.person-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
span.person-img { font-size: 2.4rem; height: auto; }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--c-muted); font-size: .95rem; }
.person p { margin: 10px 0 0; font-size: .95rem; }

/* ---------- Llamada a la acción ---------- */
.blk-cta { padding: clamp(56px, 5vw + 30px, 96px) 0; }
.cta-band { display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta-band .h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0; }
.cta-band .btns { margin: 0; justify-content: flex-end; }
.bg-white .cta-band .btn-invert, .bg-light .cta-band .btn-invert { --b: var(--c-primary); --t: var(--c-on-primary); }
.bg-white .btn-ghost-invert, .bg-light .btn-ghost-invert { color: var(--c-primary-text); border-color: currentColor; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .93rem; }
.field label small { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: calc(var(--radius) * .6); background: #fff; color: var(--c-text); transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 4px var(--c-primary-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.lead-form .grid-2 { gap: 0 16px; }
.span-2 { grid-column: 1 / -1; }
.has-error input, .has-error select, .has-error textarea { border-color: #c62828; }
.err { color: #c62828; font-size: .85rem; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-primary); flex: none; }
.check-sm { font-size: .82rem; }
.has-error.check span { color: #c62828; }
.form-note, .form-legal { font-size: .85rem; color: var(--c-muted); margin: 0 0 12px; }
.form-legal { margin: 14px 0 0; font-size: .78rem; }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-msg.is-error { color: #c62828; }
.form-msg.is-ok { color: #1b7f3b; }
.form-title { margin-bottom: 18px; }
.contact { display: grid; gap: clamp(28px, 4vw, 56px); }
.contact-2 { grid-template-columns: 1.15fr .85fr; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 26px; height: 26px; color: var(--c-primary-text); flex: none; margin-top: 2px; }
.info-list span { display: block; font-size: .85rem; color: var(--c-muted); }
.info-list a, .info-list .v { font-weight: 650; font-size: 1.05rem; color: var(--c-text); }
.hours .h4 { display: flex; align-items: center; gap: 8px; }
.hours .h4 svg { width: 22px; height: 22px; color: var(--c-primary-text); }
.hours dl, .footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 12px; }
.hours dt, .footer-hours dt { font-weight: 600; }
.hours dd, .footer-hours dd { margin: 0; }

/* ---------- Vídeo y mapa (se cargan al pulsar) ---------- */
.facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-dark); color: #fff; display: grid; place-items: center; text-align: center; }
.map-facade { aspect-ratio: 4 / 3; background: var(--c-primary-soft) linear-gradient(45deg, transparent 48%, rgba(0, 0, 0, .04) 50%, transparent 52%) 0 0 / 24px 24px; color: var(--c-dark); }
.facade-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.facade-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; background: #fff; color: var(--c-dark); font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.facade-btn svg { width: 22px; height: 22px; color: var(--c-primary-text); }
.facade-note { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; font-size: .78rem; opacity: .8; }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-info .map-facade { margin-top: 20px; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-img img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.post-body { padding: 22px 24px 26px; }
.post-meta { font-size: .85rem; color: var(--c-muted); margin-bottom: 10px; }
.post-meta a { color: var(--c-primary-text); font-weight: 650; text-decoration: none; position: relative; z-index: 1; }
.post-card h3 { margin-bottom: 10px; }
.post-card p:last-child { margin: 0; color: var(--c-muted); font-size: .97rem; }
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 36px; }
.blog-cats a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); font-size: .92rem; font-weight: 600; }
.blog-cats a[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.blog-cats small { opacity: .7; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); background: #fff; font-weight: 600; }
.pager a[aria-current] { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
.post-head { padding: 44px 0 40px; }
.post-head .crumbs ol { margin-bottom: 18px; }
.post-updated { font-size: .88rem; color: var(--c-muted); margin: 0; }
.post-cover { margin-top: -10px; }
.post-cover img { width: 100%; border-radius: var(--radius); margin: 30px 0 10px; aspect-ratio: 40 / 21; object-fit: cover; }
.post .prose { padding: 26px 0 10px; }
.post-faq { padding: 20px 0; }
.post-cta { margin-top: 30px; margin-bottom: 70px; padding: 34px; border-radius: var(--radius); background: var(--c-primary); color: var(--c-on-primary); }
.post-cta .btn { --b: #fff; --t: var(--c-primary-dark); }
.legal { padding-top: 10px; }
.legal-date { color: var(--c-muted); font-size: .92rem; }
.legal .prose h2 { font-size: 1.4rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark); padding: 72px 0 0; font-size: .95rem; }
.site-footer a { color: inherit; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 40px; padding-bottom: 48px; }
.footer-top:has(.footer-form) { grid-template-columns: 1.2fr 1fr .8fr 1.1fr; }
.footer-logo { display: inline-block; text-decoration: none; margin-bottom: 18px; }
.footer-logo .logo-text { font-size: 1.5rem; }
.footer-brand p { opacity: .8; max-width: 38ch; }
.social { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-h { font-weight: 700; margin: 0 0 14px; font-size: 1rem; display: block; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.footer-hours { font-size: .9rem; opacity: .85; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer-nav a { text-decoration: none; padding: 6px 0; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-input { display: flex; background: #fff; border-radius: var(--radius-btn); padding: 4px; }
.footer-input input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; background: transparent; color: #111; border-radius: var(--radius-btn); }
.footer-input input:focus { outline: none; }
.footer-input button { width: 44px; height: 44px; border-radius: var(--radius-btn); border: 0; background: var(--c-primary); color: var(--c-on-primary); display: grid; place-items: center; cursor: pointer; }
.footer-input button svg { width: 20px; height: 20px; }
.footer-form-help { font-size: .85rem; opacity: .8; margin: 10px 0; }
.site-footer .check input { accent-color: var(--c-secondary); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.footer-legal > * { opacity: .8; }
.footer-legal span { margin-right: auto; }

/* ---------- Conversión: WhatsApp, barra móvil, popup, cookies ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #0e7a40; color: #fff; text-decoration: none; font-weight: 650; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }
.mobile-bar { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 18, .6); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(500px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: var(--c-text); border-radius: var(--radius); padding: 36px 32px 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 24px; height: 24px; }
.popup-form .btn { width: 100%; }
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 95; max-width: 980px; margin: 0 auto; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); padding: 22px 24px; display: flex; gap: 20px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--c-line); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .9rem; }
.cookie-main { flex: 1 1 420px; }
.cookie-prefs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.cookie-prefs .check { margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }

/* ---------- Glosario ---------- */
.gl-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; justify-content: center; }
.gl-index a { padding: 8px 14px; border-radius: 999px; background: var(--c-light); color: var(--c-text); text-decoration: none; font-size: .9rem; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.gl-index a:hover { background: var(--c-primary); color: var(--c-on-primary); }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.gl-item { padding: 24px 26px; border-radius: var(--radius); background: var(--c-light); scroll-margin-top: 110px; }
.gl-item dt { margin: 0 0 8px; }
.gl-item dd { margin: 0; color: var(--c-muted); }
.gl-item dd p { margin: 0 0 10px; }
.gl-item:target { outline: 3px solid var(--c-secondary); }

/* ---------- Textos largos ---------- */
.split .prose > p:first-child { font-size: 1.14em; color: var(--c-text); font-weight: 500; line-height: 1.6; }
@media (max-width: 700px) { .split .prose > p:first-child { font-size: 1.04em; } .prose-more.is-collapsed { max-height: 19em; } }
.prose-more.is-collapsed { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 0; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-primary-text); font-weight: 700; cursor: pointer; }
.more-btn:hover { border-color: var(--c-primary); }
.more-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.bg-dark .more-btn, .bg-primary .more-btn { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .4); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top, .footer-top:has(.footer-form) { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Menú hamburguesa hasta 1240 px: los menús con submenús e idiomas no caben antes */
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); max-height: calc(100vh - 76px); overflow: auto; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 0; }
  .nav > ul > li > a, .hdr-dark .nav > ul > li > a, .hdr-primary .nav > ul > li > a { color: var(--c-dark); padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--c-primary-text); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .hdr-dark .sub-toggle, .hdr-primary .sub-toggle { color: var(--c-dark); }
  .sub-toggle { margin: 0; padding: 14px; }
  .sub { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .nav-cta { margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
  .lang-switch { margin: 14px 0 0; justify-content: center; }
  .nav .lang-switch a, .hdr-dark .nav .lang-switch a, .hdr-primary .nav .lang-switch a { padding: 10px 16px; font-size: .95rem; color: var(--c-muted); }
  .nav .lang-switch a[aria-current], .hdr-dark .nav .lang-switch a[aria-current], .hdr-primary .nav .lang-switch a[aria-current] { background: var(--c-light); color: var(--c-dark); }
}
@media (max-width: 960px) {
  .hero-inner, .split, .faq-wrap, .contact-2, .cta-band { grid-template-columns: 1fr; }
  .faq-wrap .sec-head { position: static; }
  .cta-band .btns { justify-content: flex-start; }
  .split-img-left .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top, .footer-top:has(.footer-form) { grid-template-columns: 1fr; }
  .nav-wrap { min-height: 66px; }
  .btns .btn { flex: 1 1 100%; }
  .wa-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35); transform: translateY(110%); transition: transform .25s ease; }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { flex: 1; min-height: 50px; }
  .mb-icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: var(--radius-btn); border: 1.5px solid var(--c-line); color: var(--c-dark); }
  .mb-icon svg { width: 24px; height: 24px; }
  .site-footer { padding-bottom: 76px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .modal-box { padding: 30px 20px 22px; }
  .plan-price strong { font-size: 2.6rem; }
}

/* Menús largos: sin cortes de línea y compactos en escritorio (el teléfono queda como icono con texto accesible) */
.nav a, .nav-phone span { white-space: nowrap; }
@media (min-width: 1241px) {
  .nav ul { gap: 2px; }
  .nav > ul > li > a { padding: 10px 8px; font-size: .93rem; }
  .nav-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.nav .sub-toggle { flex: none; min-width: 24px; min-height: 24px; }
