/* =====================================================================
   SUMA PH — Estilos del sitio
   Paleta y tipografías tomadas del sitio original (sumaph.com.co)
   ===================================================================== */
:root {
  --teal: #00a987;
  --teal-dark: #00896d;
  --teal-light: #dbf5ec;
  --lime: #aac62f;
  --lime-light: #e9f5c8;
  --dark: #142f24;
  --dark-2: #0f251c;
  --bg: #f7f7f5;
  --white: #fff;
  --text: #201d1e;
  --text-light: #524b4d;
  --gray: #676767;
  --line: rgba(0, 0, 0, .07);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 47, 36, .08);
  --shadow-lg: 0 24px 60px rgba(20, 47, 36, .16);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.narrow { max-width: 860px; }
.center { text-align: center; }
.teal { color: var(--teal); }
.lime { color: var(--lime) !important; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 16px; height: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 24px; font-size: .9rem; font-weight: 600; font-family: var(--font-display); border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 30px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--upper { text-transform: uppercase; letter-spacing: .06em; padding: 15px 24px; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(0, 169, 135, .3); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #1d4334; }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal-light); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; font-weight: 500; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--white { background: #fff; color: var(--teal); padding: 15px 38px; }
.btn--white:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .08); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: none; align-items: center; gap: 34px; }
.nav-link { position: relative; font-size: .9rem; color: var(--text); background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width .3s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--teal); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { width: 100%; }
.nav-link.is-active { font-weight: 600; color: var(--text); }
.nav-link .chev { transition: transform .25s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__actions { display: none; gap: 12px; }
.nav__actions .btn { padding: 9px 22px; }
.nav__burger { display: inline-flex; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--dark); }
@media (min-width: 1024px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__burger { display: none; }
}

