/* =========================================================
   Plantilla Onepage — los colores principales se definen en
   data/sitio.json (campo "colores") y se aplican desde JS.
   ========================================================= */
:root {
  --primario: #1f4fd1;
  --acento: #ff7a45;
  --texto: #17191f;
  --texto-suave: #5b6070;
  --fondo: #ffffff;
  --fondo-alt: #f4f6fa;
  --borde: #e3e6ee;
  --radio: 14px;
  --sombra: 0 10px 30px -12px rgba(20, 30, 60, .18);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--fuente-texto, "Inter", system-ui, sans-serif);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--primario); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-family: var(--fuente-titulos, inherit); }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.center { text-align: center; margin-top: 2rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primario);
  margin: 0 0 .8rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radio-btn, 999px);
  border: 2px solid var(--primario);
  background: var(--primario);
  color: var(--sobre-primario, #fff);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn--ghost { background: transparent; color: var(--primario); }
.btn--small { padding: .5rem 1.1rem; font-size: .92rem; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--borde); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-family: var(--fuente-titulos, inherit); font-size: 1.15rem; color: var(--texto); text-decoration: none; }
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--primario); }
.nav__links .btn { color: var(--sobre-primario, #fff); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--texto); margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fondo); border-bottom: 1px solid var(--borde);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--borde); }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--primario) 16%, transparent), transparent 60%),
    radial-gradient(40rem 25rem at -10% 110%, color-mix(in srgb, var(--acento) 14%, transparent), transparent 60%);
  background-size: cover;
  background-position: center;
}

.hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(10, 14, 30, var(--oscurecer, .55)); }


.hero__inner { position: relative; max-width: 860px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--texto-suave); max-width: 640px; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--fondo-alt); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.about__text p { margin: 0 0 1rem; color: var(--texto-suave); font-size: 1.08rem; }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.stats li { border-left: 3px solid var(--acento); padding-left: 1rem; }
.stats strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stats span { color: var(--texto-suave); font-size: .92rem; }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.8rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: color-mix(in srgb, var(--primario) 12%, transparent);
  margin-bottom: 1.1rem;
}
.card p { margin: 0; color: var(--texto-suave); }

/* ---------- Carrusel de clientes ----------
   Todos los logos ocupan la misma caja (proporción 2:1), así se ven
   parejos en cualquier pantalla. El panel ya los recorta y centra. */
.marquee {
  overflow: hidden;
  margin-top: 2.5rem;
  --logo-w: clamp(120px, 30vw, 180px);
  --logo-h: calc(var(--logo-w) / 2);
}
.marquee__track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-running .marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: marquee var(--duracion, 30s) linear infinite;
}
.marquee.is-running:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; width: var(--logo-w); height: var(--logo-h); display: flex; align-items: center; justify-content: center; }
.marquee__item a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.marquee__item img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s;
}
.marquee__item:hover img { filter: none; opacity: 1; }
@media (hover: none) { .marquee__item img { filter: none; opacity: 1; } }
.marquee__item .logo-text { font-weight: 700; font-size: clamp(1rem, 3.5vw, 1.25rem); color: var(--texto-suave); text-align: center; line-height: 1.2; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--gap-mitad, 0px))); }
}

/* ---------- Novedades ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.news__item {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.news__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--fondo-alt); }
.news__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news__date { font-size: .82rem; color: var(--primario); font-weight: 600; display: block; }
.news__body h3 { margin: 0; }
.news__body p { margin: 0; color: var(--texto-suave); }
.news__link { margin-top: auto; padding-top: .6rem; font-weight: 600; text-decoration: none; }
.news__empty { color: var(--texto-suave); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--fondo-alt); flex: 0 0 auto; }
.contact-list a { color: var(--texto); text-decoration: none; }
.contact-list a:hover { color: var(--primario); }

.form { display: grid; gap: 1rem; background: var(--fondo-alt); padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: var(--radio); }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.form input, .form textarea {
  font: inherit; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--borde); background: var(--fondo); color: var(--texto);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--primario); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .92rem; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--borde); padding: 2rem 0; color: var(--texto-suave); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.social { display: flex; gap: 1rem; }
.social a { color: var(--texto-suave); text-decoration: none; font-weight: 500; }
.social a:hover { color: var(--primario); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: var(--sombra);
  transition: transform .15s;
}
.whatsapp:hover { transform: scale(1.07); }

/* ---------- Animación de aparición ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Accesibilidad ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--primario); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Tarjetas de novedades enlazadas ---------- */
.news__title { color: inherit; text-decoration: none; }
.news__title:hover { color: var(--primario); }
.news__body h2 { font-size: 1.2rem; margin: 0; }

