/* =============================================================
   SACI · styles.css
   1. Tokens  2. Reset  3. Utilidades  4. Componentes  5. Secciones
   6. Paneles (portal/admin)  7. Efectos  8. Responsive
   ============================================================= */

/* 1. Tokens */
:root {
  --navy: #0A1F3C;
  --navy-2: #102B52;
  --navy-deep: #061429;
  --gold: #C8A24A;
  --gold-2: #E2C57A;
  --teal: #1B8A7A;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #14213A;
  --muted: #5B6578;
  --line: #E3E1DA;
  --wa: #25D366;
  --danger: #C0392B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10,31,60,.06), 0 12px 32px -12px rgba(10,31,60,.18);
  --shadow-lg: 0 30px 60px -20px rgba(6,20,41,.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilidades */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--gold); color: var(--navy); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.center { text-align: center; margin-top: 2.5rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 4. Componentes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s, color .25s, border-color .25s;
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(200,162,74,.7); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #3ee07a; }
.btn-danger { color: var(--danger); border-color: rgba(192,57,43,.35); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.kicker-light { color: var(--gold-2); }

.field { display: grid; gap: .35rem; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(10,31,60,.08); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text strong { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .04em; }
.logo-text small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo-light { color: var(--white); }
.logo-light .logo-text small { color: rgba(255,255,255,.6); }

/* 5. Secciones ----------------------------------------------- */

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 1.1rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav .logo { color: var(--white); }
.nav .logo-mark rect { fill: rgba(255,255,255,.12); }
.nav .logo-text small { color: rgba(255,255,255,.65); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: .93rem; font-weight: 500; color: rgba(255,255,255,.85); }
.nav-links > a:not(.btn) { position: relative; padding: .3rem 0; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.is-current::after { transform: scaleX(1); }
.nav-portal svg { width: 18px; height: 18px; }
.nav.is-scrolled { background: rgba(255,255,255,.94); box-shadow: 0 6px 24px -12px rgba(10,31,60,.25); padding: .6rem 0; }
@supports (backdrop-filter: blur(12px)) { .nav.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(160%); } }
.nav.is-scrolled .logo { color: var(--navy); }
.nav.is-scrolled .logo-mark rect { fill: var(--navy); }
.nav.is-scrolled .logo-text small { color: var(--muted); }
.nav.is-scrolled .nav-links { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav.is-scrolled .nav-toggle span { background: var(--navy); }

/* HERO */
.hero { position: relative; background: var(--navy-deep); color: var(--white); padding: 8.5rem 0 5.5rem; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(27,138,122,.28), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(200,162,74,.18), transparent 70%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-2)); }
.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: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .82rem; color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,74,.25); animation: pulse 2.4s infinite; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin: 1.4rem 0 1.3rem; line-height: 1.04; max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--gold-2); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.1rem 0 2rem; }
.hero-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: rgba(255,255,255,.72); }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(27,138,122,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2359d3bf' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { position: relative; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.3; transform: rotate(1.2deg); border: 1px solid rgba(255,255,255,.12); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.float-card { position: absolute; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; }
.fc-deadline { left: -2rem; bottom: 2.2rem; display: grid; gap: .1rem; min-width: 230px; animation: floaty 6s ease-in-out infinite; }
.fc-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.fc-deadline strong { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.fc-sub { font-size: .82rem; color: var(--muted); }
.fc-stat { right: -1.2rem; top: 1.8rem; display: flex; align-items: center; gap: .8rem; animation: floaty 7s ease-in-out -2s infinite; }
.fc-stat svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(200,162,74,.18); color: #9a7a2c; }
.fc-stat strong { display: block; color: var(--navy); }
.fc-stat span { font-size: .8rem; color: var(--muted); }

/* STRIP */
.strip { background: var(--navy); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.06); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.4rem; padding: 1.3rem 0; font-size: .85rem; letter-spacing: .04em; }
.strip-inner i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .7; }

/* Sección genérica */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-soft { background: #EFECE4; }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); color: var(--navy); margin-bottom: 1rem; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.07rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head-row h2 { margin: 0; }

/* SERVICIOS */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 1.4rem; transition: transform .45s var(--ease-out); }
.service:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .96rem; }

