/* cotizador.sisisolutions.com — same visual system as sisisolutions.ie:
   paper backgrounds, Manrope headings, Inter text, one blue accent and the
   orange reserved for the primary action. */

@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper-bg: #f5f7f2;
  --paper: #fffdf8;
  --ink: #14212b;
  --ink-soft: #314252;
  --muted: #5b6b78;
  --line: rgba(31, 56, 70, 0.14);
  --line-strong: rgba(31, 56, 70, 0.24);
  --accent: #007ac1;
  --accent-deep: #005b8f;
  --accent-tint: #eef6fb;
  --accent-border: #b9d9ee;
  --cta: #c74c00;
  --cta-hover: #a63f00;
  --error: #b3261e;
  --error-tint: #fdf0ef;
  --warn-tint: #fff4e5;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(38, 56, 72, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-bg);
  color: var(--ink);
  font: 400 16px/1.55 "Inter", system-ui, sans-serif;
}

h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { display: block; width: 86px; height: auto; }
.header-link { font-weight: 600; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.header-link:hover { color: var(--accent-deep); text-decoration: underline; }

.dev-banner {
  background: var(--warn-tint); border-bottom: 1px solid #f0c9a4; color: #6b3000;
  font-size: 14px; padding: 10px 16px; text-align: center;
}

/* ---------- Page ---------- */

.page { max-width: 1180px; margin: 0 auto; padding: 32px 16px 120px; }
.page-head { max-width: 720px; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; color: var(--accent-deep);
  font: 700 13px/1 "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.page-head p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.panel + .panel { margin-top: 18px; }
.panel-head { margin-bottom: 18px; }
.panel-head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep);
  font: 700 13px/1 "Inter", sans-serif; vertical-align: 2px;
}

/* ---------- Fields ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .label { font-weight: 600; font-size: 14px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 122, 193, 0.2); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.field-error { color: var(--error); font-size: 13px; font-weight: 600; }
.field-error:empty { display: none; }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; padding: 0; margin: 0; }
.plan { position: relative; }
.plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer;
}
.plan-name { font: 800 17px/1.2 "Manrope", sans-serif; }
.plan-price { font: 800 22px/1.2 "Manrope", sans-serif; margin-top: 6px; }
.plan-price small { font: 500 13px/1 "Inter", sans-serif; color: var(--muted); }
.plan-per-month { color: var(--muted); font-size: 13px; }
.plan-specs { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; color: var(--ink-soft); }
.plan input:checked + .plan-card { border: 2px solid var(--accent); padding: 15px; background: var(--accent-tint); }
.plan input:focus-visible + .plan-card { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Counters */
.counters { display: grid; gap: 14px; }
.counter-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.counter-row:first-child { border-top: 0; padding-top: 0; }
.counter-text { display: flex; flex-direction: column; gap: 2px; }
.counter-text .hint { max-width: 46ch; }
.counter { display: flex; align-items: center; gap: 6px; flex: none; }
.counter button {
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: 700 20px/1 "Inter", sans-serif; cursor: pointer;
}
.counter button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.counter button:disabled { opacity: 0.4; cursor: not-allowed; }
.counter input { width: 72px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add-ons */
.addons { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.addon {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.addon input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.addon-name { font-weight: 600; }
.addon-desc { display: block; color: var(--muted); font-size: 13px; }
.addon-price { font-weight: 600; font-size: 14px; white-space: nowrap; text-align: right; }
.addon-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.addon:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.addon.is-disabled { cursor: not-allowed; opacity: 0.6; }
.addon.is-disabled input { cursor: not-allowed; }

.char-count { align-self: flex-end; color: var(--muted); font-size: 13px; }

/* Submit area */
.submit-panel { display: flex; flex-direction: column; gap: 16px; }
.privacy { font-size: 14px; color: var(--ink-soft); }
.missing {
  padding: 12px 14px; border-radius: 10px; background: var(--error-tint); color: var(--error);
  font-size: 14px; font-weight: 600;
}
.missing ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.missing a { color: var(--error); }
.form-error {
  padding: 12px 14px; border-radius: 10px; background: var(--error-tint); color: var(--error); font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 800 16px/1 "Manrope", sans-serif; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 12px 24px rgba(101, 43, 28, 0.2); }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-primary[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.btn-secondary { background: #fff; color: var(--accent-deep); border-color: var(--accent-border); }
.btn-secondary:hover { border-color: var(--accent); }

/* ---------- Summary ---------- */

.summary { position: sticky; top: 20px; }
.summary h2 { margin-bottom: 4px; }
.summary-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.summary-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-lines .qty { color: var(--muted); }
.summary-lines .amount { font-weight: 600; white-space: nowrap; }
.summary-lines .discount .amount { color: var(--accent-deep); }
.summary-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

.total {
  margin-top: 16px; padding: 16px; border-radius: 12px;
  background: var(--accent-tint); border: 1px solid var(--accent-border);
}
.total-label { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.total-value { font: 800 34px/1.1 "Manrope", sans-serif; margin: 4px 0; }
.total-note { font-size: 13px; color: var(--ink-soft); }

.included { margin-top: 18px; }
.included h3 { margin-bottom: 8px; }
.included ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.included li { margin: 3px 0; }

/* Partner */
.partner-bar {
  margin: -8px 0 22px; padding: 12px 16px; border-radius: 12px;
  background: var(--accent-tint); border: 1px solid var(--accent-border); color: var(--ink-soft); font-size: 15px;
}
.partner-gate { max-width: 640px; }
.partner-gate p { margin-top: 10px; color: var(--ink-soft); }

/* Extension field under the "otra extensión" counter */
.extension-field { margin-top: -4px; padding-bottom: 14px; }
.extension-field input { max-width: 320px; }

.plan-highlights { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-soft); }
.plan-highlights li::before { content: "·"; margin-right: 6px; color: var(--accent); font-weight: 700; }

.summary-lines .pending .amount { color: var(--muted); font-weight: 500; }

/* Mobile bar with the live total */
.mobile-total { display: none; }

/* ---------- Confirmation ---------- */

.confirmation { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 24px; }
.confirmation h2 { font-size: 28px; margin: 6px 0 12px; }
.confirmation p { color: var(--ink-soft); margin-bottom: 10px; }
.confirmation .offer-number { font: 700 18px/1.4 "Inter", sans-serif; color: var(--accent-deep); }
.confirmation .btn { margin-top: 16px; }

/* ---------- Home ---------- */

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.service-card:hover { border-color: var(--accent); }
.service-card p { color: var(--ink-soft); }
.service-card .card-cta { color: var(--accent-deep); font-weight: 700; margin-top: auto; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 20px 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
}
.site-footer a { color: var(--ink-soft); }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .mobile-total {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 24px rgba(38, 56, 72, 0.1);
  }
  .mobile-total strong { font: 800 22px/1.1 "Manrope", sans-serif; display: block; }
  .mobile-total span { font-size: 12px; color: var(--muted); }
  .mobile-total a { font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 640px) {
  .page { padding-top: 22px; }
  .panel { padding: 18px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .counter-row { flex-direction: column; align-items: stretch; }
  .counter { justify-content: flex-start; }
  .addon { grid-template-columns: 24px 1fr; }
  .addon-price { grid-column: 2; text-align: left; }
  .addon-price small { display: inline; margin-left: 6px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