/* ---------- Página de una novedad ---------- */
.narrow { width: min(100% - 2.5rem, 760px); }
.post { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.crumbs { font-size: .88rem; color: var(--texto-suave); margin-bottom: 1.4rem; }
.crumbs a { color: var(--texto-suave); }
.post__title { font-size: clamp(1.9rem, 5vw, 3rem); margin: .4rem 0 1rem; }
.post__lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--texto-suave); margin: 0 0 2rem; }
.post__img { width: 100%; border-radius: var(--radio); margin: 0 0 2rem; }
.post__body { font-size: 1.08rem; }
.post__body p { margin: 0 0 1.2rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--borde); font-size: .95rem; }
.share span { color: var(--texto-suave); }
.share a { font-weight: 600; text-decoration: none; }
.cta h2 { margin-bottom: 1.2rem; }

/* ---------- Formulario ---------- */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .opt { font-weight: 400; color: var(--texto-suave); }
.form__status.is-ok { color: #0f7b4a; font-weight: 600; }
.form__status.is-error { color: #c0262d; font-weight: 600; }
.form .btn[disabled] { opacity: .7; cursor: wait; }

/* =========================================================
   v3 · Módulos nuevos
   ========================================================= */
.section__lead { color: var(--texto-suave); font-size: 1.08rem; max-width: 680px; margin: -.2rem 0 0; }
.h-sub { font-size: 1.3rem; margin: 2.5rem 0 0; }
.muted-text { color: var(--texto-suave); }
.mt { margin-top: 2rem; }

/* Contenido rico de las novedades (editor) */
.post__body h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.post__body h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.post__body h4 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.post__body ul, .post__body ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.post__body li { margin-bottom: .35rem; }
.post__body blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--acento); color: var(--texto-suave); font-size: 1.12rem; }
.post__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.post__body iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 10px; margin: 1.5rem 0; }
.post__body iframe[src*="youtube"], .post__body iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.post__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; display: block; overflow-x: auto; }
.post__body th, .post__body td { border: 1px solid var(--borde); padding: .6rem .8rem; text-align: left; }
.post__body th { background: var(--fondo-alt); }
.post__body pre { background: var(--fondo-alt); padding: 1rem; border-radius: 10px; overflow-x: auto; }
.post__body hr { border: 0; border-top: 1px solid var(--borde); margin: 2rem 0; }
.post__body a { word-break: break-word; }

/* Agenda */
.events { display: grid; gap: 1rem; margin-top: 2rem; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: start; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.3rem; }
.section--alt .event { background: var(--fondo); }
.event__date { width: 64px; text-align: center; border-radius: 12px; background: color-mix(in srgb, var(--primario) 10%, transparent); color: var(--primario); padding: .55rem 0; line-height: 1.05; }
.event__date strong { display: block; font-size: 1.7rem; font-weight: 800; }
.event__date span { text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.event__body h3 { margin: 0 0 .3rem; }
.event__when { margin: 0; font-weight: 600; color: var(--texto); }
.event__where { margin: .25rem 0 0; color: var(--texto-suave); font-size: .95rem; }
.event__where a { color: inherit; }
.event__desc { margin-top: .6rem; color: var(--texto-suave); }
.event__desc p { margin: 0 0 .5rem; }
.event__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.event__img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.event--past { opacity: .7; }
.event--past .event__date { background: var(--fondo-alt); color: var(--texto-suave); }
@media (max-width: 720px) {
  .event { grid-template-columns: auto 1fr; padding: 1.1rem; gap: 1rem; }
  .event__img { grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; }
  .event__date { width: 54px; }
}

/* Directorio */
.dir-tools { display: grid; gap: .9rem; margin: 2rem 0 1.4rem; }
.dir-search { font: inherit; width: 100%; max-width: 520px; padding: .8rem 1rem; border: 1px solid var(--borde); border-radius: var(--radio-btn, 999px); background: var(--fondo); color: var(--texto); }
.dir-search:focus { outline: 2px solid var(--primario); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; padding: .4rem .9rem; border-radius: var(--radio-btn, 999px); border: 1px solid var(--borde); background: var(--fondo); color: var(--texto); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--primario); color: var(--primario); }
.chip.is-on { background: var(--primario); border-color: var(--primario); color: var(--sobre-primario, #fff); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.biz { display: flex; gap: 1rem; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem; align-items: flex-start; transition: box-shadow .2s, transform .2s; }
.biz:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.biz[hidden] { display: none; }
.biz__logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--fondo-alt); text-decoration: none; }
.biz__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.biz__initial { font-size: 1.6rem; font-weight: 800; color: var(--primario); }
.biz__body { min-width: 0; flex: 1; }
.biz__rubro { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primario); }
.biz h3 { font-size: 1.08rem; margin: .1rem 0 .2rem; }
.biz h3 a { color: inherit; text-decoration: none; }
.biz h3 a:hover { color: var(--primario); }
.biz__addr { margin: 0; color: var(--texto-suave); font-size: .9rem; }
.biz__links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .5rem; font-size: .9rem; font-weight: 600; }
.biz__links a { text-decoration: none; }
.dir-empty { color: var(--texto-suave); text-align: center; padding: 2rem 0; }
.biz-head { display: flex; gap: 1.3rem; align-items: center; margin-bottom: 1.5rem; }
.biz-head__logo { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; border: 1px solid var(--borde); padding: 6px; background: #fff; flex: 0 0 auto; }
.biz-head .post__title { margin: .2rem 0 0; }
.biz-data { margin: 1.5rem 0; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(31%, 240px), 1fr)); gap: .6rem; margin-top: 2rem; }
.ig-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--fondo-alt); display: block; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ig-item:hover img { transform: scale(1.05); }
.ig-badge { position: absolute; top: .5rem; right: .6rem; color: #fff; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ig-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 326px), 1fr)); gap: 1rem; margin-top: 2rem; align-items: start; justify-items: center; }
.ig-embeds .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 420px !important; }

