/* ============================================================================
   INTELLI-DENTAL · Sitio público — tema «Clarkson»
   ----------------------------------------------------------------------------
   Reemplaza al tema Génesis en el SITIO y en el PORTAL (los dos cargan este
   archivo y los dos usan `body.hs`). Mismo inventario de selectores `.hs-*`
   que la versión anterior: no se borró ni una regla, sólo cambiaron los
   valores. Así el portal se re-viste solo y ninguna pantalla se queda desnuda.

   El lenguaje visual viene de clarksondentist.com, medido con getComputedStyle:
   marfil de fondo, arena y menta para alternar, verde casi negro para las
   secciones oscuras, y un acento teal. Serif para todo título.

   NADA DE SOMBRAS. El relieve lo da un anillo de 1px: por eso `--hs-shadow`
   ya no es una sombra sino `0 0 0 1px var(--hs-border)`. Las reglas que
   heredaron `box-shadow: var(--hs-shadow)` siguen funcionando y ahora dibujan
   el borde fino del diseño nuevo, sin tener que tocarlas una por una.

   El acento real sigue inyectándose desde el layout con site_setting('site_accent'),
   así que Enrique lo cambia desde el panel «Sitio web» sin tocar CSS.
   Iconos: sprite SVG propio (partials/icons.php). Sin CDN de iconos.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Libre+Franklin:wght@400;500;600;700&display=swap");

:root {
    --hs-accent:      #1f6f68;   /* teal — lo pisa el layout con el ajuste real */
    --hs-accent-d:    #14201d;
    --hs-accent-soft: #e9f1ef;   /* menta */
    --hs-ink:         #16211e;   /* títulos */
    --hs-deep:        #14201d;   /* secciones oscuras, pie y CTA */
    --hs-text:        #4b564f;
    --hs-muted:       #7a857e;
    --hs-bg:          #fffdf9;   /* marfil */
    --hs-soft:        #f6f4ee;   /* arena */
    --hs-border:      #ece7db;   /* línea fina */
    --hs-line-2:      #d8d2c4;   /* borde de control (botón, input) */
    --hs-on-ink:      #cdd8d3;   /* texto sobre oscuro */
    --hs-on-ink-dim:  #8fa09a;
    --hs-on-deep:     #ffffff;   /* títulos y enlaces fuertes sobre --hs-deep */
    --hs-deep-line:   rgba(255, 255, 255, .1);
    --hs-radius:      16px;
    --hs-radius-sm:   11px;
    --hs-shadow:      0 0 0 1px var(--hs-border);
    --hs-shadow-lg:   0 14px 34px rgba(20, 32, 29, .07), 0 0 0 1px var(--hs-border);
    --hs-font:        "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --hs-head:        "Newsreader", Georgia, "Times New Roman", serif;
    --hs-title:       "Newsreader", Georgia, "Times New Roman", serif;
    --hs-green:       #1f7a4d;
    --hs-amber:       #d99b3e;
    --hs-ease:        cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