/* HERRAMIENTAS */
.section-dark { background: var(--navy); color: var(--white); overflow: clip; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 0%, rgba(27,138,122,.22), transparent 70%); pointer-events: none; }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head p:not(.kicker) { color: rgba(255,255,255,.7); }
.section-dark .kicker { color: var(--gold-2); }
.tools { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; position: relative; }
.tool { background: var(--white); color: var(--ink); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.tool-tabs { display: flex; gap: .4rem; padding: .3rem; background: var(--paper); border-radius: 999px; margin-bottom: 1.6rem; }
.tool-tabs button { flex: 1; padding: .65rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s; }
.tool-tabs button.is-active { background: var(--navy); color: var(--white); }
.tool-panel { display: grid; gap: 1.1rem; }
.tool-panel .field input { font-size: 1.5rem; font-weight: 600; font-family: var(--serif); padding: .75rem 1rem; }
.field-sm select { max-width: 220px; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; transition: border-color .2s, background .2s; }
.seg label:has(input:checked) { border-color: var(--navy); background: rgba(10,31,60,.05); }
.seg input { accent-color: var(--navy); }
.result { display: grid; gap: 0; border-top: 1px dashed var(--line); padding-top: .6rem; }
.result div { display: flex; justify-content: space-between; padding: .55rem 0; }
.result dt { color: var(--muted); }
.result dd { font-weight: 600; font-variant-numeric: tabular-nums; margin: 0; }
.result .total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .9rem; }
.result .total dt { color: var(--navy); font-weight: 700; }
.result .total dd { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.calendar h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.calendar > p { font-size: .88rem; margin: .3rem 0 1.3rem; }
.cal { list-style: none; padding: 0; display: grid; gap: .75rem; }
.cal li { display: flex; gap: 1rem; align-items: center; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, transform .35s var(--ease-out); }
.cal li:hover { border-color: var(--gold); transform: translateX(4px); }
.cal li.is-next { border-color: var(--teal); background: rgba(27,138,122,.06); }
.cal-date { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--navy); color: rgba(255,255,255,.7); display: grid; place-content: center; text-align: center; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.cal-date b { font-family: var(--serif); color: var(--gold-2); font-size: 1.35rem; letter-spacing: 0; }
.cal strong { color: var(--navy); display: block; }
.cal small { color: var(--muted); font-size: .84rem; }
.cal .next-pill { display: inline-block; margin-left: .4rem; font-size: .68rem; font-weight: 700; color: var(--teal); background: rgba(27,138,122,.12); padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; }

/* NOSOTROS */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-photo { position: relative; border-radius: 24px; overflow: visible; }
.about-photo img { border-radius: 24px; width: 100%; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: -1.2rem; bottom: 2rem; background: var(--gold); color: var(--navy); padding: 1.1rem 1.4rem; border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; }
.about-badge strong { font-family: var(--serif); font-size: 1.4rem; }
.about-badge span { font-size: .85rem; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); margin-bottom: 1.1rem; }
.about-copy > p { color: var(--muted); font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.steps li { display: flex; gap: .9rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.steps b { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; }
.steps strong { display: block; color: var(--navy); }
.steps span { font-size: .88rem; color: var(--muted); }

/* PORTAL CTA */
.portal-cta { padding: 0 0 1rem; }
.portal-inner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #16466b 100%); color: var(--white); border-radius: 28px; padding: clamp(2.2rem, 5vw, 3.8rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.portal-inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(200,162,74,.12); }
.portal-inner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; margin-bottom: .6rem; }
.portal-inner p { color: rgba(255,255,255,.75); max-width: 40rem; }
.portal-actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* BLOG */
.blog-tools input { padding: .75rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; min-width: 260px; background: var(--white); }
.blog-tools input:focus { outline: none; border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .25s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; cursor: pointer; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); text-align: left; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--teal)); }
.post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover img { transform: scale(1.06); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post h3 { font-family: var(--serif); font-size: 1.22rem; color: var(--navy); font-weight: 600; }
.post p { color: var(--muted); font-size: .94rem; }
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .8rem; font-size: .8rem; color: var(--muted); }
.post-meta b { color: var(--teal); font-weight: 600; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; background: rgba(27,138,122,.1); color: var(--teal); }
.tag[data-c="Contable"] { background: rgba(10,31,60,.08); color: var(--navy); }
.tag[data-c="Financiero"] { background: rgba(200,162,74,.16); color: #8a6a1f; }
.tag[data-c="Laboral"] { background: rgba(120,80,160,.1); color: #6a4a90; }
.empty { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--muted); background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Lector */
.reader { width: min(760px, 100% - 1.5rem); max-height: 90vh; border: 0; border-radius: 22px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.reader::backdrop { background: rgba(6,20,41,.6); backdrop-filter: blur(4px); }
.reader[open] { animation: popIn .45s var(--ease-out); }
.reader-close { position: sticky; top: .8rem; float: right; margin: .8rem .8rem 0 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; z-index: 2; box-shadow: var(--shadow); }
.reader-hero { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin-top: -56px; }
.reader-content { padding: 2rem clamp(1.3rem, 5vw, 3rem) 2.8rem; }
.reader-content h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--navy); margin: .8rem 0 .5rem; }
.reader-date { color: var(--muted); font-size: .88rem; }
.article { margin-top: 1.6rem; font-size: 1.04rem; }
.article p, .article ul, .article ol { margin-bottom: 1rem; }
.article h3 { font-size: 1.15rem; color: var(--navy); margin: 1.6rem 0 .5rem; }
.article li { margin-bottom: .35rem; }
.reader-share { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--white); border-radius: 14px; border: 1px solid var(--line); padding: 0 1.3rem; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); }