/* Mapa */
.map { margin-top: 2rem; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); background: var(--fondo-alt); }
.map iframe { display: block; width: 100%; border: 0; }
.map__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.map + .map__bar span { color: var(--texto-suave); }

/* =========================================================
   v4 · Fondos de sección y Autoridades
   ========================================================= */
.section--img { position: relative; background-size: cover; background-position: center; }
.section--img::before { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 24, var(--oscurecer, .5)); }
.section--img > * { position: relative; z-index: 1; }
/* Texto claro sobre fondos oscuros (color oscuro o imagen) */
.section--dark { color: #fff; }
.section--dark h2, .section--dark > .container > h3, .section--dark .split > div > h2 { color: #fff; }
.section--dark .eyebrow { color: #fff; opacity: .85; }
.section--dark .section__lead, .section--dark .section__period,
.section--dark .about__text p, .section--dark .stats span, .section--dark .split > div > p { color: rgba(255, 255, 255, .85); }
.section--dark .people__group { color: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .25); }
.section--dark .contact-list a, .section--dark .contact-list span, .section--dark .map__bar span { color: #fff; }
.section--dark .contact-list .ico { background: rgba(255, 255, 255, .15); }
.section--dark > .container > .center .btn--ghost, .section--dark .hero__actions .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .logo-text { color: rgba(255, 255, 255, .85); }
/* Las tarjetas mantienen sus colores normales */
.section--dark .card, .section--dark .event, .section--dark .biz, .section--dark .news__item,
.section--dark .person, .section--dark .form, .section--dark .dir-tools .chip:not(.is-on) { color: var(--texto); }
.section--dark .marquee__item img { filter: none; opacity: .95; }
.section--color.section--dark .marquee__item img, .section--img .marquee__item img { background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px; }

/* Autoridades */
.section__period { font-weight: 600; color: var(--primario); margin: -.4rem 0 .6rem; }
.people__group { font-size: 1.15rem; margin: 2.5rem 0 0; padding-bottom: .6rem; border-bottom: 1px solid var(--borde); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: clamp(.8rem, 2.5vw, 1.4rem); margin-top: 1.6rem; }
.person { background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: clamp(1rem, 3vw, 1.5rem) clamp(.7rem, 2.5vw, 1.2rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.person__photo { width: clamp(84px, 24vw, 132px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: .9rem; border: 3px solid var(--fondo); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primario) 35%, transparent); }
.person__photo--empty { display: grid; place-items: center; background: color-mix(in srgb, var(--primario) 12%, var(--fondo)); color: var(--primario); font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.person__body { min-width: 0; width: 100%; }
.person__role { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primario); line-height: 1.3; }
.person__name { margin: .3rem 0 0; font-size: clamp(.98rem, 2.6vw, 1.12rem); line-height: 1.25; word-wrap: break-word; }
.person__name.is-vacant { color: var(--texto-suave); font-weight: 500; font-style: italic; }
.person__org { margin: .2rem 0 0; font-size: .88rem; color: var(--texto-suave); }
.person__links { display: flex; justify-content: center; gap: .5rem; margin-top: .7rem; }
.person__links a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--fondo-alt); text-decoration: none; font-size: .95rem; }
.person__links a:hover { background: color-mix(in srgb, var(--primario) 15%, var(--fondo)); }
.person__more { margin-top: .7rem; font-size: .9rem; text-align: left; width: 100%; }
.person__more summary { cursor: pointer; text-align: center; color: var(--primario); font-weight: 600; list-style: none; }
.person__more summary::-webkit-details-marker { display: none; }
.person__more p { margin: .6rem 0 0; color: var(--texto-suave); line-height: 1.5; }

/* =========================================================
   v5 · Fondos con patrón (mosaico) e imágenes repetidas
   ========================================================= */
.section--pattern, .hero.section--pattern { position: relative; isolation: isolate; }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--patron-color, currentColor); opacity: var(--patron-op, .1);
  -webkit-mask-image: var(--patron); mask-image: var(--patron);
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: var(--patron-size, auto); mask-size: var(--patron-size, auto);
}
.section--tile { background-repeat: repeat; background-position: center top; }
.hero.has-image { background-size: cover; background-position: center; }
.hero--dark, .hero--dark .eyebrow, .hero--dark .hero__lead { color: #fff; }
.hero--dark .btn--ghost { color: #fff; border-color: #fff; }
.hero.section--color, .hero.section--alt, .hero.section--pattern { background-image: none; }
.hero.section--alt { background-color: var(--fondo-alt); }
.hero.section--tile { background-size: auto; }

/* =========================================================
   v5.8 · Paginado, "Mostrar más" y buscador
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Paginador numérico */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.pager__nums { display: flex; gap: .35rem; align-items: center; }
.pager__num, .pager__nav { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--borde); border-radius: min(var(--radio), 10px); background: var(--fondo); color: var(--texto); text-decoration: none; font-weight: 600; }
.pager__num:hover, .pager__nav:hover { border-color: var(--primario); color: var(--primario); }
.pager__num.is-current { background: var(--primario); border-color: var(--primario); color: var(--sobre-primario, #fff); }
.pager__nav.is-disabled { opacity: .4; pointer-events: none; }
.pager__gap { color: var(--texto-suave); padding: 0 .15rem; }
.pager__info { display: none; color: var(--texto-suave); font-weight: 500; }
@media (max-width: 640px) {
  .pager__nums { display: none; }
  .pager__info { display: inline; padding: 0 .5rem; }
}

/* Mostrar más */
.more { display: grid; justify-items: center; gap: .6rem; margin-top: 2.5rem; }
.more__btn { min-width: 220px; justify-content: center; }
.more__btn.is-loading { opacity: .7; cursor: progress; }
.more__count { color: var(--texto-suave); font-size: .9rem; }

/* Pestañas (agenda) */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--borde); margin: 1.6rem 0 0; flex-wrap: wrap; }
.tab { padding: .65rem 1rem; text-decoration: none; color: var(--texto-suave); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab span { display: inline-block; min-width: 1.7rem; padding: 0 .45rem; border-radius: 99px; background: var(--fondo-alt); font-size: .8rem; text-align: center; margin-left: .25rem; }
.tab:hover { color: var(--texto); }
.tab.is-on { color: var(--primario); border-bottom-color: var(--primario); }

/* Buscador en la barra superior */
.nav__inner { gap: 1rem; }
.nav__search-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--texto); text-decoration: none; flex: 0 0 auto; margin-left: -.3rem; }
.nav__search-btn:hover, .nav__search-btn[aria-expanded="true"] { background: var(--fondo-alt); color: var(--primario); }
.searchbar { border-top: 1px solid var(--borde); background: var(--fondo); box-shadow: 0 12px 24px -16px rgba(0,0,0,.25); }
.searchbar[hidden] { display: none; }
.searchbar__form { display: flex; align-items: center; gap: .6rem; padding: .8rem 0; position: relative; }
.searchbar__icon { position: absolute; left: .9rem; color: var(--texto-suave); display: grid; pointer-events: none; }
.searchbar__form input { flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; padding: .7rem 1rem .7rem 2.7rem; border: 1px solid var(--borde); border-radius: var(--radio-btn, 999px); background: var(--fondo-alt); color: var(--texto); }
.searchbar__form input:focus { outline: 2px solid var(--primario); outline-offset: 1px; background: var(--fondo); }
.searchbar__close { font: inherit; background: none; border: 0; color: var(--texto-suave); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.searchbar__close:hover { background: var(--fondo-alt); color: var(--texto); }
@media (max-width: 820px) {
  .nav__search-btn { margin-left: auto; }
  .nav__toggle { margin-left: 0; }
  .searchbar__form .btn { display: none; }
}

/* Página de resultados */
.search-page { display: flex; gap: .6rem; margin: 1.2rem 0 1.4rem; }
.search-page input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .85rem 1.1rem; border: 1px solid var(--borde); border-radius: var(--radio-btn, 999px); background: var(--fondo); color: var(--texto); }
.search-page input:focus { outline: 2px solid var(--primario); outline-offset: 1px; border-color: transparent; }
.search-count { color: var(--texto-suave); margin: 0 0 1.5rem; }
.search-group { margin-bottom: 2.2rem; }
.search-group h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--borde); margin-bottom: .4rem; }
.search-group h2 span { font-size: .8rem; font-weight: 600; background: var(--fondo-alt); color: var(--texto-suave); border-radius: 99px; padding: .05rem .55rem; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: .9rem 0; border-bottom: 1px solid var(--borde); }
.search-results li:last-child { border-bottom: 0; }
.search-results a { font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--primario); }
.search-results a:hover { text-decoration: underline; }
.search-meta { display: block; font-size: .85rem; color: var(--texto-suave); margin-top: .1rem; }
.search-results p { margin: .35rem 0 0; color: var(--texto-suave); font-size: .96rem; }
mark { background: color-mix(in srgb, var(--acento) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.searchbar__form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* v5.10 · Imagen en Quiénes somos y en servicios */
.about__img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radio); margin-top: 1.4rem; box-shadow: var(--sombra); }
.card--img { padding: 0; overflow: hidden; }
.card--img .card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card--img h3 { margin: 1.1rem 1.4rem .5rem; }
.card--img p { margin: 0 1.4rem 1.5rem; }
@media (max-width: 820px) { .about__img { max-width: 280px; } }