body.hs {
    margin: 0;
    background: var(--hs-bg);
    color: var(--hs-text);
    font-family: var(--hs-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.hs h1, body.hs h2, body.hs h3, body.hs h4 {
    font-family: var(--hs-head);
    color: var(--hs-ink);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.012em;
    margin: 0;
}

body.hs a { color: var(--hs-accent); text-decoration: none; }
body.hs a:hover { text-decoration: underline; }
body.hs img { max-width: 100%; display: block; }
body.hs p { margin: 0 0 1em; }
body.hs p:last-child { margin-bottom: 0; }

svg.icon {
    flex: 0 0 auto; width: 20px; height: 20px;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
    vertical-align: -.22em;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.hs-container { width: min(100% - 64px, 1180px); margin-inline: auto; }
.hs-section { padding: 112px 0; }
.hs-section.soft { background: var(--hs-soft); }
.hs-section.tight { padding: 72px 0; }

/* El antetítulo es una etiqueta en versalitas, no una píldora. La versión de
   píldora vive abajo, sólo dentro del hero. */
.hs-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--hs-accent); font-size: 12.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}

/* Encabezado de sección ALINEADO A LA IZQUIERDA. Es parte del layout que a
   Enrique le gustó: el original no centra ni un título. */
.hs-sec-head { max-width: 62ch; margin: 0 0 52px; text-align: left; }
body.hs .hs-sec-head h2 { font-size: clamp(29px, 3.4vw, 40px); margin-bottom: 18px; }
.hs-sec-head p { color: var(--hs-text); font-size: 17.5px; line-height: 1.68; margin: 0; }
.hs-sec-head.left { margin-inline: 0; text-align: left; }


/* ----------------------------------------------------------------------------
   POR QUÉ TANTO `body.hs` DELANTE DE LOS TÍTULOS
   El reset de arriba —`body.hs h1, body.hs h2, …  { margin: 0 }`— tiene
   especificidad (0,1,2) y le gana a cualquier `.hs-loquesea h2`, que es (0,1,1).
   Resultado: los márgenes por sección NUNCA se aplicaban y todos los títulos
   salían pegados a su párrafo. Calificando la regla de sección con `body.hs`
   sube a (0,2,2) y por fin manda. Lo mismo pasa con el color, y por eso el
   título del cierre y los encabezados del pie salían invisibles sobre oscuro.
   Si agregas un título nuevo con margen o color propio, califícalo igual.
   ---------------------------------------------------------------------------- */

/* ---------------------------------------------------------------- botones */
.hs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; padding: 0 24px; border: 0; border-radius: var(--hs-radius-sm);
    font-family: var(--hs-font); font-size: 15px; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .18s var(--hs-ease), color .18s var(--hs-ease),
                border-color .18s var(--hs-ease), filter .18s var(--hs-ease);
}
.hs-btn:hover { text-decoration: none; }
.hs-btn svg.icon { transition: transform .18s var(--hs-ease); }
/* `body.hs a` gana por especificidad a `.hs-btn-*`, así que los colores de
   texto de los botones se declaran con el mismo peso. */
