/* ============================================================
   JC Asesoría Previsional — Landing + Calculadora Ley 73
   Identidad de marca: naranja / rojo / ámbar + gris.
   "Vale más prevenir". Light/dark, mobile-first.
   ============================================================ */

:root {
  /* Marca (extraídos del logo) */
  --orange: #E85D0C;      /* naranja principal */
  --orange-600: #d24f08;
  --orange-700: #b84407;
  --amber: #F59300;       /* ámbar */
  --red: #E4302A;         /* rojo */
  --brand-grad: linear-gradient(120deg, var(--red), var(--orange) 55%, var(--amber));
  --brand-grad-soft: linear-gradient(120deg, #fff2e6, #ffe9d6);

  /* Neutros cálidos (claro) */
  --bg: #fbf6f1;
  --bg-soft: #f5ece3;
  --surface: #ffffff;
  --surface-2: #fbf5ef;
  --border: #efe2d6;
  --border-strong: #e2cfbe;

  /* Texto */
  --ink: #2a2320;          /* títulos */
  --text: #3d3733;
  --text-muted: #756c66;
  --text-faint: #a1958c;

  /* Semánticos */
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
  --warn-text: #9a3412;

  /* Efectos */
  --shadow-sm: 0 1px 2px rgba(120, 60, 10, .07), 0 1px 3px rgba(120, 60, 10, .06);
  --shadow-md: 0 6px 18px rgba(150, 70, 15, .10), 0 2px 6px rgba(150, 70, 15, .06);
  --shadow-lg: 0 22px 48px rgba(150, 70, 15, .16), 0 8px 16px rgba(150, 70, 15, .08);
  --ring: 0 0 0 3px rgba(232, 93, 12, .30);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --container: 1180px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-sans);
}

:root[data-theme="dark"] {
  --bg: #1a1512;
  --bg-soft: #221b16;
  --surface: #241d18;
  --surface-2: #2d241d;
  --border: #3a2e25;
  --border-strong: #4a3a2d;
  --ink: #f7efe8;
  --text: #ece2da;
  --text-muted: #b6a89d;
  --text-faint: #8a7c70;
  --brand-grad-soft: linear-gradient(120deg, #3a2416, #2f1d12);
  --success-soft: #10331d;
  --warn-bg: #2a1a0d;
  --warn-border: #6b3f18;
  --warn-text: #fdba74;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 22px 50px rgba(0,0,0,.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
a { color: var(--orange-600); }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amount, .rcard-value, .bd-table td, #aguinaldo, #totalAnual, .chart-value { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: .98rem; padding: .8rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-600); }
.btn-purple { background: linear-gradient(120deg, #7c3aed, #9333ea); color: #fff; box-shadow: var(--shadow-sm); }
.btn-purple:hover { filter: brightness(1.06); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-wa { background: #25D366; color: #fff; box-shadow: var(--shadow-sm); }
.btn-wa:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; min-height: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { height: 56px; width: auto; }
@media (max-width: 520px) { .brand img { height: 46px; } }
.header-nav { display: flex; align-items: center; gap: .3rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .8rem; border-radius: var(--r-sm); }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) { .header-nav { display: none; } }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--orange); border-color: var(--orange); }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }

/* ---------- Marca de agua (isotipo) ---------- */
.watermark {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background-image: url("assets/isotype.png");
  background-repeat: space; background-size: 120px; opacity: .04;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--brand-grad);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}
.hero-bg .watermark { opacity: .07; background-image: url("assets/isotype.png"); filter: brightness(0) invert(1); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.hero-copy { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.18); padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.35rem); font-weight: 800; margin: 1rem 0 .7rem; }
.hero .lead { color: rgba(255,255,255,.95); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem;
  color: #fff; font-weight: 700; font-size: .95rem;
}
.hero-badge .years { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; }