/* =========================================================
   v5.11 · Bloques libres, testimonios, títulos y fondos nuevos
   ========================================================= */
/* Títulos de sección: tipografía y color propios (Diseño) */
.section__title, .hero__title { font-family: var(--fuente-secciones, var(--fuente-titulos)); color: var(--titulos, inherit); }
.section--dark .section__title { color: #fff; }
.section__title .hl, .row__title .hl, .col__title .hl, .single__title .hl { color: var(--primario); }
.section--title-centro > .container > .eyebrow, .section--title-centro > .container > .section__title { text-align: center; }
.section--title-derecha > .container > .eyebrow, .section--title-derecha > .container > .section__title { text-align: right; }

/* Barra superior con una frase */
.topbar { font-size: .86rem; font-weight: 500; color: var(--primario); border-bottom: 1px solid var(--borde); background: var(--fondo); }
.topbar .container { text-align: right; padding: .45rem 0; }
@media (max-width: 820px) { .topbar .container { text-align: center; font-size: .8rem; } }

/* Logo un poco más grande cuando hay imagen */
.nav--logo .nav__inner { height: 76px; }
.nav--logo .nav__brand img { height: 44px; }
@media (max-width: 820px) { .nav--logo .nav__links { inset: 76px 0 auto 0; } .nav--logo .nav__brand img { height: 36px; } }

/* Portada en banda (imagen a lo ancho y el título sobre una franja translúcida) */
.hero--band { padding: 0; min-height: clamp(200px, 26vw, 330px); display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.hero--band.has-image::before { background: rgba(10, 14, 30, var(--oscurecer, 0)); }
.hero__band { position: relative; width: 100%; margin-bottom: clamp(1.2rem, 4vw, 2.6rem); background: rgba(255, 255, 255, .32); backdrop-filter: blur(1px); }
.hero__band .container { padding: .5rem 0; text-align: center; }
.hero--band .hero__title { margin: 0; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero--band .eyebrow { color: #fff; margin: 0; }

/* Texto con formato simple */
.rt p { margin: 0 0 1rem; color: var(--texto-suave); }
.rt p:last-child, .rt ul:last-child { margin-bottom: 0; }
.rt strong { color: var(--texto); font-weight: 600; }
.rt ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--texto-suave); }
.rt li { margin-bottom: .55rem; }
.rt li::marker { color: var(--primario); }
.rt a, .more-link { color: var(--enlaces, var(--primario)); font-weight: 500; text-decoration: none; }
.rt a:hover, .more-link:hover { text-decoration: underline; }
.rt .rt-sub { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.section--dark .rt p, .section--dark .rt ul { color: rgba(255, 255, 255, .88); }
.section--dark .rt strong { color: #fff; }
.more-link { display: inline-block; margin-top: 1.1rem; }
.more-link--big { font-size: 1.15rem; }
.section__intro { max-width: 820px; margin: 0 auto 2.4rem; text-align: center; font-size: 1.12rem; }
.section__intro p { color: var(--texto); }

/* Bloque: filas de texto + imagen */
.block .section__title + .rows, .block .eyebrow + .rows { margin-top: 2rem; }
.rows { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.row--img-der { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.row--img-der .row__img { order: 2; }
.row--noimg { grid-template-columns: 1fr; }
.row__img { width: 100%; border-radius: calc(var(--radio) * 2); object-fit: cover; }
.row__title { font-family: var(--fuente-titulos); font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 500; line-height: 1.3; margin: 0 0 1.2rem; }
.row--img-izq .row__title { text-align: right; }
.row__body { font-size: 1.02rem; }
@media (max-width: 820px) {
  .row, .row--img-der { grid-template-columns: 1fr; gap: 1.4rem; }
  .row--img-der .row__img { order: 0; }
  .row__img { max-width: 420px; }
  .row--img-izq .row__title { text-align: left; }
}

/* Bloque: columnas */
.cols { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.cols--2 { --n: 2; } .cols--3 { --n: 3; } .cols--4 { --n: 4; }
.cols--divider .col + .col { border-left: 2px solid var(--primario); padding-left: clamp(1.6rem, 4vw, 3rem); }
.col__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radio); margin-bottom: 1rem; }
.col__title { font-family: var(--fuente-titulos); font-size: 1.2rem; font-weight: 600; margin: 0 0 1rem; }
@media (max-width: 900px) { .cols--4 { --n: 2; } .cols--3 { --n: 2; } }
@media (max-width: 640px) {
  .cols { --n: 1 !important; }
  .cols--divider .col + .col { border-left: 0; padding-left: 0; border-top: 2px solid var(--primario); padding-top: 1.6rem; }
}

/* Bloque: una columna */
.single { max-width: 860px; }
.section--title-centro .single, .section--title-centro .block__end { margin-inline: auto; text-align: center; }
.single + .single { margin-top: 2rem; }
.single__img { max-width: 100%; border-radius: var(--radio); margin-bottom: 1.2rem; }
.section--title-centro .single__img { margin-inline: auto; }
.single__title { font-family: var(--fuente-titulos); font-size: 1.3rem; font-weight: 500; }
.block--texto .rt p { font-size: 1.04rem; }

/* Cierre del bloque */
.block__end { margin-top: clamp(2rem, 5vw, 3rem); text-align: center; max-width: 860px; margin-inline: auto; }
.block__close p { color: var(--texto); font-size: 1.15rem; }
.block__note { font-size: .82rem; color: var(--texto-suave); margin: 1.4rem auto 0; max-width: 520px; }

/* Testimonios: carrusel */
.tslider { position: relative; margin-top: 1.6rem; padding: 0 3rem; }
.tslider__viewport { overflow: hidden; }
.tslider__track { display: flex; transition: transform .55s ease; }
.tslide { flex: 0 0 100%; margin: 0; padding: .5rem 1rem; text-align: center; }
.tslide blockquote { margin: 0; color: var(--texto-suave); font-size: clamp(1rem, 1.8vw, 1.12rem); line-height: 1.75; max-width: 860px; margin-inline: auto; }
.tslide blockquote p { margin: 0; display: inline; }
.tslide blockquote p + p::before { content: " "; }
.tslide blockquote::before { content: "“"; }
.tslide blockquote::after { content: "”"; }
.tslide figcaption { margin-top: 1.2rem; font-size: .88rem; }
.tslide figcaption strong { color: var(--primario); font-weight: 500; }
.tslide figcaption span { display: block; color: var(--texto-suave); font-size: .82rem; }
.tslider__nav { position: absolute; top: 40%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--texto-suave); cursor: pointer; border-radius: 50%; }
.tslider__nav:hover { color: var(--primario); background: color-mix(in srgb, var(--primario) 8%, transparent); }
.tslider__nav--prev { left: 0; } .tslider__nav--next { right: 0; }
.tslider__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.4rem; }
.tslider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--texto) 22%, transparent); cursor: pointer; }
.tslider__dots button[aria-current="true"] { background: var(--texto); }
.tslider:not(.is-ready) .tslide + .tslide { display: none; }
.section--dark .tslide blockquote { color: rgba(255, 255, 255, .9); }
.section--dark .tslide figcaption strong { color: #fff; }
.section--dark .tslider__nav, .section--dark .tslider__dots button[aria-current="true"] { color: #fff; background-color: #fff; }
@media (max-width: 640px) { .tslider { padding: 0 1.8rem; } .tslider__nav { width: 1.8rem; font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .tslider__track { transition: none; } }

/* Testimonios: grilla */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.quote { margin: 0; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; color: var(--texto); }
.quote blockquote { margin: 0; color: var(--texto-suave); position: relative; padding-top: 1.4rem; }
.quote blockquote::before { content: "“"; position: absolute; top: -.6rem; left: -.1rem; font-size: 3rem; line-height: 1; color: var(--primario); font-family: Georgia, serif; }
.quote blockquote p { margin: 0 0 .6rem; }
.quote figcaption { margin-top: auto; font-size: .92rem; }
.quote figcaption strong { color: var(--primario); }
.quote figcaption span { display: block; color: var(--texto-suave); font-size: .85rem; }

/* Fondos: imagen repetida, adorno y velo claro */
.section--tile { background-size: var(--tile-size, 240px auto), auto; }
.section--deco { background-repeat: no-repeat, no-repeat; background-size: 100% auto, 100% 100%; }
.section--deco-arriba { background-position: center 3rem, center; }
.section--deco-centro { background-position: center center, center; }
.section--deco-abajo { background-position: center bottom, center; }
.section--img { background-size: cover, 100% 100%; }
.section--img-light::before { background: rgba(255, 255, 255, var(--aclarar, .6)); }

/* Contacto: texto de la izquierda */
.contact__lead { color: var(--texto-suave); font-size: 1.08rem; }

/* Pie con logo y lema */
.footer__brand { display: grid; gap: .25rem; justify-items: start; }
.footer__brand img { height: 30px; width: auto; margin-bottom: .2rem; }
.footer__lema { color: var(--primario); font-weight: 500; }
.tslider__viewport { transition: height .4s ease; }
.tslider__track { align-items: flex-start; }

/* =========================================================
   v5.13 · Portada con pantallas, Precios, menú oscuro
   ========================================================= */
/* Portada con pantallas que pasan */
.hero--slides { position: relative; padding: 0; overflow: hidden; color: #fff; background: #0b1220; }
.hero--completa { min-height: 100svh; } .hero--alta { min-height: 82svh; } .hero--media { min-height: 60svh; }
.hs__track { position: absolute; inset: 0; }
.hs__slide { position: absolute; inset: 0; display: flex; align-items: center; background-size: cover; background-position: center; background-color: #0b1220; }
.hs__slide::before { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 24, var(--oscurecer, .45)); }
.hs__inner { position: relative; z-index: 1; padding: 6rem 0 5rem; }
.hs__slide--center .hs__inner { text-align: center; }
.hs__slide--center .hero__actions { justify-content: center; }
.hs__logo { width: clamp(70px, 9vw, 120px); height: auto; margin: 0 auto 1rem; display: block; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.hs__slide--left .hs__logo { margin-left: 0; }
.hs__eyebrow { color: var(--acento); letter-spacing: .3em; }
.hs__title { font-family: var(--fuente-secciones, var(--fuente-titulos)); font-size: clamp(2.3rem, 6.5vw, 4.6rem); line-height: 1.08; font-weight: 800; margin: 0 0 1rem; color: #fff; text-transform: none; }
.hs__title .hl { color: var(--acento); }
.hs__lead { font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .32em; text-transform: uppercase; color: var(--acento); font-weight: 600; margin: 0 0 1.6rem; }
.hs__slide--left .hs__lead { letter-spacing: .08em; text-transform: none; color: rgba(255,255,255,.9); font-weight: 400; max-width: 640px; }
.hero--fade .hs__slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero--fade .hs__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero--fade .hs__slide.is-active .hs__inner > * { animation: hsUp .9s ease both; }
.hero--fade .hs__slide.is-active .hs__inner > *:nth-child(2) { animation-delay: .12s; }
.hero--fade .hs__slide.is-active .hs__inner > *:nth-child(3) { animation-delay: .24s; }
.hero--fade .hs__slide.is-active .hs__inner > *:nth-child(4) { animation-delay: .36s; }
@keyframes hsUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero--slide .hs__track { display: flex; transition: transform .8s ease; }
.hero--slide .hs__slide { position: relative; flex: 0 0 100%; }
.hs__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.hs__nav:hover { background: rgba(0,0,0,.45); }
.hs__nav--prev { left: 1.2rem; } .hs__nav--next { right: 1.2rem; }
.hs__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .6rem; }
.hs__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hs__dots button[aria-current="true"] { background: var(--acento); width: 26px; border-radius: 6px; }
.hs__down { display: inline-block; margin-top: 1.4rem; color: #fff; text-decoration: none; font-size: 2.2rem; line-height: 1; opacity: .85; animation: hsBob 2s ease-in-out infinite; }
.hs__slide--center .hs__down { display: block; width: max-content; margin-inline: auto; }
.hs__down:hover { opacity: 1; color: var(--acento); }
@keyframes hsBob { 50% { transform: translateY(6px); } }
.hero--fade .hs__slide.is-active .hs__inner > .hs__down { animation: hsBob 2s ease-in-out .6s infinite; }
@media (max-width: 640px) { .hs__nav { display: none; } .hs__inner { padding: 5rem 0 6rem; } }
@media (prefers-reduced-motion: reduce) { .hero--fade .hs__slide, .hero--slide .hs__track { transition: none; } .hs__inner > * { animation: none !important; } .hs__down { animation: none; } }

/* Menú oscuro */
.nav--dark { background: color-mix(in srgb, #0b0f17 92%, transparent); }
.nav--dark .nav__brand, .nav--dark .nav__links a { color: #e8edf3; }
.nav--dark .nav__links a:hover, .nav--dark .nav__links a.is-active { color: var(--acento); }
.nav--dark.is-scrolled { border-color: rgba(255,255,255,.08); }
.nav--dark .nav__toggle span, .nav--dark .nav__toggle span::before, .nav--dark .nav__toggle span::after { background: #fff; }
.nav--dark .nav__search-btn { color: #e8edf3; }
@media (max-width: 820px) { .nav--dark .nav__links { background: #0b0f17; } }

/* Precios */
.prices { display: grid; gap: 1.4rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.prices--1 { max-width: 420px; margin-inline: auto; } .prices--2 { max-width: 860px; margin-inline: auto; }
.price { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 2.4rem 1.8rem 2rem; color: var(--texto); }
.price--hl { border-color: var(--acento); box-shadow: 0 18px 40px color-mix(in srgb, var(--acento) 18%, transparent); }
.price__ribbon { position: absolute; top: 22px; left: -42px; transform: rotate(-45deg); background: var(--acento); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .3rem 3rem; text-transform: uppercase; }
.price__name { font-family: var(--fuente-titulos); font-size: 1.25rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 1rem; }
.price__amount { margin: 0; display: flex; align-items: flex-start; justify-content: center; line-height: 1; color: var(--titulos, var(--texto)); }
.price__cur { font-size: 1.1rem; margin: .4rem .15rem 0 0; }
.price__num { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.01em; }
.price__period { color: var(--acento); font-size: .9rem; margin: .3rem 0 1.4rem; }
.price__desc { color: var(--texto-suave); font-size: .95rem; margin: -.6rem 0 1.2rem; }
.price__features { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; font-size: .95rem; color: var(--texto-suave); }
.price__features li { display: flex; gap: .55rem; align-items: baseline; justify-content: center; }
.price__features li.is-no { opacity: .55; text-decoration: line-through; }
.price__ico { color: var(--acento); font-weight: 700; }
.price__features li.is-no .price__ico { color: var(--texto-suave); }
.price__btn { margin-top: auto; }
.price__note { font-size: .8rem; color: var(--texto-suave); margin: 1rem 0 0; }
.prices__note { text-align: center; font-size: .85rem; color: var(--texto-suave); margin-top: 1.6rem; }
.section--dark .price { color: var(--texto); }

/* Bloques: botón y texto centrado */
.block__btn { margin-top: 1.2rem; }
.block--center .col, .block--center .single { text-align: center; }
.block--center .col__img { margin-inline: auto; }
.block--center .rt ul { list-style-position: inside; padding-left: 0; }
.block--cifras .col__title { font-size: clamp(2.4rem, 5vw, 3.3rem); font-weight: 400; line-height: 1.1; color: var(--primario); margin-bottom: .4rem; }
.block--cifras .col__title .hl { color: inherit; }
/* v5.14 — foto en testimonios */
.tphoto { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.quote .tphoto { width: 64px; height: 64px; margin: 0 0 .8rem; }
/* v5.15 — columnas en carrusel (tandas) */
.ccar { position: relative; padding: 0 2.8rem; }
.ccar__viewport { overflow: hidden; }
.ccar__track { --gap: clamp(1.2rem, 3vw, 2.4rem); display: flex; gap: var(--gap); transition: transform .7s ease; will-change: transform; }
.ccar__track > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; }
.ccar__nav { position: absolute; top: 38%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border: 0; background: none; font-size: 2.2rem; line-height: 1; color: var(--texto-suave); cursor: pointer; border-radius: 50%; }
.ccar__nav:hover { color: var(--primario); background: color-mix(in srgb, var(--primario) 8%, transparent); }
.ccar__nav[disabled] { opacity: .25; cursor: default; background: none; }
.ccar__nav--prev { left: 0; } .ccar__nav--next { right: 0; }
.ccar__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.6rem; }
.ccar__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--texto) 22%, transparent); cursor: pointer; }
.ccar__dots button[aria-current="true"] { background: var(--primario); width: 24px; border-radius: 6px; }
.ccar.is-static .ccar__nav, .ccar.is-static .ccar__dots { display: none; }
@media (max-width: 640px) { .ccar { padding: 0; } .ccar__nav { display: none; } .ccar__track { --n: 1 !important; } }
@media (prefers-reduced-motion: reduce) { .ccar__track { transition: none; } }

/* v5.17 — servicios: cantidad por fila, ícono centrado y carrusel */
.cards--2 { --n: 2; grid-template-columns: repeat(2, 1fr); }
.cards--3 { --n: 3; grid-template-columns: repeat(3, 1fr); }
.cards--4 { --n: 4; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards--4 { --n: 2; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards--3 { --n: 2; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards--2, .cards--3, .cards--4 { --n: 1; grid-template-columns: 1fr; } }
.cards--center .card { text-align: center; }
.cards--center .card__icon { margin-inline: auto; }
.cards--center .card__img { margin-inline: auto; }
.ccar--cards .ccar__track { margin-top: 0; padding: .4rem 0 .8rem; }
.ccar--cards { margin-top: 2.5rem; }
.ccar--cards .card:hover { transform: none; }
.ccar--cards .ccar__nav { top: 50%; }