body.hs .hs-btn-primary, body.hs .hs-btn-dark, body.hs .hs-btn-light,
body.hs .hs-btn-primary:hover, body.hs .hs-btn-dark:hover, body.hs .hs-btn-light:hover { color: #fff; }
body.hs .hs-btn-dark, body.hs .hs-btn-light, body.hs .hs-btn-dark:hover, body.hs .hs-btn-light:hover { color: var(--hs-on-deep); }
body.hs .hs-btn-ghost { color: var(--hs-ink); }
body.hs .hs-btn-ghost:hover { color: var(--hs-ink); }
.hs-btn-primary { background: var(--hs-accent); color: #fff; }
.hs-btn-primary:hover { color: #fff; filter: brightness(.9); }
.hs-btn-dark { background: var(--hs-deep); color: var(--hs-on-deep); }
.hs-btn-dark:hover { color: #fff; filter: brightness(1.35); }
.hs-btn-ghost { background: transparent; color: var(--hs-ink); border: 1px solid var(--hs-line-2); }
.hs-btn-ghost:hover { background: #fff; border-color: var(--hs-ink); }
.hs-btn-light { background: transparent; color: var(--hs-on-deep); border: 1px solid var(--hs-deep-line); }
.hs-btn-light:hover { color: var(--hs-on-deep); background: var(--hs-deep-line); border-color: var(--hs-on-ink-dim); }
.hs-btn-sm { height: 42px; padding: 0 20px; font-size: 13.5px; border-radius: 9px; }
.hs-btn-wide { width: 100%; }

/* ------------------------------------------------------------ barra superior */
/* Franja de datos que se va con el scroll; el encabezado se queda pegado.
   Es exactamente el remate del sitio original. */
.hs-topbar { background: var(--hs-deep); color: var(--hs-on-ink); font-size: 13.5px; }
.hs-topbar .hs-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-block: 9px; line-height: 1.4;
}
.hs-topbar-side { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hs-topbar span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hs-topbar svg.icon { width: 14px; height: 14px; opacity: .6; }
body.hs .hs-topbar a { color: var(--hs-on-deep); font-weight: 700; }
body.hs .hs-topbar a:hover { color: var(--hs-accent); text-decoration: none; }

/* ---------------------------------------------------------------- cabecera */
.hs-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 253, 249, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hs-border);
}
.hs-header .hs-container { display: flex; align-items: center; gap: 24px; height: 74px; }
.hs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.hs-logo:hover { text-decoration: none; }
.hs-logo > span:last-child { min-width: 0; }
.hs-logo-mark {
    display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: var(--hs-radius-sm); color: var(--hs-accent); background: var(--hs-accent-soft);
}
.hs-logo-mark svg.icon { width: 23px; height: 23px; }
.hs-logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hs-logo b {
    display: block; font-family: var(--hs-head); font-size: 20px; font-weight: 600;
    color: var(--hs-ink); line-height: 1.1; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-logo small {
    display: block; font-size: 10.5px; color: var(--hs-muted); font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Navegación sin píldoras: subrayado fino que crece desde la izquierda. */
.hs-nav { display: flex; align-items: center; gap: 24px; }
.hs-nav a {
    position: relative; padding: 6px 0; border-radius: 0;
    color: #3a453f; font-size: 15px; font-weight: 400; text-decoration: none;
    transition: color .16s var(--hs-ease);
}
.hs-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--hs-accent); transform: scaleX(0); transform-origin: left;
    transition: transform .22s var(--hs-ease);
}
.hs-nav a:hover { background: transparent; color: var(--hs-ink); text-decoration: none; }
.hs-nav a:hover::after { transform: scaleX(1); }
.hs-nav a.active { color: var(--hs-ink); background: transparent; font-weight: 600; }
.hs-nav a.active::after { transform: scaleX(1); }

.hs-head-actions { display: flex; align-items: center; gap: 12px; }
.hs-head-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--hs-ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.hs-head-phone svg.icon { width: 17px; height: 17px; color: var(--hs-accent); }
.hs-head-phone:hover { color: var(--hs-accent); text-decoration: none; }
.hs-burger {
    display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
    border: 1px solid var(--hs-line-2); border-radius: 10px;
    background: transparent; color: var(--hs-ink); cursor: pointer;
}

/* -------------------------------------------------------------------- hero */
.hs-hero {
    position: relative; overflow: hidden; background: var(--hs-bg);
    padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.hs-hero::before { content: none; }
.hs-hero-grid {
    position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px; align-items: center;
}
/* En el hero el antetítulo sí es píldora de menta, como el original. */
.hs-hero .hs-eyebrow {
    background: var(--hs-accent-soft); border-radius: 999px;
    padding: 9px 16px; margin-bottom: 22px;
}
body.hs .hs-hero h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.05; letter-spacing: -.018em; margin-bottom: 18px; }
.hs-hero .lead { font-size: 17.5px; line-height: 1.68; color: var(--hs-text); margin-bottom: 30px; max-width: 52ch; }
.hs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hs-hero-note {
    display: flex; align-items: center; gap: 9px; color: var(--hs-muted); font-size: 14.5px;
    padding-top: 24px; border-top: 1px solid var(--hs-border);
}
.hs-hero-note svg.icon { width: 17px; height: 17px; color: var(--hs-accent); }

.hs-hero-art { position: relative; }
.hs-hero-art .frame {
    position: relative; overflow: hidden; border-radius: 20px;
    aspect-ratio: 4 / 5; background: linear-gradient(145deg, #dce7e3, #ede7da 55%, #cfdcd7);
    box-shadow: none;
}
.hs-hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hs-hero-badge {
    position: absolute; left: -22px; bottom: 34px;
    display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px;
    padding: 15px 20px 15px 15px; border-radius: var(--hs-radius);
    background: var(--hs-bg); box-shadow: var(--hs-shadow-lg); max-width: 268px;
}
.hs-hero-badge span.ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hs-accent-soft); color: var(--hs-accent); }
.hs-hero-badge b { display: block; font-family: var(--hs-head); font-size: 19px; font-weight: 600; color: var(--hs-ink); line-height: 1.15; }
.hs-hero-badge small { color: var(--hs-muted); font-size: 12.5px; }

/* -------------------------------------------------------------- confianza */
.hs-trust { border-block: 1px solid var(--hs-border); background: var(--hs-bg); }
.hs-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 30px 0; }
.hs-trust-item { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; color: var(--hs-text); }
.hs-trust-item svg.icon { width: 20px; height: 20px; color: var(--hs-accent); }

/* -------------------------------------------------------------- servicios */
.hs-serv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hs-serv {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px 26px 26px; border-radius: var(--hs-radius);
    background: var(--hs-bg); border: 1px solid var(--hs-border); text-decoration: none;
    transition: transform .2s var(--hs-ease), border-color .2s var(--hs-ease), box-shadow .2s var(--hs-ease);
}
.hs-serv:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-lg); border-color: var(--hs-accent); text-decoration: none; }
.hs-serv .ic {
    display: grid; place-items: center; width: 50px; height: 50px;
    border-radius: 14px; background: var(--hs-accent-soft); color: var(--hs-accent);
}
.hs-serv .ic svg.icon { width: 25px; height: 25px; }
body.hs .hs-serv h3 { font-family: var(--hs-title); font-size: 20px; font-weight: 600; }
.hs-serv p { color: var(--hs-text); font-size: 14.5px; line-height: 1.6; margin: 0; }
.hs-serv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: auto; padding-top: 12px; }
.hs-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--hs-soft); color: var(--hs-muted);
    font-size: 12.5px; font-weight: 600;
}
.hs-chip.price { background: var(--hs-accent-soft); color: var(--hs-accent); }
/* La liga «Ver detalle» baja siempre a su propio renglon: con las fichas de
   precio y duracion al lado, unas veces cabia y otras no, y las tarjetas de
   una misma fila quedaban desalineadas. */
