/* ==========================================================
   Miguelina Rosario · Accountant & Bookkeeper — site.css
   Base compartida por todas las páginas (marca 2026).
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=Mrs+Saint+Delafield&display=swap');

:root {
  --red: #D22630;        /* Rojo MRC — máximo 10 % */
  --red-dark: #B01F28;   /* hover */
  --red-soft: #FBE9EA;   /* fondos suaves de íconos */
  --black: #171717;      /* negro editorial */
  --text-2: #666B70;     /* gris de lectura */
  --surface: #F5F6F7;    /* gris de superficie */
  --border: #E5E7EB;     /* gris de bordes */
  --white: #FFFFFF;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --script: 'Mrs Saint Delafield', cursive;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--black); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h4, h5 { font-family: var(--sans); font-weight: 700; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: 680px; }
.section { padding: 5rem 0; }
.section.alt { background: var(--surface); }
.tag { display: block; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .75rem; }
.h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.lead { color: var(--text-2); font-size: 1.05rem; line-height: 1.75; }
.muted { color: var(--text-2); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 8px; font-family: var(--sans); font-weight: 700; font-size: .92rem; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-line { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-line:hover { background: var(--red-soft); }
.btn-ghost { background: var(--white); color: var(--black); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--black); }
.link-arrow { font-weight: 700; font-size: .92rem; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Menú ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.nav-logo img { height: 58px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--black); font-size: .95rem; font-weight: 600; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
.lang-sw { display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--border); }
.lang-sw button { background: none; border: none; padding: .2rem .15rem; font: inherit; color: var(--text-2); cursor: pointer; }
.lang-sw button.on { color: var(--red); }
.nav-menu { display: none; background: none; border: none; font-size: 1.6rem; color: var(--black); cursor: pointer; }
@media (max-width: 860px) {
  .nav-in { height: 70px; }
  .nav-logo img { height: 46px; }
  .nav-menu { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: .5rem var(--gutter) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-right { gap: 1rem; }
  .nav-right .btn { padding: .6rem 1rem; font-size: .82rem; }
}
@media (max-width: 420px) { .nav-right .btn { display: none; } }

/* ---------- Pie de página ---------- */
.foot-line { height: 2px; background: var(--red); max-width: var(--max); margin: 0 auto; }
.footer { background: var(--black); color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.foot-logo { height: 72px; width: auto; margin-bottom: 1rem; }
.foot-name { color: var(--white); font-weight: 700; }
.foot-desc { font-size: .9rem; margin-top: .25rem; }
.foot-quote { font-size: .9rem; margin-top: .9rem; max-width: 300px; color: rgba(255,255,255,.6); }
.footer h5 { color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.75); font-size: .92rem; }
.footer a:hover { color: var(--white); }
.foot-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.foot-contact i { color: var(--red); font-size: 1.1rem; margin-top: .15rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; }
.foot-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot-legal a { font-size: .82rem; }
.foot-soc { display: flex; gap: 1rem; }
.foot-soc a { font-size: 1.25rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Tarjetas e íconos ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.ico { width: 46px; height: 46px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------- Banner de página interior ---------- */
.page-hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 1rem; }
.page-hero h1 em { color: var(--red); }
.page-hero .lead { max-width: 640px; }

.check-list { list-style: none; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D22630' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

.cta-band { text-align: center; padding: 5rem 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.cta-band p { color: var(--text-2); margin-bottom: 1.75rem; }

/* Accesibilidad */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Services: recuadros ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; color: var(--black); transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.svc-card .ico { margin-bottom: 1.25rem; }
.svc-card .kicker { color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; }
.svc-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.svc-card p { color: var(--text-2); font-size: .93rem; line-height: 1.6; flex: 1; }
.svc-card .go { color: var(--red); font-size: 1.25rem; margin-top: 1.25rem; }
.svc-card.dark { background: var(--black); border-color: var(--black); color: var(--white); }
.svc-card.dark p { color: rgba(255,255,255,.72); }
.svc-card.dark .ico { background: rgba(255,255,255,.08); color: var(--white); }
.svc-card.dark .btn { align-self: flex-start; margin-top: 1.25rem; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas de servicio ---------- */
.price-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.price-pill { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; background: var(--white); }
.price-pill b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--black); line-height: 1.1; }
.price-pill span { color: var(--text-2); font-size: .88rem; }
.price-pill.hl { border-color: var(--red); }
.price-pill.hl b { color: var(--red); }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.block h3 { font-size: 1.25rem; margin: 1rem 0 .9rem; }
.block .check-list { font-size: .95rem; color: var(--text-2); }
.note { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border-left: 3px solid var(--red); border-radius: 8px; padding: 1.1rem 1.25rem; font-size: .95rem; }
.note i { color: var(--red); font-size: 1.3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* ---------- Paquetes mensuales ---------- */
.pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; }
.pkg.pop { border: 2px solid var(--red); box-shadow: 0 12px 30px rgba(210,38,48,.08); }
.pkg .flag { position: absolute; top: -13px; left: 1.6rem; background: var(--red); color: var(--white); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 100px; }
.pkg h3 { font-size: 1.45rem; }
.pkg .for { color: var(--text-2); font-size: .9rem; min-height: 3.2em; margin: .4rem 0 1.25rem; }
.pkg .amt { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.pkg .amt small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--text-2); }
.pkg .facts { list-style: none; border-top: 1px solid var(--border); margin: 1.4rem 0; padding-top: 1.2rem; display: grid; gap: .55rem; font-size: .92rem; }
.pkg .facts li { display: flex; gap: .55rem; }
.pkg .facts i { color: var(--red); }
.pkg .btn { margin-top: auto; width: 100%; }
@media (max-width: 1100px) { .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.cmp th, .cmp td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { background: var(--surface); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.cmp thead th.pop { color: var(--red); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .grp td { background: var(--surface); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-align: left; }
.cmp .yes { color: var(--red); font-size: 1.1rem; }
.cmp .no { color: #B9BDC2; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.incl .item { display: flex; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 700; font-size: .93rem; }
.blocks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .blocks.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blocks.four { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.form-page { padding: 3.5rem 0 5rem; background: var(--surface); }
.form-head { max-width: 960px; margin: 0 auto 2rem; }
.form-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .6rem; }
.stepper { max-width: 960px; margin: 0 auto 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; position: relative; }
.stepper::before { content: ""; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.stepper li { position: relative; text-align: center; font-size: .82rem; color: var(--text-2); }
.stepper li .n { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; font-weight: 700; position: relative; z-index: 1; }
.stepper li.done .n { border-color: var(--red); color: var(--red); }
.stepper li.now .n { background: var(--red); border-color: var(--red); color: var(--white); }
.stepper li.now { color: var(--black); font-weight: 700; }
.form-card { max-width: 960px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; }
.form-card .step { display: none; } .form-card .step.active { display: block; }
.step-head { margin-bottom: 1.75rem; }
.step-head h2 { font-size: 1.6rem; margin-bottom: .35rem; }
.step-head h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--red); margin-top: .6rem; }
.step-head p { color: var(--text-2); font-size: .95rem; }
.form-card .field { margin-bottom: 1.15rem; }
.form-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-card label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: var(--black); }
.form-card .req { color: var(--red); }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--sans); font-size: .95rem; color: var(--black); background: var(--white); outline: none; transition: border-color .2s; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--red); }
.form-card input.err, .form-card select.err, .form-card textarea.err { border-color: var(--red); background: var(--red-soft); }
.form-card .err-msg { color: var(--red); font-size: .8rem; margin-top: .25rem; display: none; }
.form-card .field.show-err .err-msg { display: block; }
.form-card textarea { min-height: 100px; resize: vertical; }
.cb-group { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin-top: .4rem; }
.cb-item { display: flex !important; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .92rem !important; font-weight: 400 !important; line-height: 1.5; }
.cb-item input { width: 17px !important; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); padding: 0 !important; }
.rd-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.rd-pill { position: relative; }
.rd-pill input { position: absolute; opacity: 0; width: 0 !important; height: 0; }
.rd-pill label { padding: .5rem 1.05rem; border: 1.5px solid var(--border); border-radius: 100px; font-weight: 400 !important; cursor: pointer; margin: 0 !important; transition: all .2s; }
.rd-pill input:checked + label { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700 !important; }
.disclaimer { background: var(--surface); border-radius: 10px; padding: 1.2rem 1.35rem; font-size: .92rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.25rem; }
.disclaimer strong { color: var(--black); }
.nav-btns { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.success { text-align: center; padding: 2rem 0; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 2rem; }
.success h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.success p { color: var(--text-2); max-width: 460px; margin: 0 auto 1rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot { max-width: 960px; margin: 1.25rem auto 0; font-size: .85rem; color: var(--text-2); text-align: center; }
@media (max-width: 700px) {
  .form-card { padding: 1.5rem; }
  .form-card .field-row, .cb-group { grid-template-columns: 1fr; }
  .stepper li span.t { display: none; }
}

/* ---------- Cotizador ---------- */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.calc-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; display: grid; gap: 1.6rem; }
.calc-field > label:first-child { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; margin-bottom: .6rem; }
.calc-field > label b { color: var(--red); font-size: 1.05rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label { border: 1.5px solid var(--border); border-radius: 10px; padding: .75rem 1rem; cursor: pointer; font-weight: 700; font-size: .95rem; transition: all .2s; }
.seg label small { display: block; font-weight: 400; color: var(--text-2); font-size: .8rem; margin-top: .15rem; }
.seg input:checked + label { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.seg input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--red); }
.range-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-2); }
.cb-line { display: flex; gap: .6rem; align-items: center; font-size: .94rem; margin-top: .45rem; cursor: pointer; }
.cb-line input { width: 17px; height: 17px; accent-color: var(--red); }
.calc-result { position: sticky; top: 100px; background: var(--black); color: var(--white); border-radius: 16px; padding: 2rem; }
.calc-price { font-family: var(--serif); font-weight: 600; font-size: 3.4rem; line-height: 1.1; margin: .25rem 0 .5rem; }
.calc-result p { color: rgba(255,255,255,.7); font-size: .92rem; margin-bottom: 1.25rem; }
.calc-free { display: flex; gap: .6rem; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1.25rem; }
.calc-req { display: grid; gap: .6rem; margin-bottom: .9rem; }
.calc-req b { font-size: .95rem; }
.calc-req input { width: 100%; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); font: inherit; }
.calc-req input::placeholder { color: rgba(255,255,255,.6); }
.calc-result .calc-note { color: var(--white); font-weight: 700; margin: -.25rem 0 .5rem; }
.calc-req-msg { color: rgba(255,255,255,.85); font-size: .85rem; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

.foot-bottom .ver { margin-left: .5rem; opacity: .45; font-size: .72rem; }
