/* ==========================================================
   Sitio público · diseño "Cálido y claro"
   Los colores principales se definen desde el panel (:root en el <head>)
   ========================================================== */
:root {
  --primary: #1F4E8C; --primary-dark: #163A69; --primary-soft: #E8F0FB; --on-primary: #fff;
  --accent: #F4B400; --accent-soft: #FDEFD3; --on-accent: #1E2A3A;
  --wa: #15803D; --wa-dark: #116632;
  --ink: #1E2A3A; --ink-2: #3E4A5C; --ink-3: #556173;
  --bg: #FFFDF8; --surface: #FFFFFF; --warm: #FFF6E3; --line: #EFE8DA;
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --shadow: 0 10px 30px rgba(30, 42, 58, .08);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { flex: 0 0 auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--ink-3); font-size: 16px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-wa-soft { background: #E3F4EC; color: var(--wa-dark); }
.btn-wa-soft:hover { background: #D0ECDD; color: var(--wa-dark); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent); color: var(--on-accent); filter: brightness(.95); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--warm); }
.round-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.round-btn:hover { border-color: var(--primary); color: var(--primary); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary); }
.badge { display: inline-block; background: var(--surface); border: 2px solid #F0DFB8; color: var(--ink-2); font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; }
.badge-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.lead { font-size: 21px; color: var(--ink-2); }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--ink); color: #D3DAE4; font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 639px) { .topbar { display: none; } }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.brand-logo { max-height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 21px; font-weight: 900; }
.brand-text small { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
@media (min-width: 1200px) { .brand-text strong { white-space: nowrap; } }
@media (max-width: 1439px) { .brand-text small { display: none; } }
@media (min-width: 1200px) { .brand { flex: 0 0 auto; } }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Menú: móvil primero (panel lateral) */
.nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); background: var(--surface); z-index: 80; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); visibility: hidden; }
.nav.is-open { transform: none; visibility: visible; }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 24px; font-size: 18px; }
.nav-list { list-style: none; margin: 0; padding: 8px 12px; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.nav-item > a { flex: 1; padding: 16px 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.nav-item.is-active > a { color: var(--primary); }
.sub-toggle { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 0 0 12px 12px; width: 100%; display: none; }
.sub.is-open { display: block; }
.sub a { display: block; padding: 11px 12px; text-decoration: none; color: var(--ink-2); font-weight: 700; border-radius: 10px; }
.sub a:hover { background: var(--warm); color: var(--ink); }
.nav-cta { padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(20, 28, 40, .45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .25s; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
body.nav-lock { overflow: hidden; }
body.nav-lock .site-header { z-index: 90; }
.hide-sm { display: none; }

@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
/* En celular y tablet el WhatsApp ya está en el botón flotante */
@media (max-width: 1199px) { .header-actions .btn-wa { display: none; } }
@media (max-width: 479px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; }
}

@media (min-width: 1200px) {
  .menu-btn, .nav-head, .nav-cta, .nav-backdrop { display: none !important; }
  .nav { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; overflow: visible; background: transparent; flex-direction: row; }
  .nav-list { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav-item { border: 0; flex-wrap: nowrap; }
  .nav-item > a { padding: 12px 12px; font-size: 17px; border-radius: 10px; }
  .nav-item > a:hover { background: var(--warm); }
  .has-sub > a { padding-right: 4px; }
  .sub-toggle { width: 28px; height: 40px; }
  .sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); padding: 8px; display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub.is-open { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Migas ---------- */
.crumbs-bar { background: var(--warm); }
.crumbs-bar + .page-hero { padding-top: 24px; }
.crumbs-bar + .section { padding-top: 32px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; font-size: 15px; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs a { color: var(--ink-3); }

/* ---------- Carrusel ---------- */
.hero-slider { background: var(--warm); padding-bottom: 72px; position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-in { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 24px; }
.slide-title { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; }
.slide-text .lead { max-width: 620px; }
.slide-media { border-radius: var(--r-lg); overflow: hidden; background: #F3E3BF; aspect-ratio: 5 / 4; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: #D9C9A3; transition: .25s; }
.dot.is-active::before { width: 30px; margin-left: -15px; background: var(--primary); }
.i-pause { display: inline-block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.is-paused .i-pause { width: 0; height: 0; border-left: 12px solid currentColor; border-right: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
@media (min-width: 900px) {
  .slide-in { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 56px; }
}

/* ---------- Tarjetas hogar / empresa + cifras ---------- */
.home-paths { margin-top: -56px; position: relative; z-index: 2; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.path-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 2px solid #F0DFB8; border-radius: 24px; padding: 24px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.path-card:hover { border-color: var(--primary); color: var(--ink); transform: translateY(-2px); }
.path-icon { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 18px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.path-card strong { display: block; font-size: 23px; font-weight: 900; }
.path-text { display: block; color: var(--ink-2); font-size: 16px; margin: 4px 0 8px; }
.stats { margin-top: 16px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 24px 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat strong { display: block; font-size: 34px; font-weight: 900; color: var(--primary); line-height: 1.1; }
.stat span { color: var(--ink-3); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-top0 { padding-top: 24px; }
.section-warm { background: var(--warm); }
.section-soft { background: #F7F4EC; }
.section-primary { background: var(--primary); color: var(--on-primary); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--ink-2); max-width: 640px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head-row h2 { margin: 0; }
.empty { color: var(--ink-3); text-align: center; padding: 40px 0; }

/* ---------- Servicios ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #E3D6BA; color: var(--ink); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--warm); }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.service-icon-lg { width: 140px; height: 140px; border-radius: 32px; }
.service-img + .service-body .service-icon { width: 56px; height: 56px; margin-top: -54px; border: 4px solid var(--surface); border-radius: 18px; }
.service-name { font-size: 24px; font-weight: 900; }
.service-probs { color: var(--ink-2); font-size: 16px; flex: 1; }
.brands-strip { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.brands-label { font-weight: 800; color: var(--ink); margin-right: 6px; }
.brand-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 900; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand-chip:hover { border-color: var(--primary); color: var(--primary); }
.brand-chip img { max-height: 30px; width: auto; }
.brand-chip img, .brand-logo-box img { filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease; }
.brand-chip:hover img, .brand-chip:focus-visible img,
.brand-card:hover .brand-logo-box img, .brand-card:focus-visible .brand-logo-box img { filter: none; opacity: 1; }
@media (hover: none) { .brand-chip img, .brand-logo-box img { filter: none; opacity: 1; } }
.brand-note { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: 14px; color: var(--ink-3); }
.detail-main .brand-note { text-align: left; margin-left: 0; }
.brands-more { color: var(--ink-3); font-size: 16px; }

.service-list { display: flex; flex-direction: column; gap: 24px; }
.service-row { display: grid; grid-template-columns: 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.service-row-media { border-radius: var(--r); overflow: hidden; background: var(--warm); display: flex; align-items: center; justify-content: center; min-height: 200px; }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; }
.service-row-text h2 { font-size: 30px; margin-bottom: 8px; }
.service-row-text h2 a { color: var(--ink); text-decoration: none; }
.service-row-text h2 a:hover { color: var(--primary); }
.service-row-text p { color: var(--ink-2); }
@media (min-width: 800px) { .service-row { grid-template-columns: 300px 1fr; align-items: center; padding: 28px; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.chips li { background: var(--warm); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.chips a { color: var(--ink); text-decoration: none; }
.chips li:has(a):hover { background: var(--primary-soft); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step { background: rgba(255,255,255,.09); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step strong { font-size: 23px; }
.step span:last-child { opacity: .88; }
.step-n { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; }

/* ---------- Bloque dividido (empresas) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.split-media { border-radius: 32px; overflow: hidden; background: var(--primary-soft); min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { font-size: clamp(30px, 3.4vw, 40px); }
.checks { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { color: var(--wa); margin-top: 3px; }
.hero-icon { opacity: .9; display: flex; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.05fr; gap: 56px; } .split-media { min-height: 420px; } }

/* ---------- Testimonios (carrusel deslizable) ---------- */
.track-nav { display: flex; align-items: center; gap: 10px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 40px) / 3)); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 16px; scrollbar-width: thin; }
.track > * { scroll-snap-align: start; }
@media (max-width: 899px) { .track { grid-auto-columns: minmax(280px, 85%); } }
.quote-card { margin: 0; background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.stars { color: #B07800; font-size: 22px; letter-spacing: 2px; }
.stars-off { color: #E2D6BC; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #F3E3BF; color: #6B5426; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; object-fit: cover; flex: 0 0 auto; }

/* ---------- Preguntas ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] .faq-ic { transform: rotate(180deg); }
.faq-ic { transition: transform .2s; color: var(--primary); }
.faq-a { padding: 0 24px 20px; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }

/* ---------- Mapa ---------- */
.map-card { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.map-info { padding: 32px; }
.map-info h2 { font-size: 32px; }
.map-frame { position: relative; min-height: 340px; background: #E9E4D8; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-wide { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; margin-bottom: 20px; }
@media (min-width: 900px) { .map-card { grid-template-columns: 420px 1fr; } .map-frame { min-height: 420px; } }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { color: var(--primary); margin-top: 2px; }
.info-list strong { display: block; }
.info-list span { color: var(--ink-2); }
.info-list strong { color: var(--ink); }

/* ---------- Encabezados de página ---------- */
.page-hero { background: var(--warm); padding: 40px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); }
.page-hero-simple .lead { max-width: 760px; }
.page-hero-in { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-hero-media { border-radius: var(--r-lg); overflow: hidden; background: #F3E3BF; min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--primary); aspect-ratio: 4 / 3; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-brand { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.page-hero-brand img { object-fit: contain; max-height: 180px; }
@media (min-width: 900px) { .page-hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* ---------- Detalle (servicio / marca / página) ---------- */
.detail { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 340px; } .detail-side { position: sticky; top: 104px; } }
.detail-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { font-size: 22px; margin: 0; }
.side-card p { margin: 0; color: var(--ink-2); }
.side-card .chips { margin: 0; }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.mini-list li { display: flex; gap: 10px; align-items: center; }
.mini-list .ic { color: var(--wa); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.side-links a:hover { color: var(--primary); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; margin-bottom: 32px; }
.box h2 { font-size: 26px; }
.problem-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.problem-grid a { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--warm); color: var(--ink); text-decoration: none; font-weight: 700; min-height: 52px; }
.problem-grid a:hover { background: #E3F4EC; color: var(--wa-dark); }
.problem-grid .ic { color: var(--wa); }
.prose { font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: 30px; color: var(--ink); margin-top: 1.2em; }
.prose h3 { font-size: 23px; color: var(--ink); margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--warm); border-radius: 0 12px 12px 0; }
.mt { margin-top: 40px; font-size: 28px; }
.mini-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mini-service { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: var(--ink); }
.mini-service:hover { border-color: var(--primary); color: var(--ink); }
.mini-service .service-icon { width: 56px; height: 56px; border-radius: 16px; }
.mini-service small { display: block; color: var(--primary); font-weight: 700; }

/* ---------- Marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.brand-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink); transition: .2s; }
.brand-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.brand-logo-box { height: 110px; border-radius: 16px; background: #FAF7F0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.brand-logo-box img { max-height: 70px; width: auto; object-fit: contain; }
.brand-word { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -.01em; }
.brand-word-xl { font-size: 56px; }
.brand-card-text { color: var(--ink-2); font-size: 16px; flex: 1; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 400px 1fr; gap: 48px; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-tile:hover { border-color: var(--primary); color: var(--ink); }
.contact-tile .ic { color: var(--primary); }
.contact-tile strong { display: block; font-size: 19px; word-break: break-word; }
.contact-tile small { color: var(--ink-3); font-size: 15px; }
.tile-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.tile-wa:hover { background: var(--wa-dark); color: #fff; }
.tile-wa .ic, .tile-wa small { color: #fff; }
.contact-info .info-list { margin-top: 12px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form-card h2 { font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: 16px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #E1D8C6; border-radius: 14px; background: #fff; color: var(--ink); font-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-ok { background: #E3F4EC; color: #0F5130; }
.alert-error { background: #FDE8E6; color: #8A1C12; }

/* ---------- Franja final y pie ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta-text h2 { font-size: clamp(32px, 4vw, 42px); }
.cta-text p { display: flex; gap: 8px; align-items: center; color: #D3DAE4; margin: 4px 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: #141D29; color: #C3CBD8; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-about { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } .footer-about { grid-column: auto; } }
.site-footer h2 { font-size: 17px; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #E0E6EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-footer { margin-bottom: 14px; color: #fff; }
.brand-footer:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { margin-top: 3px; color: var(--accent); }
.socials { flex-direction: row !important; flex-wrap: wrap; gap: 8px 16px !important; margin-top: 12px !important; }
.socials a { font-weight: 700; }
.footer-bottom { border-top: 1px solid #263244; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: #9AA5B6; }
.footer-credit a { color: #E0E6EF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: #fff; }
.big-404 { font-size: 120px; font-weight: 900; color: var(--accent); margin: 0; line-height: 1; }

/* ---------- Chat de WhatsApp ---------- */
.wa-widget { position: fixed; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.wa-right { right: 20px; }
.wa-left { left: 20px; align-items: flex-start; }
.wa-fab { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-panel { width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.wa-panel[hidden] { display: none; }
.wa-head { background: var(--wa); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; }
.wa-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-who { flex: 1; line-height: 1.2; }
.wa-who small { display: block; opacity: .9; font-size: 14px; }
.wa-close { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wa-close:hover { background: rgba(255,255,255,.15); }
.wa-body { background: #EFE7DD; padding: 20px 16px; }
.wa-bubble { background: #fff; border-radius: 0 16px 16px 16px; padding: 12px 14px; font-size: 16px; max-width: 90%; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wa-form { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.wa-form textarea { width: 100%; border: 2px solid #E1D8C6; border-radius: 14px; padding: 10px 12px; resize: none; font-size: 16px; }
.wa-form textarea:focus { border-color: var(--wa); outline: none; }

@media print { .site-header, .topbar, .wa-widget, .cta-band, .site-footer { display: none; } }
@media (min-width: 1200px) and (max-width: 1359px) { .header-actions .hide-sm { display: none; } .nav-item > a { padding-left: 10px; padding-right: 10px; } }