.hs-serv-more { display: inline-flex; align-items: center; gap: 7px; color: var(--hs-accent); font-weight: 600; font-size: 14px; flex: 1 0 100%; padding-top: 2px; }
.hs-serv:hover .hs-serv-more svg.icon { transform: translateX(3px); }
.hs-serv-more svg.icon { width: 16px; height: 16px; transition: transform .18s var(--hs-ease); }
.hs-sec-foot { margin-top: 40px; text-align: left; }

/* --------------------------------------------------------------- nosotros */
.hs-about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hs-about-art { position: relative; }
.hs-about-art .frame {
    overflow: hidden; border-radius: 20px; aspect-ratio: 5 / 4;
    background: linear-gradient(145deg, #dce7e3, #ede7da 55%, #cfdcd7); box-shadow: none;
}
.hs-about-art .frame img { width: 100%; height: 100%; object-fit: cover; }
body.hs .hs-about h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 22px; }
.hs-about p { font-size: 16.5px; line-height: 1.7; }
.hs-check { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.hs-check li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-size: 14.5px; color: var(--hs-text); font-weight: 400; line-height: 1.5; }
.hs-check li svg.icon { width: 18px; height: 18px; padding: 0; margin-top: 3px; border-radius: 0; background: none; color: var(--hs-accent); stroke-width: 2.2; }

/* ---------------------------------------------------------------- proceso */
/* Sin tarjetas: cada paso es un renglón con línea fina arriba y un número
   grande en serif. Es el bloque «cómo funciona» del sitio original. */
.hs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; position: relative; }
.hs-step { position: relative; padding: 26px 0 0; border-radius: 0; background: transparent; box-shadow: none; border-top: 1px solid rgba(22, 33, 30, .12); }
.hs-step .num {
    display: block; width: auto; height: auto; margin-bottom: 14px;
    border-radius: 0; background: none; color: var(--hs-accent);
    font-family: var(--hs-font); font-weight: 600; font-size: 13px; letter-spacing: .06em;
    box-shadow: none;
}
body.hs .hs-step h3 { font-family: var(--hs-title); font-size: 20px; font-weight: 600; margin-bottom: 9px; }
.hs-step p { font-size: 14.5px; line-height: 1.6; color: var(--hs-text); margin: 0; }
.hs-step::after { content: none; }
.hs-step:last-child::after { display: none; }

