/*
Theme Name: Douglas Ramírez & Asociados
Theme URI: https://www.douglasramirez.com
Author: Douglas Ramírez & Asociados
Description: Tema a medida para Douglas Ramírez & Asociados: contadores, auditores y consultores en tecnología. Incluye captura de oportunidades (formulario de diagnóstico con registro en el panel y aviso por correo), calculadora de ahorro, botón de WhatsApp, datos estructurados para SEO e importador de imágenes del sitio anterior.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-asociados
*/

:root {
	--navy: #0a2342;
	--navy-2: #12355b;
	--navy-3: #1d4a7a;
	--gold: #c9a24a;
	--gold-2: #e0bd6a;
	--teal: #1fb5a8;
	--ink: #16202e;
	--muted: #5b6878;
	--line: #e3e8ef;
	--soft: #f4f6fa;
	--white: #fff;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(10, 35, 66, .08);
	--shadow-lg: 0 24px 60px rgba(10, 35, 66, .16);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex: none; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 820px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: 40px 0 72px; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #d7e0ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.lead-text { font-size: 1.15rem; color: #c6d2e2; max-width: 620px; }
.lead-text--dark { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 30px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 8px 24px rgba(201, 162, 74, .35); }
.btn--gold:hover { box-shadow: 0 12px 30px rgba(201, 162, 74, .5); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--navy-3); }
.link-arrow .icon { width: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Barra superior y encabezado */
.topbar { background: var(--navy); color: #b9c7d8; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 16px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar .icon { width: 15px; height: 15px; }
.topbar__right { gap: 18px !important; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 35, 66, .08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand--light { color: var(--white); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; position: relative; padding: 6px 0; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after { width: 100%; }
.site-nav .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); }
.hero__bg { position: absolute; inset: 0; background:
	radial-gradient(800px 420px at 85% 10%, rgba(31, 181, 168, .18), transparent 60%),
	radial-gradient(700px 500px at 0% 100%, rgba(201, 162, 74, .14), transparent 60%),
	linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 26px; }
.hero__stats strong { display: block; font-size: 1.9rem; color: var(--gold-2); font-weight: 800; line-height: 1.1; }
.hero__stats span { font-size: .86rem; color: #aebcd0; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(170deg, var(--navy-3), var(--navy-2)); box-shadow: var(--shadow-lg); }
.hero__photo::before { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: radial-gradient(closest-side, rgba(201, 162, 74, .45), transparent); }
.hero__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-card .icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(31, 181, 168, .12); color: var(--teal); }
.float-card strong { display: block; font-size: .92rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card--a { top: 12%; left: -48px; }
.float-card--b { bottom: 20%; right: -40px; animation-delay: -3s; }
.float-card--b .icon { background: rgba(201, 162, 74, .15); color: var(--gold); }
.hero__badge { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); background: var(--gold); color: var(--navy); padding: 10px 22px; border-radius: 999px; text-align: center; white-space: nowrap; box-shadow: var(--shadow); }
.hero__badge strong { display: block; font-size: .95rem; }
.hero__badge small { font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Certificaciones */
.certs { padding: 34px 0; border-bottom: 1px solid var(--line); }
.certs__title { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.certs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.certs__list img { height: 52px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.certs__list img:hover { filter: none; opacity: 1; }
.cert-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--navy); }
.cert-pill .icon { width: 18px; height: 18px; color: var(--gold); }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.pain:hover { border-color: #f0c9c9; transform: translateY(-3px); }
.pain__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: #fdf0ef; color: #c2463c; margin-bottom: 16px; }
.pain p { color: var(--muted); font-size: .96rem; margin: 0; }
.pains__bridge { text-align: center; margin: 40px auto 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; }

.service-card { position: relative; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid transparent; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 74, .5); }
.service-card__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold-2); margin-bottom: 20px; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card p { color: var(--muted); font-size: .97rem; }
.service-card__outcome { display: flex; gap: 8px; align-items: flex-start; color: var(--navy) !important; font-weight: 600; font-size: .92rem !important; background: var(--soft); padding: 12px 14px; border-radius: var(--radius-sm); margin-top: auto; }
.service-card__outcome .icon { width: 18px; color: var(--teal); margin-top: 2px; }
.service-card .link-arrow { margin-top: 16px; }

/* Calculadora */
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc__copy p { color: var(--muted); font-size: 1.06rem; }
.calc__card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); }
.range { display: block; margin-bottom: 22px; }
.range span { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .94rem; margin-bottom: 8px; }
.range output { color: var(--navy); font-weight: 800; background: var(--soft); padding: 0 10px; border-radius: 6px; }
.range input { width: 100%; accent-color: var(--gold); height: 6px; }
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 20px; }
.calc__results > div { padding: 18px; border-radius: 14px; background: var(--soft); }
.calc__results small { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.calc__results strong { font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.calc__results .calc__saving { background: var(--navy); }
.calc__saving small { color: #aebcd0; }
.calc__saving strong { color: var(--gold-2); }

/* Metodología */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 26px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.step__num { font-size: 2.4rem; font-weight: 800; color: var(--line); line-height: 1; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Split / nosotros */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__media--portrait img { aspect-ratio: 4 / 5; object-position: top; background: linear-gradient(170deg, var(--navy-3), var(--navy)); }
.split__tag { position: absolute; left: 20px; right: 20px; bottom: -22px; background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; border-left: 4px solid var(--gold); }
.split__copy > p { color: var(--muted); }
.role { color: var(--gold) !important; font-weight: 700; }
.reasons { display: grid; gap: 18px; margin: 28px 0 32px; }
.reason { display: flex; gap: 16px; }
.reason > span { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(201, 162, 74, .15); color: #9a7a2c; font-weight: 800; }
.reason h3 { margin-bottom: 4px; font-size: 1.05rem; }
.reason p { color: var(--muted); margin: 0; font-size: .95rem; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value-card p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery--1 { grid-template-columns: 1fr; max-width: 760px; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.hero__photo img[src$=".svg"], .split__media img[src$=".svg"] { object-position: center; }
.gallery figure:hover img { transform: scale(1.05); }

/* FAQ */
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(201, 162, 74, .6); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* Blog */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--white); }
.empty { text-align: center; color: var(--muted); }

/* Formulario de captura */
.lead { position: relative; overflow: hidden; }
.lead::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; background: radial-gradient(closest-side, rgba(31, 181, 168, .16), transparent); }
.lead__grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.lead__copy p { color: #c6d2e2; }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(31, 181, 168, .15); color: var(--teal); margin-top: 2px; }
.checklist--light li { color: #e7edf5; }
.lead__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #aebcd0; font-size: .94rem; }
.lead__alt a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; }
.lead__alt .icon, .lead__alt svg { width: 20px; height: 20px; color: var(--gold-2); }
.lead__card { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.lead__card h3 { color: var(--navy); font-size: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .96rem; background: var(--soft); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--navy); }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form-note .icon { width: 16px; color: var(--teal); }
.form-error { background: #fdf0ef; color: #a2362d; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.form-success { text-align: center; padding: 20px 0; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: rgba(31, 181, 168, .14); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.form-success__icon .icon { width: 36px; height: 36px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas interiores */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(201, 162, 74, .08); }
.page-hero h1 { color: var(--white); max-width: 900px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .container { position: relative; z-index: 1; }
.post-meta { color: #aebcd0; font-size: .92rem; }
.post-cover { margin-top: -40px; position: relative; z-index: 2; }
.post-cover img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; }
.service-nav { position: sticky; top: 78px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.service-nav .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.service-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--navy); background: var(--soft); }
.service-nav a:hover { background: var(--navy); color: var(--white); }
.service-detail-list { display: grid; gap: 28px; }
.service-detail { display: grid; grid-template-columns: 90px 1fr 300px; gap: 32px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; align-items: start; scroll-margin-top: 150px; }
.service-detail__num { display: block; font-size: 2rem; font-weight: 800; color: var(--line); margin-top: 10px; }
.service-detail__aside { background: var(--soft); border-radius: 16px; padding: 22px; }
.service-detail__aside small { font-weight: 700; color: var(--gold); text-transform: uppercase; font-size: .74rem; letter-spacing: .1em; }
.service-detail__aside p { font-weight: 600; color: var(--navy); }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card strong { color: var(--navy); }
.contact-card > span:last-child { color: var(--muted); font-size: .9rem; }
.contact-card__icon { width: 50px; height: 50px; border-radius: 12px; background: var(--soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.contact-card__icon--wa { background: #e8f8ee; color: #1da851; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

.entry-content { font-size: 1.06rem; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.7rem; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--navy); font-weight: 600; }
.inline-cta { margin-top: 48px; padding: 30px; border-radius: 18px; background: var(--soft); border-left: 5px solid var(--gold); }

/* Pie */
.site-footer { background: #071a31; color: #9fb0c4; font-size: .95rem; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 48px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-cta h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.footer-cta p { margin: 0; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta__actions svg { width: 20px; height: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.footer-grid h3 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #9fb0c4; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-about p { margin: 18px 0; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; color: var(--white); }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 19px; height: 19px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom a { color: #9fb0c4; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: var(--white); padding: 12px 18px 12px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* WordPress */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-caption-text { font-size: .85rem; color: var(--muted); }


/* ===== 1.1.0 ===== */
.hero__photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__bg { background: linear-gradient(100deg, rgba(10, 35, 66, .96) 0%, rgba(10, 35, 66, .86) 45%, rgba(10, 35, 66, .55) 100%); }

.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: #aebcd0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: #d7e0ec; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs [aria-current] { color: var(--gold-2); }

.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { color: var(--navy-3); }
.service-card--img { padding-top: 0; overflow: hidden; }
.service-card__media { display: block; margin: 0 -32px 0; }
.service-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.service-card--img:hover .service-card__media img { transform: scale(1.04); }
.service-card--img .service-card__icon { margin-top: -28px; position: relative; border: 4px solid var(--white); }
.service-detail__img img { border-radius: 14px; margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.service-detail h2 a { color: inherit; text-decoration: none; }

.service-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.service-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.service-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.service-sidebar { position: sticky; top: 100px; display: grid; gap: 20px; }
.service-sidebar__nav { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.service-sidebar__nav h3 { font-size: .95rem; }
.service-sidebar__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.service-sidebar__nav a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.service-sidebar__nav a:hover { background: var(--soft); color: var(--navy); }
.service-sidebar__nav .icon { width: 20px; color: var(--gold); }
.entry-content .faq__list { margin-top: 12px; }
.entry-content details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 10px; }

.clients { padding: 30px 0; border-bottom: 1px solid var(--line); }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; }
.clients__list img { height: 48px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.clients__list img:hover { filter: none; opacity: 1; }

.testimonial { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.testimonial__q { color: var(--gold); margin-bottom: 10px; }
.testimonial blockquote { margin: 0 0 20px; color: var(--ink); font-size: 1rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img, .testimonial__initial { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__initial { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-2); font-weight: 800; }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonial figcaption small { color: var(--muted); }

.contact-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; margin-bottom: 20px; }
.gallery figcaption { font-size: .82rem; color: var(--muted); padding: 6px 2px 0; }
.gallery figure { aspect-ratio: auto; }
.gallery figure img { aspect-ratio: 3 / 2; border-radius: 16px; }
.gallery figure a { display: block; overflow: hidden; border-radius: 16px; }

@media (max-width: 900px) {
	.service-hero, .service-body { grid-template-columns: 1fr; }
	.service-sidebar { position: static; }
}


/* ===== 1.2.0 · Autodiagnóstico ===== */
.container--mid { width: min(100% - 40px, 980px); }
.btn--light { background: var(--soft); color: var(--navy); border-color: var(--line); }
.btn--light:hover { background: var(--line); }
.badge { display: inline-block; color: #fff; font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; }

.diag-hero h1 { max-width: 880px; }
.diag-hero__areas { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; }
.diag-hero__areas li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.diag-hero__areas .icon { width: 30px; height: 30px; color: var(--gold-2); }
.diag-hero__areas strong { display: block; color: #fff; font-size: .95rem; }
.diag-hero__areas small { color: #aebcd0; font-size: .82rem; line-height: 1.4; display: block; }
.diag-section { margin-top: -40px; position: relative; z-index: 2; }

.diag-app { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 44px); border: 1px solid var(--line); }
.diag-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; justify-content: space-between; gap: 6px; counter-reset: s; }
.diag-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; }
.diag-steps span { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); border: 2px solid var(--line); color: var(--muted); transition: all .25s; }
.diag-steps .is-active span { background: var(--navy); border-color: var(--navy); color: #fff; }
.diag-steps .is-active { color: var(--navy); }
.diag-steps .is-done span { background: var(--teal); border-color: var(--teal); color: #fff; }
.diag-progress { height: 6px; background: var(--soft); border-radius: 6px; overflow: hidden; margin-bottom: 30px; }
.diag-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .4s; }
.diag-step { display: none; }
.diag-step.is-active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.diag-step h2 { font-size: 1.6rem; margin-bottom: 4px; }
.diag-step__head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.diag-step__head .service-card__icon { margin: 0; flex: none; }
.diag-step__head p { margin: 0; }
.dq { border: 0; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dq:last-of-type { border-bottom: 0; }
.dq legend { font-weight: 700; color: var(--navy); font-size: 1.04rem; margin-bottom: 12px; padding: 0; display: flex; gap: 10px; float: left; width: 100%; }
.dq legend + * { clear: both; }
.dq__n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--navy-3); font-size: .82rem; display: inline-flex; align-items: center; justify-content: center; }
.dq.is-answered .dq__n { background: var(--teal); color: #fff; }
.dq.is-missing legend { color: #c2463c; }
.dq.is-missing .opt span { border-color: #f0b4b0; }
.dq__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.dq__opts--chips { display: flex; flex-wrap: wrap; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .93rem; font-weight: 600; color: var(--ink); background: #fff; transition: all .15s; line-height: 1.35; }
.opt span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3ccd8; margin-right: 10px; transition: all .15s; }
.opt:hover span { border-color: var(--navy-3); }
.opt input:checked + span { border-color: var(--navy); background: #f0f4fa; color: var(--navy); }
.opt input:checked + span::before { border: 6px solid var(--navy); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt--na span { color: var(--muted); font-weight: 500; border-style: dashed; }
.dq__opts--chips .opt span { padding: 10px 14px; }
.diag-ready { text-align: center; margin-bottom: 18px; }
.diag-ready__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(31, 181, 168, .14); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.diag-ready__icon .icon { width: 32px; height: 32px; }
.diag-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.diag-nav [data-next], .diag-nav [data-submit] { margin-left: auto; }
.diag-nav [hidden] { display: none; }

/* Resultado */
.ring__val { transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.ring__val.is-anim { animation: ringIn 1.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes ringIn { from { stroke-dashoffset: var(--circ); } }
.diag-result__head { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.diag-result__ring { text-align: center; }
.diag-result__ring small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.diag-result__hello { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.diag-result__head h2 { font-size: 1.35rem; margin: 14px 0; line-height: 1.35; }
.diag-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted); }
.chip strong { color: var(--navy); font-size: 1rem; }
.chip--alto strong { color: #d64545; }
.chip--medio strong { color: #d9962b; }
.diag-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.diag-area { background: var(--soft); border-radius: 16px; padding: 18px; }
.diag-area__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.diag-area__top > div { flex: 1; }
.diag-area__top strong { display: block; color: var(--navy); font-size: .94rem; line-height: 1.25; }
.diag-area__top small { font-weight: 700; font-size: .78rem; }
.diag-area__top > b { font-size: 1.7rem; font-weight: 800; }
.diag-area__icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.meter { height: 10px; background: #dfe5ee; border-radius: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); border-radius: 6px; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1); }
@keyframes grow { from { width: 0; } }
.diag-result__sub { font-size: 1.15rem; }
.diag-findings { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.finding { border: 1px solid var(--line); border-left: 5px solid #5b6878; border-radius: 12px; padding: 14px 16px; }
.finding--alto { border-left-color: #d64545; }
.finding--medio { border-left-color: #d9962b; }
.finding__tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b6878; }
.finding--alto .finding__tag { color: #d64545; }
.finding--medio .finding__tag { color: #d9962b; }
.finding p { margin: 4px 0 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.diag-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #c6d2e2; border-radius: 20px; padding: 30px; margin-top: 26px; }
.diag-cta h3 { color: #fff; font-size: 1.35rem; }
.diag-cta p { margin: 0; }
.diag-cta__actions { display: flex; flex-direction: column; gap: 10px; }
.diag-cta__actions svg { width: 20px; height: 20px; }
.diag-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 16px 0 0; }

/* Banner del autodiagnóstico */
.diag-banner { background: linear-gradient(135deg, #0d2c52, var(--navy)); color: #c6d2e2; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.diag-banner::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 74, .2), transparent); }
.diag-banner__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; position: relative; }
.diag-banner h2 { color: #fff; }
.diag-banner__visual { display: flex; align-items: center; gap: 24px; background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); max-width: 420px; justify-self: center; transform: rotate(-2deg); }
.diag-banner__visual ul { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 14px; font-size: .82rem; font-weight: 700; color: var(--navy); }
.diag-banner__visual li span { display: block; height: 9px; width: var(--w); border-radius: 6px; margin-bottom: 5px; }

.landing-hero h1 { max-width: 900px; }

@media (max-width: 900px) {
	.diag-hero__areas, .diag-areas { grid-template-columns: 1fr; }
	.diag-result__head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.diag-chips { justify-content: center; }
	.diag-findings { grid-template-columns: 1fr; }
	.diag-cta, .diag-banner__inner { grid-template-columns: 1fr; }
	.diag-banner__visual { transform: none; }
	.diag-steps li { font-size: 0; }
	.diag-steps span { font-size: .85rem; }
}

/* Responsive */
@media (max-width: 1080px) {
	.grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
	.contact-cards { grid-template-columns: repeat(2, 1fr); }
	.service-detail { grid-template-columns: 70px 1fr; }
	.service-detail__aside { grid-column: 2; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.float-card--a { left: -16px; }
	.float-card--b { right: -16px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header__inner { position: relative; }
	.site-nav { position: absolute; top: 100%; left: -20px; right: -20px; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; max-height: calc(100vh - 80px); overflow-y: auto; }
	.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 16px; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hero__grid, .calc__grid, .split, .lead__grid { grid-template-columns: 1fr; gap: 44px; }
	.hero__visual { width: min(100%, 340px); }
	.grid--3 { grid-template-columns: 1fr 1fr; }
	.gallery { grid-template-columns: 1fr 1fr; }
	.split__media { margin-bottom: 20px; }
	.topbar__inner > span:first-child { display: none; }
	.topbar__inner { justify-content: flex-end; }
}
@media (max-width: 620px) {
	body { font-size: 16px; }
	.grid--3, .grid--4, .steps, .contact-cards, .field-row, .calc__results { grid-template-columns: 1fr; }
	.hero__stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
	.hero__stats strong { font-size: 1.4rem; }
	.hero__actions .btn { width: 100%; }
	.float-card { display: none; }
	.service-detail { grid-template-columns: 1fr; padding: 24px; }
	.service-detail__aside { grid-column: auto; }
	.service-detail__num { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.wa-float span { display: none; }
	.wa-float { padding: 14px; }
	.service-nav { top: 78px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