.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); background: #fff; }
.hero-art .art-fallback {
  aspect-ratio: 4/3; border-radius: var(--r-xl); background: rgba(255,255,255,.14);
  border: 1px dashed rgba(255,255,255,.5); display: grid; place-items: center; color: #fff;
}
@media (max-width: 900px) { .hero-art { max-width: 460px; margin-inline: auto; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head .kicker { color: var(--orange-600); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin: .5rem 0 .6rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Calculadora ---------- */
.calc-section { background: var(--bg-soft); }
.calc { display: grid; gap: 1.4rem; grid-template-columns: minmax(0,1fr); align-items: start; }
@media (min-width: 940px) {
  .calc { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
  .results { position: sticky; top: 92px; }
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-md); }
.panel-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.panel-title svg { color: var(--orange); }

/* Campos */
.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
.field > label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; color: var(--ink); }

.input-wrap {
  display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface-2); overflow: hidden; transition: border-color .16s, box-shadow .16s;
}
.input-wrap:focus-within { border-color: var(--orange); box-shadow: var(--ring); background: var(--surface); }
.input-wrap .prefix, .input-wrap .suffix { color: var(--text-faint); font-weight: 600; padding-inline: .85rem; white-space: nowrap; }
.input-wrap .prefix { padding-right: .1rem; }
.input-wrap input, .stepper input {
  flex: 1; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1.05rem; padding: .78rem .85rem; min-width: 0;
}
input:focus { outline: none; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.help { color: var(--text-muted); font-size: .84rem; margin-top: .45rem; line-height: 1.45; }
.help strong { color: var(--ink); font-weight: 600; }

.field-warn {
  display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; padding: .6rem .75rem;
  border-radius: var(--r-sm); background: var(--warn-bg); border: 1px solid var(--warn-border);
  color: var(--warn-text); font-size: .84rem; font-weight: 500;
}
.field-warn svg { flex: none; margin-top: 2px; }

.segmented {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .25rem;
  background: var(--surface-2); border: 1.5px solid var(--border); padding: .28rem; border-radius: var(--r-md);
}
.segmented-sm { grid-template-columns: repeat(3, 1fr); max-width: 220px; }
.segmented button {
  appearance: none; border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-weight: 700; font-size: 1rem; padding: .55rem 0; cursor: pointer;
  border-radius: calc(var(--r-md) - 4px); transition: color .15s, background .15s, box-shadow .15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--orange-600); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .segmented button[aria-checked="true"] { background: #3a2a1c; color: var(--amber); }
.segmented button:focus-visible { outline: none; box-shadow: var(--ring); }

.switch-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; margin-bottom: 0 !important; }
.switch { position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { display: block; width: 52px; height: 30px; border-radius: 999px; background: var(--border-strong); transition: background .2s; position: relative; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .track { background: var(--orange); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

.stepper { display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; transition: border-color .16s, box-shadow .16s; }
.stepper:focus-within { border-color: var(--orange); box-shadow: var(--ring); background: var(--surface); }
.step-btn { flex: none; width: 46px; height: 48px; border: 0; background: transparent; color: var(--orange-600); font-size: 1.5rem; font-weight: 700; cursor: pointer; line-height: 1; transition: background .15s; }
.step-btn:hover { background: var(--brand-grad-soft); }
.stepper input { text-align: center; padding: .78rem .2rem; }

.advanced { margin-top: 1.4rem; border-top: 1px dashed var(--border); padding-top: 1rem; }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--text-muted); font-size: .92rem; list-style: none; display: flex; align-items: center; gap: .4rem; user-select: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "＋"; font-weight: 700; color: var(--orange); }
.advanced[open] summary::before { content: "－"; }
.advanced[open] summary { margin-bottom: 1rem; }

/* Resultados */
.result-hero { background: var(--brand-grad); color: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 1.8rem); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.result-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%; }
.result-label { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; opacity: .95; }
.result-amount { display: flex; align-items: baseline; gap: .15rem; margin: .35rem 0 .2rem; }
.result-amount .currency { font-size: 1.6rem; font-weight: 700; opacity: .9; }
.result-amount .amount { font-family: var(--font-head); font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 800; line-height: 1; }
.result-amount .per { font-size: 1.1rem; font-weight: 600; opacity: .85; }
.result-sub { font-size: .9rem; opacity: .96; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,.2); padding: .2rem .6rem; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.pmg-note { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .55rem .8rem; background: rgba(255,255,255,.18); border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; color: #fff; }
.pmg-note svg { flex: none; }
.pmg-note strong { font-weight: 800; }

.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.rcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: .95rem 1.1rem; }
.rcard-accent { background: var(--brand-grad-soft); border-color: transparent; }
.rcard-label { display: block; font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.rcard-accent .rcard-label { color: var(--orange-700); }
:root[data-theme="dark"] .rcard-accent .rcard-label { color: var(--amber); }
.rcard-value { display: block; font-size: 1.35rem; font-weight: 800; font-family: var(--font-head); margin-top: .15rem; color: var(--ink); }

.result-actions { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.result-actions .btn { flex: 1; min-width: 160px; }

.chart-block { margin-top: 1.8rem; }
.chart-head h3 { font-size: 1.02rem; font-weight: 700; }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; align-items: end; height: 180px; margin-top: 1rem; padding-top: 1.4rem; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .5rem; }
.bar-wrap { width: 100%; display: flex; align-items: flex-end; justify-content: center; height: 100%; position: relative; }
.bar { width: 72%; max-width: 42px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--amber), var(--orange)); transition: height .5s cubic-bezier(.4,0,.2,1); position: relative; min-height: 4px; }
.bar.is-active { background: linear-gradient(180deg, var(--orange), var(--red)); }
.chart-value { position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.bar-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.bar-col.is-active .bar-label { color: var(--orange-600); }

.breakdown { margin-top: 1.9rem; }
.breakdown h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .8rem; }
.bd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bd-table th, .bd-table td { padding: .62rem .5rem; text-align: right; }
.bd-table th:first-child, .bd-table td:first-child { text-align: left; }
.bd-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); border-bottom: 2px solid var(--border); font-weight: 700; }
.bd-table tbody tr { border-bottom: 1px solid var(--border); }
.bd-table td:first-child { color: var(--text-muted); font-weight: 500; }
.bd-table tr.is-sub td { font-weight: 700; color: var(--ink); }
.bd-table tr.is-sub { background: var(--surface-2); }
.bd-table tr.is-total td { font-weight: 800; color: var(--orange-600); font-size: .98rem; border-bottom: 0; }
:root[data-theme="dark"] .bd-table tr.is-total td { color: var(--amber); }
.bd-table tr.is-muted td { color: var(--text-faint); }