/* ----------------------------------------------------------------- equipo */
.hs-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hs-member {
    padding: 28px 22px; text-align: center; border-radius: var(--hs-radius);
    background: var(--hs-bg); border: 1px solid var(--hs-border);
    transition: border-color .2s var(--hs-ease), transform .2s var(--hs-ease);
}
.hs-member:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--hs-accent); }
.hs-member .av {
    display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 16px;
    overflow: hidden; border-radius: 50%; background: var(--hs-accent-soft); color: var(--hs-accent);
    font-family: var(--hs-head); font-weight: 600; font-size: 28px;
}
.hs-member .av img { width: 100%; height: 100%; object-fit: cover; }
body.hs .hs-member b { display: block; font-family: var(--hs-head); font-size: 19px; font-weight: 600; color: var(--hs-ink); }
.hs-member span { display: block; color: var(--hs-muted); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.hs-member small { display: block; color: var(--hs-muted); font-size: 12.5px; margin-top: 8px; }
.hs-member p { margin: 12px 0 0; font-size: 14px; color: var(--hs-text); line-height: 1.6; }

/* ------------------------------------------------------------ testimonios */
.hs-testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hs-testi {
    display: flex; flex-direction: column; gap: 18px; padding: 28px;
    border-radius: var(--hs-radius); background: var(--hs-bg); box-shadow: var(--hs-shadow);
}
.hs-stars { display: flex; gap: 2px; color: var(--hs-amber); }
.hs-stars svg.icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hs-testi p { font-family: var(--hs-head); font-size: 18px; line-height: 1.5; color: var(--hs-ink); margin: 0; flex: 1; }
.hs-testi footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hs-border); }
.hs-testi footer .av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--hs-accent-soft); color: var(--hs-accent); font-family: var(--hs-head); font-weight: 600; font-size: 16px; }
.hs-testi footer b { display: block; font-size: 14.5px; font-weight: 600; color: var(--hs-ink); font-family: var(--hs-font); }
.hs-testi footer small { color: var(--hs-muted); font-size: 13px; }

/* ------------------------------------------------------------------- FAQ */
.hs-faq { max-width: 860px; margin-inline: 0; display: grid; gap: 10px; }
.hs-faq details {
    border: 1px solid var(--hs-border); border-radius: 14px; background: var(--hs-bg);
    overflow: hidden; transition: border-color .18s var(--hs-ease);
}
.hs-faq details[open] { box-shadow: none; border-color: var(--hs-line-2); }
.hs-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; cursor: pointer; list-style: none;
    font-family: var(--hs-head); font-size: 19px; font-weight: 600; color: var(--hs-ink);
}
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary svg.icon { color: var(--hs-accent); transition: transform .2s var(--hs-ease); }
.hs-faq details[open] summary svg.icon { transform: rotate(180deg); }
.hs-faq .answer { padding: 0 24px 22px; color: var(--hs-text); font-size: 15.5px; line-height: 1.7; }

