:root {
  --primary: #392870;
  --accent: #c8156a;
  --accent-brand: #e7257f;
  --g1: #5f007e;
  --g2: #d6006f;
  --gray: #e5e5e5;
  --lilac: #e1d9ff;
  --bg: #f6f4fb;
  --text: #1f1a33;
  --muted: #5f5978;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(57, 40, 112, 0.06);
  --shadow-lg: 0 12px 32px rgba(57, 40, 112, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; }
p { margin: 0 0 0.8em; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.grad { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 56px 0; }
.section h2, .panel h2, .panel h3 { color: var(--primary); margin: 0 0 12px; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stack > * + * { margin-top: 14px; }

.btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--lilac); color: var(--primary); }
.btn.light { background: #fff; color: var(--primary); }
.btn.light:hover { filter: none; background: var(--lilac); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  box-shadow: 0 4px 18px rgba(57, 40, 112, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0.92;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); opacity: 1; }
.btn.clientes {
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.site-nav .phone-link { font-weight: 700; }

.hero {
  position: relative;
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: #392870 center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(95, 0, 126, 0.92) 0%, rgba(57, 40, 112, 0.72) 46%, rgba(214, 0, 111, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 88px 0 64px; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; margin: 0 0 8px; max-width: 40rem; }
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.16); padding: 4px 10px; border-radius: 999px; }
.hero .actions .btn.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }
.page-hero { min-height: 0; }
.page-hero .hero-inner { padding: 48px 0 42px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.crumbs { position: relative; z-index: 1; margin: 0 0 10px; font-size: 0.85rem; }
.crumbs a { color: #fff; }

.band {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.card, .panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.kpi .label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.kpi .value { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin: 4px 0; }
.kpi .value a { text-decoration: none; }
.kpi.hl {
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.kpi.hl .label, .kpi.hl .value, .kpi.hl a { color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cards-5 .card:nth-child(-n+3) { grid-column: span 2; }
.cards-5 .card:nth-child(n+4) { grid-column: span 3; }

.num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lilac);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 10px;
}
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.card .more:hover { color: var(--accent); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: center; }
.media {
  border-radius: 18px;
  min-height: 280px;
  background: #ddd center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; min-height: 280px; }

.feature { display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: center; }
.feature img { width: 148px; height: 112px; object-fit: cover; border-radius: 12px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; }
.checks li {
  position: relative;
  padding: 7px 0 7px 28px;
  border-top: 1px solid var(--gray);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: inset 0 0 0 4px var(--primary);
}
.link-list { list-style: none; padding: 0; margin: 12px 0 0; }
.link-list li { border-top: 1px solid var(--gray); }
.link-list a { display: block; padding: 10px 0; font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--accent); }

.service { scroll-margin-top: 88px; }
.service + .service { margin-top: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px;
  border-bottom: 2px solid var(--gray);
}
td { padding: 10px; border-bottom: 1px solid var(--gray); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--lilac);
  color: var(--primary);
}

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
blockquote {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
blockquote p { margin: 0; }
.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.rating b { font-size: 1.8rem; color: var(--primary); }

details.faq {
  background: #fff;
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 0;
}
details.faq p { margin: 0 0 14px; }

.map {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gray);
}

.site-footer { color: #fff; background: var(--primary); padding: 42px 0 18px; margin-top: 20px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer img { height: 38px; width: auto; margin-bottom: 12px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 26px;
  padding-top: 14px;
  font-size: 0.85rem;
}
.comerciales { font-size: 0.8rem; opacity: 0.75; font-weight: 500; }
.comerciales:hover { opacity: 1; }
address { font-style: normal; }

.empty {
  text-align: center;
  padding: 28px 18px;
}
.empty h1 { color: var(--primary); }

@media (max-width: 980px) {
  .band, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .quotes, .price-grid, .split { grid-template-columns: 1fr; }
  .cards-5 { grid-template-columns: 1fr 1fr; }
  .cards-5 .card, .cards-5 .card:nth-child(-n+3), .cards-5 .card:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 64px; position: relative; }
  .brand img { height: 30px; }
  .btn.clientes { margin-left: auto; padding: 8px 12px; font-size: 0.82rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    background: #4a1578;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .hero { min-height: 440px; }
  .band { margin-top: 16px; }
}
@media (max-width: 640px) {
  .band, .grid-4, .footer-grid, .cards-5, .feature { grid-template-columns: 1fr; }
  .feature img { width: 100%; height: 180px; }
  .section { padding: 40px 0; }
  .card, .panel, blockquote { padding: 16px; }
  .footer-base { flex-direction: column; }
}