.disclaimer { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1.6rem; padding: .85rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.disclaimer svg { flex: none; margin-top: 2px; color: var(--orange); }
.disclaimer strong { color: var(--ink); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-grad-soft); color: var(--orange-600); margin-bottom: .9rem; }
:root[data-theme="dark"] .service-icon { color: var(--amber); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.service-card p { color: var(--text-muted); font-size: .9rem; }

/* ---------- Asesor / About ---------- */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } }
.about-card { background: var(--brand-grad); color: #fff; border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--shadow-md); text-align: center; position: relative; overflow: hidden; }
.about-card .watermark { filter: brightness(0) invert(1); opacity: .1; }
.about-card .avatar { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--font-head); font-size: 2rem; font-weight: 800; border: 3px solid rgba(255,255,255,.5); }
.about-card .name { position: relative; z-index: 1; font-size: 1.4rem; font-weight: 800; color: #fff; }
.about-card .role { position: relative; z-index: 1; opacity: .95; font-weight: 600; }
.about-card .years-big { position: relative; z-index: 1; font-family: var(--font-head); font-size: 3rem; font-weight: 800; margin-top: 1rem; line-height: 1; }
.about-copy h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 1rem; }
.about-copy p { color: var(--text-muted); margin-bottom: 1rem; }
.about-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin-top: 1rem; }
.about-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--text); }
.about-list svg { color: var(--orange); flex: none; margin-top: 3px; }

/* ---------- CTA final ---------- */
.cta { background: var(--brand-grad); color: #fff; position: relative; overflow: hidden; }
.cta .watermark { filter: brightness(0) invert(1); opacity: .08; }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.cta p { color: rgba(255,255,255,.95); font-size: 1.1rem; margin: .7rem 0 1.6rem; }
.cta .btn-wa { font-size: 1.1rem; padding: 1rem 1.8rem; }
.cta .phone { display: block; margin-top: 1rem; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { padding: 2.5rem 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-inner img { height: 68px; margin-bottom: .9rem; }
.footer-col h4 { font-size: .95rem; margin-bottom: .7rem; color: var(--ink); }
.footer-col a, .footer-col p { color: var(--text-muted); text-decoration: none; font-size: .9rem; display: block; margin-bottom: .4rem; }
.footer-col a:hover { color: var(--orange-600); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.2rem 0; text-align: center; color: var(--text-faint); font-size: .82rem; }
.dev-credit { display: block; margin-top: .5rem; font-size: .72rem; opacity: .75; }
.dev-credit a { color: inherit; text-decoration: none; font-weight: 600; }
.dev-credit a:hover { color: var(--orange-600); text-decoration: underline; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
.flash { animation: pop .35s ease; }

/* ---------- Modal: PDF personalizado ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 1.2rem; background: rgba(20, 12, 6, .55); backdrop-filter: blur(3px);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-dialog {
  position: relative; width: min(100%, 560px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 4vw, 2rem); margin: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0;
  background: var(--surface-2); color: var(--text-muted); border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--brand-grad-soft); color: var(--orange-600); }
.modal-badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--orange-600); background: var(--brand-grad-soft);
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.modal-dialog h3 { font-size: 1.4rem; font-weight: 800; }
.modal-sub { color: var(--text-muted); font-size: .92rem; margin-top: .3rem; margin-bottom: 1.2rem; }

.cfield { margin-bottom: .9rem; }
.cfield > label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--ink); }
.cfield input[type="text"] {
  width: 100%; border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: .98rem; padding: .65rem .8rem;
  transition: border-color .16s, box-shadow .16s;
}
.cfield input[type="text"]:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); background: var(--surface); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; }
@media (max-width: 480px) { .cgrid { grid-template-columns: 1fr; } }
.cgrid-colors { margin-top: .2rem; }
.color-field { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: .55rem .8rem; }
.color-field > label { margin: 0; }
.color-field input[type="color"] { width: 46px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; background: none; cursor: pointer; padding: 2px; }

.cfield-logo .logo-upload { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#cLogoPreview { max-height: 56px; max-width: 180px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--border); }
.upload-btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  padding: .6rem 1rem; font-weight: 600; font-size: .9rem; color: var(--text-muted);
  transition: border-color .16s, color .16s;
}
.upload-btn:hover { border-color: var(--orange); color: var(--orange-600); }

.modal-actions { display: flex; gap: .7rem; margin-top: 1.4rem; }
.modal-actions .btn { flex: 1; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); width: max-content; max-width: min(90vw, 420px); text-align: center; background: #241d18; color: #fff; padding: .85rem 1.25rem; border-radius: var(--r-md); border-left: 4px solid var(--orange); box-shadow: 0 18px 40px rgba(0,0,0,.45); font-weight: 700; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