/* ------------------------------------------------------------------- CTA */
.hs-cta {
    position: relative; overflow: hidden; padding: 64px 56px; border-radius: 20px; color: var(--hs-on-ink);
    background: var(--hs-deep);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center;
}
.hs-cta::after { content: none; }
body.hs .hs-cta h2 { position: relative; font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.hs-cta p { position: relative; color: var(--hs-on-ink); font-size: 17px; line-height: 1.65; margin: 0; max-width: 52ch; }
.hs-cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.hs-cta .hs-btn-light { border-color: var(--hs-deep-line); }

/* -------------------------------------------------------------- contacto */
.hs-contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.hs-info { display: grid; gap: 12px; }
.hs-info-item {
    display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
    padding: 18px 20px; border-radius: var(--hs-radius); background: var(--hs-bg); box-shadow: var(--hs-shadow);
}
.hs-info-item .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--hs-accent-soft); color: var(--hs-accent); }
.hs-info-item > span:not(.ic) { display: grid; gap: 3px; min-width: 0; }
.hs-info-item > span > span { color: var(--hs-muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hs-info-item b, .hs-info-item a { display: block; color: var(--hs-ink); font-size: 15.5px; font-weight: 500; text-decoration: none; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.hs-info-item a:hover { color: var(--hs-accent); }
.hs-map { margin-top: 4px; border: 0; width: 100%; height: 260px; border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); }

.hs-form-card { padding: 34px; border-radius: 20px; background: var(--hs-bg); box-shadow: var(--hs-shadow-lg); }
body.hs .hs-form-card h2 { font-size: 28px; margin-bottom: 8px; }
.hs-form-card > p { color: var(--hs-muted); margin-bottom: 26px; }
.hs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--hs-ink); letter-spacing: .01em; }
.hs-form label.wide { grid-column: 1 / -1; }
.hs-form label small { color: var(--hs-muted); font-weight: 400; }
.hs-form input, .hs-form select, .hs-form textarea {
    width: 100%; padding: 13px 14px; border: 1px solid var(--hs-line-2); border-radius: var(--hs-radius-sm);
    background: #fff; color: var(--hs-ink); font-family: var(--hs-font); font-size: 15px;
    transition: border-color .15s var(--hs-ease), box-shadow .15s var(--hs-ease);
}
.hs-form textarea { min-height: 110px; resize: vertical; }
.hs-form input:focus, .hs-form select:focus, .hs-form textarea:focus {
    outline: 0; border-color: var(--hs-accent); box-shadow: 0 0 0 3px var(--hs-accent-soft);
}
.hs-form .hs-btn { grid-column: 1 / -1; }
.hs-form-note { grid-column: 1 / -1; color: var(--hs-muted); font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.hs-form-note svg.icon { width: 16px; height: 16px; margin-top: 2px; color: var(--hs-accent); }
.hs-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.hs-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--hs-radius-sm); margin-bottom: 20px; font-weight: 500; font-size: 14.5px; }
.hs-alert svg.icon { margin-top: 2px; }
.hs-alert.ok { background: var(--hs-accent-soft); color: #1f7a4d; border-left: 3px solid var(--hs-green); }
.hs-alert.err { background: #fbeeea; color: #9b2c2c; border-left: 3px solid #c1503f; }

/* ------------------------------------------------------- páginas internas */
.hs-page-hero { padding: 76px 0 64px; background: var(--hs-soft); border-bottom: 1px solid var(--hs-border); }
body.hs .hs-page-hero h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin-bottom: 16px; }
.hs-page-hero p { color: var(--hs-text); font-size: 17.5px; line-height: 1.68; max-width: 62ch; margin: 0; }
.hs-crumb { display: flex; align-items: center; gap: 8px; color: var(--hs-muted); font-size: 13px; margin-bottom: 16px; }
.hs-crumb a { color: var(--hs-muted); }
.hs-crumb a:hover { color: var(--hs-accent); }

.hs-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.hs-detail-body { font-size: 16.5px; line-height: 1.75; }
body.hs .hs-detail-body h2 { font-size: 26px; margin: 34px 0 14px; }
.hs-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.hs-aside-card { padding: 26px; border-radius: var(--hs-radius); background: var(--hs-bg); box-shadow: var(--hs-shadow); }
body.hs .hs-aside-card h3 { font-family: var(--hs-title); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.hs-aside-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.hs-aside-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px solid var(--hs-border); }
.hs-aside-list li:last-child { border: 0; padding-bottom: 0; }
.hs-aside-list span { color: var(--hs-muted); }
.hs-aside-list b { color: var(--hs-ink); font-weight: 600; }

/* -------------------------------------------------------------------- pie */
.hs-footer { background: var(--hs-deep); color: var(--hs-on-ink); padding: 76px 0 0; border-top: 1px solid var(--hs-deep-line); }
body.hs .hs-footer h4 { font-size: 11.5px; font-family: var(--hs-font); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.hs-footer a { color: var(--hs-on-ink); text-decoration: none; }
.hs-footer a:hover { color: var(--hs-on-deep); text-decoration: none; }
.hs-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.hs-footer .hs-logo b { color: var(--hs-on-deep); }
.hs-footer .hs-logo small { color: var(--hs-on-ink-dim); }
.hs-footer .hs-logo-mark { background: var(--hs-deep-line); color: var(--hs-on-deep); }
.hs-footer-about { margin-top: 18px; font-size: 14.5px; line-height: 1.65; max-width: 40ch; }
.hs-foot-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.hs-foot-contact { display: grid; gap: 12px; font-size: 14.5px; }
.hs-foot-contact div { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.hs-foot-contact svg.icon { width: 17px; height: 17px; margin-top: 3px; color: var(--hs-on-ink-dim); }
.hs-foot-soc { display: flex; gap: 10px; margin-top: 20px; }
.hs-foot-soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--hs-deep-line); color: var(--hs-on-deep); }
.hs-foot-soc a:hover { background: var(--hs-accent); }
.hs-foot-bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
    padding: 22px 0; border-top: 1px solid var(--hs-deep-line); font-size: 13px; color: var(--hs-on-ink-dim);
}
.hs-legal { padding-bottom: 22px; font-size: 12.5px; color: var(--hs-on-ink-dim); max-width: 90ch; line-height: 1.6; }