/* CONTACTO */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy); margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .8rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform .35s var(--ease-out), border-color .25s; }
.contact-list a:hover { transform: translateX(6px); border-color: var(--gold); }
.ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); flex: none; }
.ci svg { width: 22px; height: 22px; }
.ci-wa { background: var(--wa); color: #fff; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; }
.contact-list strong { color: var(--navy); }
.contact-form { background: var(--white); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1rem; border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-note.is-error { color: var(--danger); }

/* FOOTER */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 4.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-about { margin-top: 1.1rem; max-width: 22rem; font-size: .93rem; }
.footer h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-grid a:not(.logo) { display: block; font-size: .92rem; padding: .25rem 0; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; }
.footer-bottom a:hover { color: var(--gold-2); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .35s var(--ease-out); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: ring 2.6s infinite; }
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); }
.wa-tip { position: absolute; right: calc(100% + 12px); white-space: nowrap; background: var(--white); color: var(--ink); font-size: .85rem; font-weight: 600; padding: .55rem .9rem; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none; }
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: none; }

/* 6. Paneles (portal / admin) ------------------------------- */
.panel-page { min-height: 100vh; background: var(--paper); }
.panel-top { background: var(--navy); color: var(--white); }
.panel-top .container { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; gap: 1rem; }
.panel-top .logo { color: var(--white); }
.panel-top .logo-mark rect { fill: rgba(255,255,255,.12); }
.panel-top .logo-text small { color: rgba(255,255,255,.6); }
.panel-user { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.panel-user .btn { padding: .5rem 1rem; }
.demo-bar { background: #FFF4D6; color: #6b5210; font-size: .85rem; text-align: center; padding: .55rem 1rem; }
.auth { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--navy) center/cover; color: var(--white); padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,41,.25), rgba(6,20,41,.92)); z-index: -1; }
.auth-side h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); max-width: 18ch; margin-bottom: .8rem; }
.auth-side p { color: rgba(255,255,255,.78); max-width: 30rem; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-card { width: min(420px, 100%); background: var(--white); border-radius: 22px; padding: 2.3rem; box-shadow: var(--shadow); display: grid; gap: 1.05rem; border: 1px solid var(--line); }
.auth-card h2 { font-size: 1.8rem; color: var(--navy); }
.auth-card .btn { width: 100%; }
.auth-hint { font-size: .84rem; color: var(--muted); }
.auth-hint a { color: var(--teal); font-weight: 600; }
.msg { font-size: .88rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(192,57,43,.08); color: var(--danger); }
.msg.ok { background: rgba(27,138,122,.1); color: var(--teal); }
.dash { padding: 2.5rem 0 5rem; }
.dash-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.dash-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); }
.dash-head p { color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; }
.kpi small { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin-top: .2rem; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.box + .box { margin-top: 1.5rem; }
.box h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.tabs button { padding: .8rem 1.1rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.is-active { color: var(--navy); border-color: var(--gold); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.list th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.list td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list .actions { display: flex; gap: .4rem; justify-content: flex-end; }
.list .btn { padding: .4rem .8rem; font-size: .8rem; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-form .full { grid-column: 1/-1; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.doc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(10,31,60,.07); color: var(--navy); font-size: .7rem; font-weight: 700; flex: none; }
.doc-row { display: flex; align-items: center; gap: .8rem; }
.help { font-size: .82rem; color: var(--muted); }

/* 7. Efectos */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(200,162,74,.25); } 50% { box-shadow: 0 0 0 8px rgba(200,162,74,.05); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

/* 8. Responsive */
@media (max-width: 1279px) {
  .fc-deadline { left: -.5rem; }
  .fc-stat { right: -.5rem; }
}
@media (max-width: 959px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 0; padding: 5.5rem 1.6rem 2rem; background: var(--navy-deep); color: var(--white); transform: translateX(100%); transition: transform .45s var(--ease-out); box-shadow: var(--shadow-lg); }
  .nav.is-scrolled .nav-links { color: var(--white); }
  .nav-links > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav-links .btn { margin-top: 1.5rem; }
  .nav.is-open .nav-links { transform: none; }
  .nav.is-open .nav-toggle span { background: var(--white); }
  .nav.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .nav-toggle { z-index: 2; }
  .nav.is-scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(255,255,255,.97); }
  .nav .logo-text small { display: none; }
  .hero-grid, .tools, .about, .contact, .faq-wrap, .auth, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .services, .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-side { min-height: 260px; padding: 2rem 1.5rem; }
  .about { gap: 3rem; }
}
@media (max-width: 719px) {
  .services, .posts, .steps, .row, .cards-3, .grid-form { grid-template-columns: 1fr; }
  .fc-stat { display: none; }
  .fc-deadline { left: .8rem; bottom: -1.5rem; min-width: 0; }
  .hero-photo { transform: none; }
  .about-badge { right: .8rem; }
  .blog-tools input { min-width: 0; width: 100%; }
  .blog-tools { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
  .tool { padding: 1.4rem; }
  .list .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::before, .eyebrow .dot { animation: none; }
  .float-card { animation: none; }
}