/* Mega menú */
.mega-wrap { position: static; }
.mega { position: absolute; left: 50%; top: calc(var(--nav-h) + 8px); transform: translateX(-50%); width: min(1100px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 32px; animation: megaIn .22s ease-out; }
.mega[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mega .eyebrow { margin-bottom: 18px; }
.mega__item { display: flex; gap: 14px; padding: 12px; margin: 0 -12px 6px; border-radius: 12px; transition: background .2s; }
.mega__item:hover { background: var(--bg); }
.mega__item b, .mega__portal b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); line-height: 1.3; }
.mega__item small, .mega__portal small { display: block; color: var(--gray); font-size: .86rem; margin-top: 2px; line-height: 1.45; }
.mega__ic { color: var(--teal); padding-top: 2px; }
.mega__num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--teal-light); line-height: 1; min-width: 42px; }
.mega__item:hover .mega__num { color: var(--teal); }
.mega__cta { background: var(--dark); border-radius: 18px; padding: 26px; color: rgba(255, 255, 255, .72); margin-bottom: 16px; }
.mega__cta-t { color: var(--lime); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.mega__cta p { font-size: .92rem; }
.mega__portal { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.mega__portal:hover { border-color: var(--teal); box-shadow: var(--shadow); }

/* Drawer móvil */
.drawer { border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 24px; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer > a, .drawer summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .ic { transform: rotate(180deg); }
.drawer details a { display: block; padding: 10px 0 10px 16px; color: var(--text-light); border-bottom: 1px solid var(--line); }
.drawer .is-active { color: var(--teal); }
.drawer__btns { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 1024px) { .drawer { display: none !important; } }

/* ---------- Comunes ---------- */
.eyebrow { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.eyebrow--lime { color: var(--lime); }
.section { padding: 88px 0; }
.section--bg { background: var(--bg); }
.section--white { background: #fff; }
@media (min-width: 1024px) { .section { padding: 110px 0; } }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head--left { text-align: left; margin-left: 0; margin-bottom: 32px; }
.section__sub { color: var(--gray); font-size: 1.08rem; margin: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (min-width: 700px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2--narrow { max-width: 900px; margin: 0 auto; }
.stack-lg { display: grid; gap: 28px; }
.lime-bar { display: block; width: 76px; height: 4px; border-radius: 4px; background: var(--lime); margin-top: 28px; }
.teal-bar { display: block; width: 38px; height: 3px; border-radius: 3px; background: var(--teal); margin-bottom: 16px; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-light); color: var(--teal); flex: none; }
.icon-circle--lg { width: 68px; height: 68px; }
.icon-circle--lg .ic { width: 28px; height: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; font-family: var(--font-display); font-size: .92rem; }
.note { text-align: center; color: var(--gray); font-size: .92rem; margin-top: 24px; }
.note a { color: var(--teal); font-weight: 600; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.revealed { animation: revealUp .7s ease-out forwards; animation-delay: var(--d, 0ms); }
@keyframes revealUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .reveal.revealed { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; color: #fff; border-bottom: 4px solid var(--teal); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 25, 20, .86) 0%, rgba(15, 25, 20, .62) 50%, rgba(15, 25, 20, .25) 100%); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 44px; padding-top: 72px; padding-bottom: 72px; }
.hero__grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 3fr 2fr; gap: 64px; align-items: center; } }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(170, 198, 47, .35); background: rgba(170, 198, 47, .15); color: var(--lime); padding: 6px 18px; border-radius: 999px; font-size: .78rem; font-weight: 500; margin-bottom: 26px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 700; line-height: 1.32; margin-bottom: 26px; }
.hero__strike { font-size: .72em; opacity: .4; text-decoration-thickness: 3px; }
.hero__niche { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-weight: 500; font-size: 1.05rem; line-height: 1.5; margin: -6px 0 20px; max-width: 640px; }
.hero__niche .ic { color: var(--dark); background: var(--lime); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
@media (max-width: 600px) { .hero__niche { font-size: .98rem; margin: -10px 0 16px; } .hero .hero__lead { margin-bottom: 26px; } .hero__copy .btn-row { flex-wrap: nowrap; gap: 10px; } .hero__copy .btn--lg { padding: 13px 16px; font-size: .9rem; flex: 1 1 auto; } }
.niche-note { display: flex; align-items: flex-start; gap: 12px; background: var(--lime-light); border-left: 4px solid var(--lime); border-radius: 12px; padding: 14px 18px; font-weight: 500; color: var(--text) !important; }
.niche-note .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.hero__lead { color: rgba(255, 255, 255, .72); font-size: 1.15rem; max-width: 640px; line-height: 1.75; margin-bottom: 36px; }
.hero__lead strong { color: #fff; }
.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg); padding: 34px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.glass h2 { color: #fff; font-size: 1.3rem; margin-bottom: 24px; }
@media (max-width: 600px) { .glass { padding: 24px 20px; } .hero__grid { padding-top: 48px; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { overflow-wrap: anywhere; font-size: .82rem; font-weight: 600; color: var(--text-light); }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { width: 100%; border-radius: 12px; padding: 13px 16px; font-size: .92rem; border: 1px solid #dcdcd8; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 169, 135, .15); }
.form input[type=file] { width: 100%; min-width: 0; max-width: 100%; font-size: .85rem; padding: 10px; border: 1px dashed #c9c9c4; border-radius: 12px; background: var(--bg); }
.form .is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12) !important; }
.form.form--glass input:not([type=checkbox]):not([type=file]) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.form--glass input::placeholder { color: rgba(255, 255, 255, .55); }
.form.form--glass input:focus { border-color: var(--teal); background: rgba(255, 255, 255, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--gray); cursor: pointer; line-height: 1.45; }
.check input { margin-top: 2px; accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.check a { color: var(--teal); text-decoration: underline; }
.form--glass .check { color: rgba(255, 255, 255, .65); }
.form--glass .check a { color: #fff; }
.form__msg { margin: 0; font-size: .9rem; font-weight: 500; min-height: 0; }
.form__msg:empty { display: none; }
.form__msg.is-ok { color: var(--teal-dark); background: var(--teal-light); padding: 12px 16px; border-radius: 12px; }
.form__msg.is-error { color: #b4232a; background: #fde8e8; padding: 12px 16px; border-radius: 12px; }
.form--glass .form__msg.is-ok { background: rgba(0, 169, 135, .25); color: #fff; }
.form--glass .form__msg.is-error { background: rgba(229, 72, 77, .25); color: #fff; }
.form__done { text-align: center; padding: 10px 0; }
.form__done .icon-circle { margin: 0 auto 14px; background: var(--teal); color: #fff; }
.form__done h3 { margin-bottom: 6px; }
.glass .form__done h3, .glass .form__done p { color: #fff; }
.radicado { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-dark); background: var(--teal-light); padding: 8px 20px; border-radius: 12px; letter-spacing: .04em; margin: 6px 0 12px; }

/* ---------- Cifras ---------- */
.stats { background: #fff; padding: 52px 0; }
.stats__grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(3, 1fr); max-width: 1000px; } .stat + .stat { border-left: 1px solid var(--line); } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 3.6rem); color: var(--teal); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.stat__bar { display: block; width: 38px; height: 2px; background: var(--lime); margin: 14px auto; }
.stat__label { color: var(--text-light); font-size: .98rem; margin: 0; }

/* ---------- Tarjetas ---------- */
.phase { position: relative; overflow: hidden; background: #fff; border: 1px solid #efefec; border-radius: var(--radius); padding: 38px 36px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.phase:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.phase__num { position: absolute; right: 16px; top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 6.2rem; line-height: 1.1; color: var(--teal-light); pointer-events: none; user-select: none; }
.phase > *:not(.phase__num) { position: relative; }
.phase .icon-circle { margin: 10px 0 34px; }
.phase h3 { font-size: 1.45rem; margin-bottom: 14px; }
.phase p { color: var(--text-light); margin: 0; line-height: 1.75; }
.section--bg .phase { border-color: transparent; }

.service-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #efefec; border-radius: var(--radius); padding: 34px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.service-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card .icon-circle { margin-bottom: 18px; }
.service-card p { color: var(--text-light); flex: 1; }

/* Diferenciadores */
.diff__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .diff__grid { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } .diff__intro { position: sticky; top: calc(var(--nav-h) + 40px); } }
.diff__intro h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.diff__intro p { color: var(--text-light); font-size: 1.12rem; line-height: 1.8; }
.diff__cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .diff__cards { grid-template-columns: 1fr 1fr; } }
.diff-card { position: relative; overflow: hidden; background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius); padding: 30px 30px 32px; transition: border-color .3s, box-shadow .3s, background .3s; min-width: 0; }
.diff-card:hover { border-color: var(--teal); background: #fff; box-shadow: var(--shadow); }
.diff-card--white { background: #fff; }
.diff-card__num { position: absolute; right: 16px; top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 3.8rem; line-height: 1.1; color: var(--teal-light); opacity: .9; pointer-events: none; }
.diff-card > *:not(.diff-card__num) { position: relative; }
.diff-card p { color: var(--text-light); margin: 0; line-height: 1.7; }
.diff-card h3 { font-size: 1.12rem; margin-bottom: 8px; }

/* Banner portal */
.portal-banner { display: grid; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); }
.portal-banner h2 { margin-bottom: 10px; }
.portal-banner p:last-child { color: var(--text-light); margin: 0; }
@media (min-width: 900px) { .portal-banner { grid-template-columns: 1.4fr 1fr; padding: 52px 60px; } .portal-banner .btn-row { justify-content: flex-end; } }
@media (max-width: 600px) { .portal-banner { padding: 30px 24px; } }

/* ---------- Páginas interiores ---------- */
.page-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 169, 135, .35), transparent 60%), linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; padding: 78px 0 84px; position: relative; overflow: hidden; border-bottom: 4px solid var(--teal); }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(170, 198, 47, .07); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 860px; position: relative; z-index: 1; }
.page-hero__sub { color: rgba(255, 255, 255, .72); font-size: 1.12rem; max-width: 720px; margin: 0; position: relative; z-index: 1; }
.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .5); margin-bottom: 22px; }
.crumbs a:hover { color: var(--lime); }
.crumbs span { color: rgba(255, 255, 255, .8); }

.side-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); min-width: 0; }
.side-card h2 { font-size: 1.45rem; }
.side-card > p { color: var(--gray); }
@media (max-width: 600px) { .side-card { padding: 26px 20px; } }

.svc-row { display: grid; gap: 32px; background: #fff; border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
@media (min-width: 960px) { .svc-row { grid-template-columns: 1fr 1.15fr; gap: 56px; padding: 56px; } }
@media (max-width: 600px) { .svc-row { padding: 30px 22px; } }
.svc-row__num { position: absolute; right: 24px; top: 0; font-family: var(--font-display); font-weight: 800; font-size: 7rem; color: var(--teal-light); line-height: 1.1; opacity: .7; }
.svc-row__head { position: relative; }
.svc-row__head .icon-circle { margin-bottom: 22px; }
.svc-row__head p { color: var(--text-light); font-size: 1.05rem; line-height: 1.75; margin-bottom: 26px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
@media (min-width: 640px) { .svc-row .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; background: var(--bg); padding: 16px 18px; border-radius: 12px; }
.checklist li .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.checklist b { display: block; font-family: var(--font-display); margin-bottom: 2px; }
.checklist span { color: var(--text-light); font-size: .93rem; line-height: 1.55; }
.checklist--plain li { background: none; padding: 4px 0; }
.checklist--plain span { font-size: 1rem; }

.svc-detail { display: grid; gap: 40px; }
.svc-detail > * { min-width: 0; }
@media (min-width: 1024px) { .svc-detail { grid-template-columns: 1.6fr 1fr; align-items: start; } .svc-detail aside { position: sticky; top: calc(var(--nav-h) + 24px); } }

.split { display: grid; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
.split > div:first-child p { color: var(--text-light); font-size: 1.08rem; line-height: 1.8; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

.about { display: grid; gap: 48px; align-items: center; }
.about > div:first-child p { color: var(--text-light); font-size: 1.08rem; line-height: 1.8; }
@media (min-width: 960px) { .about { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__stat { background: var(--bg); border-radius: var(--radius); padding: 26px 22px; }
.about__stat .stat__num { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.about__stat .stat__label { font-size: .9rem; margin-top: 6px; }
.about__stat--dark { background: var(--dark); }
.about__stat--dark .stat__label { color: rgba(255, 255, 255, .7); }
.role { background: #fff; border-radius: var(--radius); padding: 30px; text-align: center; }
.role .icon-circle { margin: 0 auto 18px; }
.role h3 { font-size: 1.15rem; }
.role p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* Contacto */
.contact { display: grid; gap: 40px; align-items: start; }
.contact > * { min-width: 0; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact__info { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 18px 22px; border: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.contact-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.contact-card small { display: block; color: var(--gray); font-size: .8rem; }
.contact-card b { font-family: var(--font-display); font-size: 1.02rem; overflow-wrap: anywhere; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq details { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1.5px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--teal); }
.faq summary { padding: 20px 24px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 24px 22px; margin: 0; color: var(--text-light); }

/* Portal residentes */
.tabs { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow); margin: 0 auto 24px; width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 11px 22px; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--text-light); font-size: .92rem; }
.tab.is-active { background: var(--teal); color: #fff; }
@media (max-width: 480px) { .tab { padding: 10px 14px; font-size: .85rem; } }
.ticket { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ticket__head small { display: block; color: var(--gray); font-size: .8rem; }
.ticket__head b { font-family: var(--font-display); font-size: 1.35rem; }
.ticket__dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 22px; font-size: .93rem; }
.ticket__dl dt { color: var(--gray); }
.ticket__dl dd { margin: 0; overflow-wrap: anywhere; }
.ticket__dl a { color: var(--teal); }
@media (max-width: 520px) { .ticket__dl { grid-template-columns: 1fr; } .ticket__dl dd { margin-bottom: 8px; } }
.ticket h3 { font-size: 1.05rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--teal-light); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--teal-light); }
.timeline small { color: var(--gray); margin-left: 8px; }
.timeline p { margin: 6px 0 0; color: var(--text-light); font-size: .93rem; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.st-blue { background: #e3effd; color: #1f5fae; }
.st-amber { background: #fdf1d8; color: #92600a; }
.st-green { background: var(--teal-light); color: var(--teal-dark); }
.st-gray { background: #ececea; color: #555; }

/* Login */
.login__grid { display: grid; gap: 40px; align-items: center; max-width: 1000px; }
.login__grid > * { min-width: 0; }
@media (min-width: 900px) { .login__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.login .side-card .icon-circle { margin-bottom: 18px; }
.login__res p { color: var(--text-light); font-size: 1.05rem; }

/* Legal */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-light); line-height: 1.8; }
.legal a { color: var(--teal); }
.big-404 { font-family: var(--font-display); font-weight: 800; font-size: 8rem; color: var(--teal-light); line-height: 1; margin: 0; }

/* ---------- CTA y footer ---------- */
.cta-band { background: linear-gradient(110deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; text-align: center; padding: 86px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: 1.12rem; margin-bottom: 36px; }
.footer { background: var(--dark); color: rgba(255, 255, 255, .55); padding: 72px 0 28px; }
.footer__grid { display: grid; gap: 40px; }
.footer__grid > * { min-width: 0; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.15fr 1fr 1fr 1.2fr; } }
.footer__logo { height: 52px; width: auto; margin-bottom: 22px; }
.footer__about { font-size: .98rem; line-height: 1.75; color: rgba(255, 255, 255, .72); max-width: 320px; }
.footer h3 { color: var(--lime); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--teal); }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .4); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }
.to-top { position: fixed; right: 28px; bottom: 92px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top .ic { transform: rotate(180deg); }
.to-top.is-visible { opacity: .85; pointer-events: auto; }

/* Página de respuesta sin JS */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; text-align: center; }

/* ---------- Panel admin ---------- */
.admin { background: var(--bg); }
.admin__top { display: flex; align-items: center; gap: 16px; background: var(--dark); color: #fff; padding: 12px 24px; }
.admin__top b { font-family: var(--font-display); flex: 1; }
.admin__top img { height: 36px; width: auto; }
.admin__out { display: inline-flex; gap: 6px; align-items: center; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.admin__out:hover { color: var(--lime); }
.admin__wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.admin__flash { background: var(--teal-light); color: var(--teal-dark); padding: 12px 18px; border-radius: 12px; }
.admin__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: #fff; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kpi b { font-family: var(--font-display); font-size: 1.8rem; }
.admin__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin__tabs a { padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; }
.admin__tabs a.is-active { background: var(--dark); color: #fff; }
.admin__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.admin__filter input, .admin__filter select { padding: 10px 14px; border-radius: 10px; border: 1px solid #dcdcd8; background: #fff; flex: 1 1 200px; }
.admin__item { background: #fff; border-radius: 14px; margin-bottom: 10px; }
.admin__item summary { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 20px; cursor: pointer; }
.admin__item summary small { margin-left: auto; color: var(--gray); }
.admin__body { padding: 0 20px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin__upd { max-width: 560px; }
.admin__empty { text-align: center; color: var(--gray); padding: 40px; }

/* ---------- Landing por copropiedad (/copropiedades/<url>) ---------- */
/* Identidad del documento de Suma: Work Sans, turquesa #0FB599, lima #AAD630, gris #707070.
   El texto pequeño en turquesa usa un tono más oscuro (#00785f) para cumplir WCAG AA. */
.lp { --font-display: "Work Sans", system-ui, sans-serif; --teal-doc: #0FB599; --lime-doc: #AAD630; --gray-doc: #707070; --teal-aa: #00785f; }
.lp h1, .lp h2 { font-weight: 700; letter-spacing: -.015em; }
.lp .btn--teal { background: var(--teal-doc); color: #0f251c; font-weight: 700; }
.lp .btn--teal:hover { background: #0da387; box-shadow: 0 8px 22px rgba(15, 181, 153, .3); }
.lp .btn--outline { border-color: var(--teal-aa); color: var(--teal-aa); }
.lp .eyebrow:not(.eyebrow--lime), .lp .link-arrow, .lp .check a, .lp .note a { color: var(--teal-aa); }
.lp .eyebrow--lime { color: var(--lime-doc); }
.lp .section__sub, .lp .lp-list small, .lp .lp-list p, .lp .contact-card small { color: var(--gray-doc); }
.lp-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fdf1d8; color: #6b4708; font-size: .68rem; letter-spacing: .06em; vertical-align: 1px; }
.lp-empty { display: flex; gap: 14px; align-items: flex-start; margin: 0; background: var(--bg); border: 1px dashed #cfd3cf; border-radius: var(--radius); padding: 18px 20px; color: var(--gray-doc); }
.lp-empty .ic { color: var(--teal-aa); margin-top: 2px; }
.lp-empty--white { background: #fff; }
.lp-preview--ej { background: #e9f5c8; color: #33450a; font-weight: 500; }
.lp-preview--ej a { text-decoration: underline; font-weight: 700; }
.lp-nav .nav__bar { gap: 12px; }
.lp-nav__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-nav__sep { width: 1px; height: 30px; background: #dcdcd8; flex: none; }
.lp-nav__cp-logo { height: 36px; width: 36px; object-fit: contain; border-radius: 8px; flex: none; }
.lp-nav__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-nav__back { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text-light); flex: none; }
.lp-nav__back:hover { color: var(--teal-aa); }
.lp-nav__back-ic { transform: rotate(180deg); }
.lp-nav__back-s { display: none; }
@media (max-width: 420px) { .lp-nav__back-l { display: none; } .lp-nav__back-s { display: inline; } }
.lp-preview { margin: 0; background: #fdf1d8; color: #6b4708; text-align: center; font-size: .88rem; font-weight: 600; padding: 10px 16px; }
.lp-hero { background: radial-gradient(900px 360px at 90% -20%, rgba(15, 181, 153, .35), transparent 60%), linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; padding: 40px 0 44px; border-bottom: 4px solid var(--teal-doc); }
.lp-hero__inner { max-width: 860px; }
.lp-hero__logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 16px; }
.lp-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 12px; }
.lp-hero .teal { color: var(--teal-doc); }
.lp-hero__sub { color: rgba(255, 255, 255, .82); font-size: 1.05rem; max-width: 620px; margin-bottom: 24px; }
.lp-hero__btns { display: grid; gap: 12px; }
@media (min-width: 560px) { .lp-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; } .lp-hero { padding: 64px 0 70px; } }
.lp-hero .btn--ghost { border-color: rgba(255, 255, 255, .6); font-weight: 600; }
.lp-sec { padding: 56px 0; }
@media (min-width: 1024px) { .lp-sec { padding: 80px 0; } }
.lp .section__head--left { margin-bottom: 24px; }
.lp .section__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lp .section__sub { font-size: 1rem; }
.coprop-fixed { display: flex; flex-direction: column; background: var(--teal-light); border-radius: 12px; padding: 12px 16px; }
.coprop-fixed small { color: var(--text-light); font-size: .8rem; font-weight: 600; }
.coprop-fixed b { font-family: var(--font-display); font-size: 1.1rem; }
.field-solo { display: grid; }
.lp-card-line { border-top: 4px solid var(--teal-doc); }
.lp-contact { display: grid; gap: 14px; }
@media (min-width: 700px) { .lp-contact { grid-template-columns: 1fr 1fr; } }
.lp-contact .contact-card { border-color: #efefec; }
.lp-contact .icon-circle, .lp-list .icon-circle { color: var(--teal-aa); }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.lp-list--cards li { background: #fff; }
.lp-list li > div { min-width: 0; }
.lp-list small { display: block; color: var(--gray); font-size: .82rem; }
.lp-list b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.lp-list p { color: var(--text-light); font-size: .95rem; margin: 4px 0 8px; }
.lp-links { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-links .btn { white-space: normal; text-align: left; }
.lp-footer { padding-top: 48px; }
.lp-footer__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .lp-footer__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.lp-footer .footer__bottom { margin-top: 36px; color: rgba(255, 255, 255, .7); }
.lp-footer { color: rgba(255, 255, 255, .72); }

/* ---------- Panel admin: copropiedades ---------- */
.cp-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.cp-new input { flex: 1 1 220px; border-radius: 10px; padding: 10px 14px; border: 1px solid #dcdcd8; }
.cp-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .cp-grid { grid-template-columns: 1fr 1fr; } }
.cp-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cp-block { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.cp-block h4 { font-family: var(--font-display); margin: 0 0 10px; }
.cp-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.cp-items li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.cp-items form { margin: 0; }
.cp-items button { background: none; border: 0; color: #b4232a; cursor: pointer; font-size: .85rem; }
.cp-add { display: grid; gap: 8px; }
@media (min-width: 760px) { .cp-add { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.cp-add input, .cp-add textarea { border-radius: 10px; padding: 9px 12px; border: 1px solid #dcdcd8; width: 100%; font-size: .88rem; }
.cp-hint { color: var(--gray); font-size: .82rem; margin: 6px 0 0; }