/* ------------------------------------------------------- WhatsApp flotante */
.hs-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .32);
    transition: transform .16s var(--hs-ease);
}
.hs-wa:hover { transform: scale(1.06); color: #fff; }
.hs-wa svg.icon { width: 28px; height: 28px; }

/* ============================================================================
   TÍTULOS Y BOTONES DENTRO DE BLOQUES OSCUROS
   ----------------------------------------------------------------------------
   `body.hs h1,h2,h3,h4 { color: var(--hs-ink) }` tiene especificidad (0,1,2) y
   le GANA a `.hs-cta h2` o `.hs-footer h4`, que son (0,1,1). Por eso estas
   reglas van calificadas con `body.hs`: sin eso el título del cierre y los
   encabezados del pie salen del color de los títulos —verde casi negro— sobre
   un fondo verde casi negro, o sea invisibles. Es el mismo error que ya se
   había cometido con los recibos del panel.

   Lo mismo con `.hs-btn-ghost`: en el tema anterior tenía fondo blanco y por
   eso se leía en cualquier parte. Ahora es transparente con borde, así que
   dentro de un bloque oscuro hay que invertirle el color a mano.
   ============================================================================ */
body.hs .hs-cta h1, body.hs .hs-cta h2, body.hs .hs-cta h3 { color: var(--hs-on-deep); }
body.hs .hs-footer h4 { color: var(--hs-on-ink-dim); }
body.hs .hs-cta .hs-btn-ghost { color: var(--hs-on-deep); background: transparent; border-color: var(--hs-deep-line); }
body.hs .hs-cta .hs-btn-ghost:hover { color: var(--hs-on-deep); background: var(--hs-deep-line); border-color: var(--hs-on-ink-dim); }

/* ============================================================================
   EL EFECTO AL DESPLAZAR
   ----------------------------------------------------------------------------
   El sitio original no hace un «aparece y ya»: la opacidad y el desplazamiento
   van ATADOS a la posición del scroll, y las fotos entran con un 6 % de
   acercamiento que se asienta. El JS que lo mueve vive en `site/layout.php` y
   es el que pone estas clases; aquí sólo está el estado inicial, para que no
   haya un parpadeo antes de que corra el script.
   ============================================================================ */
/* El avance se expresa como propiedad personalizada (`--hs-rv` de 0 a 1) en vez
   de escribir `transform` en línea. Así el `:hover` de las tarjetas —que
   también usa transform— sigue ganando por especificidad y no se pelea con el
   revelado. La clase la pone el JS: si el script no corre, nada se esconde. */
.hs-reveal {
    opacity: var(--hs-rv, 0);
    transform: translateY(calc((1 - var(--hs-rv, 0)) * 24px));
    will-change: opacity, transform;
}
.hs-no-anim .hs-reveal { opacity: 1 !important; transform: none !important; }
.hs-no-anim .frame > img { transform: none !important; }
body.hs .frame > img { transform: scale(calc(1.06 - .06 * var(--hs-zm, 1))); will-change: transform; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .hs-section { padding: 88px 0; }
    .hs-hero-grid, .hs-about, .hs-contact, .hs-detail { grid-template-columns: 1fr; gap: 38px; }
    .hs-hero-art { max-width: 460px; }
    .hs-hero-badge { left: 0; }
    .hs-aside { position: static; }
    .hs-serv-grid, .hs-testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
    .hs-step::after { display: none; }
    .hs-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hs-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hs-cta { grid-template-columns: 1fr; padding: 48px 36px; }
}
@media (max-width: 860px) {
    .hs-container { width: calc(100% - 40px); }
    .hs-section { padding: 68px 0; }
    .hs-section.tight { padding: 52px 0; }
    /* La barra superior no cabe: se va la dirección y queda el teléfono. */
    .hs-topbar .hs-container { justify-content: center; }
    .hs-topbar-side.is-address { display: none; }
    .hs-topbar-side { gap: 16px; }
    .hs-nav {
        position: fixed; inset: 74px 0 auto; display: none; flex-direction: column; align-items: stretch;
        gap: 2px; padding: 14px 20px 22px; background: var(--hs-bg); border-bottom: 1px solid var(--hs-border);
        box-shadow: var(--hs-shadow-lg); max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .hs-nav.open { display: flex; }
    .hs-nav a { padding: 13px 2px; border-bottom: 1px solid var(--hs-border); }
    .hs-nav a::after { content: none; }
    .hs-burger { display: inline-flex; }
    .hs-head-phone span { display: none; }
    .hs-head-actions .hs-btn { display: none; }
    .hs-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-check { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hs-container { width: calc(100% - 32px); }
    .hs-serv-grid, .hs-testi-grid, .hs-steps, .hs-team-grid, .hs-trust-grid, .hs-footer-grid { grid-template-columns: 1fr; }
    .hs-form { grid-template-columns: 1fr; }
    .hs-form-card { padding: 24px 20px; }
    .hs-hero { padding: 44px 0 58px; }
    .hs-cta { padding: 36px 24px; }
    .hs-wa { right: 14px; bottom: 14px; }
    .hs-topbar { font-size: 12.5px; }
    .hs-topbar .is-hours { display: none; }
    .hs-logo b { font-size: 17px; }
    .hs-logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.hs *, body.hs *::before, body.hs *::after { transition: none !important; animation: none !important; }
    .hs-reveal { opacity: 1 !important; transform: none !important; }
    body.hs .frame > img { transform: none !important; }
}

/* =========================================================================
   Aviso de privacidad y derechos ARCO — paquete u
   ========================================================================= */

/* Documento legal: columna estrecha y renglón alto. Un aviso de privacidad a
   todo el ancho de la pantalla no lo lee nadie, y ése es justo el reproche
   que la ley le hace a los avisos escondidos. */
.hs-legal-doc { max-width: 78ch; }
body.hs .hs-legal-doc h2 {
    margin: 38px 0 12px; font-size: 22px; line-height: 1.3;
    color: var(--hs-ink);
}
body.hs .hs-legal-doc h2:first-of-type { margin-top: 0; }
.hs-legal-doc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.78; }

.hs-legal-cta {
    margin: 38px 0 0; padding: 24px; border-radius: var(--hs-radius);
    background: var(--hs-soft); border: 1px solid var(--hs-border); display: flex; flex-wrap: wrap;
    gap: 14px; align-items: center; justify-content: space-between;
}
.hs-legal-cta p { margin: 0; font-weight: 500; color: var(--hs-ink); }
.hs-legal-fine { margin-top: 22px; font-size: 13px; color: var(--hs-muted); }

.hs-info-title { margin: 0 0 6px; font-size: 19px; color: var(--hs-ink); }

/* Aviso simplificado (art. 16) junto al formulario: casilla y texto en línea,
   con el texto a tamaño legible. Una letra chica aquí es exactamente lo que
   la autoridad señala como consentimiento mal recabado. */
.hs-consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; line-height: 1.6; font-weight: 400;
}
.hs-consent input[type="checkbox"] { width: auto; margin-top: 3px; flex: none; }
.hs-consent a { text-decoration: underline; }
