/* =========================================================
   GyG Contadores — Estudio Impositivo Contable
   Hoja de estilos principal
   Desarrollado por DobleC Agencia Creativa
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --primary: #2A85D1;
  --primary-dark: #1E6BB0;
  --secondary: #192F62;
  --secondary-dark: #0F1E45;
  --text: #212121;
  --muted: #555E6E;
  --white: #FFFFFF;
  --bg-soft: #F3F6FB;
  --border: #E2E8F1;

  --grad-primary: linear-gradient(135deg, #2A85D1 0%, #1E6BB0 55%, #192F62 100%);
  --grad-btn: linear-gradient(135deg, #2A85D1 0%, #2370BE 50%, #192F62 100%);
  --grad-secondary: linear-gradient(120deg, #0F1E45 0%, #192F62 45%, #1F4C8F 100%);

  --font-title: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1600px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 88px;
  --topbar-h: 40px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 6px 18px rgba(25, 47, 98, .08);
  --shadow-md: 0 18px 40px rgba(25, 47, 98, .14);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--secondary); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
section[id], [id].anchor { scroll-margin-top: 90px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10000;
  background: var(--secondary); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 600; transition: top .25s;
}
.skip-link:focus { top: 12px; color: #fff; }

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 860px; margin: 0 auto clamp(36px, 4vw, 60px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-title); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad-btn); border-radius: 2px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.section-title span { color: var(--primary); }
.section-lead { color: var(--muted); font-size: 1.125rem; }

/* ---------- 3. Botones ---------- */
.btn {
  --btn-pad-y: 14px; --btn-pad-x: 28px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  line-height: 1.2; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.btn i { font-size: 1.1em; }
.btn--grad {
  color: #fff; background: var(--grad-btn); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 8px 20px rgba(42, 133, 209, .28);
}
.btn--grad:hover, .btn--grad:focus-visible {
  color: #fff; background-position: 100% 50%; transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(25, 47, 98, .32);
}
.btn--light { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--light:hover, .btn--light:focus-visible { color: var(--secondary); background: #fff; border-color: #fff; transform: translateY(-2px); }
.btn--outline { color: var(--secondary); border-color: var(--secondary); background: transparent; }
.btn--outline:hover, .btn--outline:focus-visible { color: #fff; background: var(--secondary); transform: translateY(-2px); }
.btn--white { color: var(--secondary); background: #fff; }
.btn--white:hover, .btn--white:focus-visible { color: #fff; background: var(--primary); transform: translateY(-2px); }
.btn--sm { --btn-pad-y: 10px; --btn-pad-x: 20px; font-size: .88rem; }
.btn--xs { --btn-pad-y: 8px; --btn-pad-x: 18px; font-size: .85rem; }

/* Efecto pulse: anillo que se expande (funciona siempre, sin depender de prefers-reduced-motion) */
.pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(42, 133, 209, .55);
  animation: gyg-pulse 2.2s cubic-bezier(.4, 0, .6, 1) infinite !important;
  pointer-events: none;
}
.pulse--wa::after { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation-name: gyg-pulse-wa !important; }
@keyframes gyg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 133, 209, .55); }
  70% { box-shadow: 0 0 0 18px rgba(42, 133, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 133, 209, 0); }
}
@keyframes gyg-pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 4. Topbar ---------- */
.topbar {
  background: var(--primary); color: #fff; font-size: .85rem; font-weight: 500;
  height: var(--topbar-h); display: flex; align-items: center; position: relative; z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar i { margin-right: .5em; }

/* ---------- 5. Header ---------- */
.site-header {
  position: absolute; left: 0; right: 0; top: var(--topbar-h); z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-sticky {
  position: fixed; top: 0; background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 6px 24px rgba(25, 47, 98, .1);
  height: 76px; animation: header-down .5s var(--ease) both;
}
@keyframes header-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: inline-flex; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: opacity .35s; }
.brand .brand-logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-sticky .brand-logo--light { opacity: 0; }
.site-header.is-sticky .brand-logo--dark { opacity: 1; }
.site-header.is-sticky .brand img { height: 46px; }

.main-nav ul { list-style: none; display: flex; gap: clamp(8px, 1.6vw, 34px); }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 4px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: #fff;
}
.main-nav a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a:hover { color: #fff; }
.site-header.is-sticky .main-nav a { color: var(--text); }
.site-header.is-sticky .main-nav a:hover, .site-header.is-sticky .main-nav a[aria-current="page"] { color: var(--primary-dark); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .12); position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s, background-color .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.site-header.is-sticky .nav-toggle { background: var(--bg-soft); }
.site-header.is-sticky .nav-toggle span { background: var(--secondary); }

/* Menú móvil (por encima del header y del logo) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000; background: var(--grad-secondary);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateX(100%);
  transition: transform .5s var(--ease), opacity .4s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: transform .5s var(--ease), opacity .4s var(--ease), visibility 0s; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mobile-menu__head img { height: 46px; width: auto; }
.mobile-menu__close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: transparent; color: #fff; font-size: 1.3rem;
}
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav li { border-bottom: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .5s var(--ease); }
.mobile-menu.is-open nav li { opacity: 1; transform: none; }
.mobile-menu.is-open nav li:nth-child(2) { transition-delay: .06s; }
.mobile-menu.is-open nav li:nth-child(3) { transition-delay: .12s; }
.mobile-menu.is-open nav li:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open nav li:nth-child(5) { transition-delay: .24s; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 1.35rem;
}
.mobile-menu nav a[aria-current="page"] { color: #8cc4f2; }
.mobile-menu nav a i { font-size: .9rem; opacity: .6; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.mobile-menu__foot .btn { width: 100%; margin-bottom: 20px; }
.mobile-menu__foot a:not(.btn) { color: #fff; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: clamp(660px, 100vh, 1000px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--secondary);
  padding: calc(var(--topbar-h) + var(--header-h) + 40px) 0 120px;
}
.hero__slides { position: absolute; inset: 0; will-change: transform; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; z-index: 1;
}
.hero__slide.is-active { opacity: 1; z-index: 2; animation: kenburns 9s linear both; }
.hero__slide.is-entering { opacity: 1; z-index: 3; }
.hero__slide.wipe-next { animation: wipe-next 1.2s var(--ease) both, kenburns 9s linear both; }
.hero__slide.wipe-prev { animation: wipe-prev 1.2s var(--ease) both, kenburns 9s linear both; }
@keyframes wipe-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: 4;
  background:
    linear-gradient(90deg, rgba(15, 30, 69, .78) 0%, rgba(25, 47, 98, .5) 45%, rgba(25, 47, 98, .12) 100%),
    linear-gradient(0deg, rgba(15, 30, 69, .45) 0%, rgba(15, 30, 69, 0) 40%);
}
.hero__content { position: relative; z-index: 5; }
.hero__inner { max-width: 900px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
  font-family: var(--font-title); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__eyebrow i { color: #8cc4f2; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.6rem); font-weight: 800; line-height: 1.07; margin-bottom: 24px; }
.hero__title span {
  background: linear-gradient(90deg, #8cc4f2, #fff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 720px; color: rgba(255, 255, 255, .92); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 64px); }
.hero__stats li { position: relative; padding-left: 20px; }
.hero__stats li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad-btn); }
.stat-number { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
.stat-label { font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 6; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff;
  backdrop-filter: blur(6px); transform: translateY(-50%); transition: background-color .3s, border-color .3s, transform .3s;
}
.hero__arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero__arrow--prev { left: clamp(10px, 2vw, 32px); }
.hero__arrow--next { right: clamp(10px, 2vw, 32px); }
.hero__dots { position: absolute; z-index: 6; bottom: 44px; right: var(--gutter); display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); transition: background-color .3s, width .3s; }
.hero__dots button.is-active { background: #fff; width: 56px; }
.hero__scroll {
  position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .45); animation: bounce-y 2s ease-in-out infinite !important;
}
.hero__scroll:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
@keyframes bounce-y { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Animación de entrada de títulos principales */
.title-reveal { animation: title-in 1.1s var(--ease) both !important; }
.title-reveal--d1 { animation-delay: .15s !important; }
.title-reveal--d2 { animation-delay: .3s !important; }
.title-reveal--d3 { animation-delay: .45s !important; }
.title-reveal--d4 { animation-delay: .6s !important; }
@keyframes title-in {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); filter: blur(4px); }
  to { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); filter: blur(0); }
}

/* ---------- 7. Marquesina de texto ---------- */
.text-marquee {
  width: 100%; overflow: hidden; color: #fff; padding: 22px 0;
  background: linear-gradient(90deg, #2A85D1, #1E6BB0, #192F62, #1E6BB0, #2A85D1);
  background-size: 300% 100%; animation: grad-shift 14s linear infinite !important;
}
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-x var(--marquee-speed, 32s) linear infinite !important;
  will-change: transform;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused !important; }
.marquee--reverse .marquee-track { animation-direction: reverse !important; }
@keyframes marquee-x { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.text-marquee .marquee-track { --marquee-speed: 40s; }
.text-marquee__item {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap;
  font-family: var(--font-title); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.75rem); text-transform: uppercase; letter-spacing: .02em;
}
.text-marquee__item i { font-size: .6em; opacity: .7; }

/* ---------- 8. Marquesina de soluciones ---------- */
.solutions { overflow: hidden; }
.solutions .marquee { width: 100%; overflow: hidden; padding: 6px 0; }
.solution-card {
  flex: 0 0 auto; width: clamp(240px, 19.2vw, 400px); margin-right: 20px;
  border-radius: var(--radius); overflow: hidden; position: relative; display: block; color: #fff;
  background: var(--secondary);
}
.solution-card__media { aspect-ratio: 4 / 5; overflow: hidden; }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.solution-card:hover .solution-card__media img, .solution-card:focus-visible .solution-card__media img { transform: scale(1.12); }
.solution-card__body {
  position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px;
  background: linear-gradient(0deg, rgba(15, 30, 69, .92) 0%, rgba(15, 30, 69, .55) 60%, rgba(15, 30, 69, 0) 100%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.solution-card__body h3 { color: #fff; font-size: clamp(1.05rem, 1.25vw, 1.35rem); margin: 0; }
.solution-card__body .arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); transition: background-color .35s, transform .35s var(--ease);
}
.solution-card:hover .arrow { background: var(--primary); transform: rotate(-45deg); }
.solutions__cta { text-align: center; margin-top: clamp(36px, 4vw, 56px); }

/* ---------- 9. Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); }
.benefit-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 2.6vw, 42px); overflow: hidden; height: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.benefit-card::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-secondary); opacity: 0; transition: opacity .45s var(--ease); z-index: 0;
}
.benefit-card > * { position: relative; z-index: 1; }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit-card:hover::before { opacity: 1; }
.benefit-card:hover h3, .benefit-card:hover p { color: #fff; }
.benefit-card__icon {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff; font-size: 1.6rem; background: var(--grad-btn); box-shadow: 0 10px 22px rgba(42, 133, 209, .3);
  transition: transform .45s var(--ease);
}
.benefit-card:hover .benefit-card__icon { transform: rotate(-8deg) scale(1.06); }
.benefit-card h3 { font-size: 1.25rem; transition: color .4s; }
.benefit-card p { color: var(--muted); margin: 0; transition: color .4s; }
.benefit-card__num {
  position: absolute; right: 24px; top: 18px; font-family: var(--font-title); font-weight: 800; font-size: 3.4rem;
  color: rgba(42, 133, 209, .1); line-height: 1; z-index: 1;
}
.benefit-card:hover .benefit-card__num { color: rgba(255, 255, 255, .12); }

/* Formas decorativas con parallax */
.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.deco--1 { width: 420px; height: 420px; right: -160px; top: 40px; background: radial-gradient(circle, rgba(42, 133, 209, .14), transparent 70%); }
.deco--2 { width: 300px; height: 300px; left: -120px; bottom: 30px; background: radial-gradient(circle, rgba(25, 47, 98, .1), transparent 70%); }
.section > .container { position: relative; z-index: 1; }

/* ---------- 10. Galería marquesina ---------- */
.gallery { padding: clamp(40px, 5vw, 70px) 0; overflow: hidden; }
.gallery .marquee { width: 100%; overflow: hidden; }
.gallery__item { flex: 0 0 auto; width: 350px; height: 350px; margin-right: 20px; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 350px; height: 350px; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.12); }

/* ---------- 11. Instagram ---------- */
.instagram { background: #fff; padding: clamp(50px, 6vw, 90px) 0; }
.instagram__head { text-align: center; margin-bottom: 26px; }
.instagram__head .eyebrow { font-size: 1rem; }
.instagram__head .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--grad-btn); border-radius: 2px; }
.instagram__feed { width: 90vw; margin: 0 auto; background: #fff; min-height: 120px; }

/* ---------- 12. Título de página ---------- */
.page-title {
  position: relative; overflow: hidden; color: #fff; z-index: 2;
  background: var(--grad-secondary); background-size: 200% 200%; animation: grad-move 16s ease-in-out infinite alternate !important;
  padding: calc(var(--topbar-h) + var(--header-h) + 28px) 0 38px;
  box-shadow: 0 14px 30px rgba(15, 30, 69, .25);
}
@keyframes grad-move { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.page-title__shape {
  position: absolute; right: -80px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(42, 133, 209, .14); pointer-events: none;
}
.page-title__shape--2 { right: 18%; top: auto; bottom: -260px; width: 360px; height: 360px; border-width: 40px; border-color: rgba(255, 255, 255, .05); }
.page-title .container { position: relative; z-index: 1; }
.page-title h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 8px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: rgba(255, 255, 255, .78); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #8cc4f2; }

/* ---------- 13. Empresa ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-media__img { border-radius: var(--radius); overflow: hidden; }
.about-media__img img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .about-media__img img { transform: scale(1.05); }
.about-badge {
  position: absolute; right: clamp(-10px, -1vw, 0px); bottom: 34px; background: var(--grad-btn); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px;
}
.about-badge strong { font-family: var(--font-title); font-size: 2.6rem; line-height: 1; }
.about-badge span { font-size: .9rem; line-height: 1.3; }
.about-text p { color: #3a3f48; }
.about-text .lead { font-size: 1.2rem; color: var(--text); font-weight: 500; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--primary); margin-top: .35em; }
.check-list--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.about-quote {
  border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-title); font-weight: 600; color: var(--secondary); margin: 0 0 30px;
}

/* ---------- 14. Servicios grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.service-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: visible; color: var(--text);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--text); }
.service-card__media { position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.service-card__img { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 10; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.1); }
.service-card__icon {
  position: absolute; z-index: 3; left: 28px; bottom: -32px; width: 66px; height: 66px; border-radius: 18px;
  display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: var(--grad-btn);
  box-shadow: 0 10px 24px rgba(25, 47, 98, .3); border: 4px solid #fff;
}
.service-card__body { padding: 48px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card__body p { color: var(--muted); font-size: 1rem; flex: 1; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 600; font-size: .92rem; color: var(--primary-dark); }
.link-more i { transition: transform .35s var(--ease); }
.service-card:hover .link-more i, .link-more:hover i { transform: translateX(5px); }

/* Banner diferencial */
.diff-banner {
  margin-top: clamp(50px, 6vw, 90px); position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  background: var(--grad-secondary); background-size: 200% 200%; animation: grad-move 14s ease-in-out infinite alternate !important;
  color: #fff; padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 70px); align-items: center;
}
.diff-banner::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(42, 133, 209, .18); pointer-events: none;
}
.diff-banner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.diff-banner .eyebrow { color: #8cc4f2; }
.diff-banner p { color: rgba(255, 255, 255, .85); }
.diff-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; z-index: 1; }
.diff-list li {
  display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm); padding: 18px; transition: background-color .35s, transform .35s var(--ease);
}
.diff-list li:hover { background: rgba(255, 255, 255, .13); transform: translateY(-3px); }
.diff-list i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); font-size: 1.05rem; }
.diff-list strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.diff-list span { font-size: .92rem; color: rgba(255, 255, 255, .8); line-height: 1.45; display: block; }

/* ---------- 15. Servicio individual ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 70px); align-items: start; }
.detail-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; position: relative; }
.detail-hero-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.detail-hero-img .service-card__icon { left: 28px; bottom: 28px; }
.detail-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.detail-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.detail-content p { color: #3a3f48; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 30px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border); line-height: 1.45; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.feature-list li:hover { border-color: rgba(42, 133, 209, .45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-list i { color: var(--primary); margin-top: .2em; }
.highlight-box {
  display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(42, 133, 209, .1), rgba(25, 47, 98, .06)); border: 1px solid rgba(42, 133, 209, .25); margin: 10px 0 30px;
}
.highlight-box i { font-size: 1.8rem; color: var(--primary); }
.highlight-box p { margin: 0; font-weight: 500; color: var(--secondary); }

.sidebar { position: sticky; top: 100px; display: grid; gap: 26px; }
.side-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; }
.side-box h3 { font-size: 1.15rem; margin-bottom: 16px; }
.side-nav { list-style: none; display: grid; gap: 6px; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-title); font-weight: 500; font-size: .95rem; background: var(--bg-soft); transition: background-color .3s, color .3s, padding .3s;
}
.side-nav a i { font-size: .8rem; color: var(--primary); }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: var(--secondary); color: #fff; padding-left: 22px; }
.side-nav a:hover i, .side-nav a[aria-current="page"] i { color: #fff; }
.side-cta { background: var(--grad-secondary); color: #fff; border: 0; text-align: center; position: relative; overflow: hidden; }
.side-cta h3 { color: #fff; font-size: 1.35rem; }
.side-cta p { color: rgba(255, 255, 255, .85); font-size: .98rem; }
.side-cta__icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 1.8rem; color: #25D366; }
.side-cta .btn { width: 100%; }
.side-cta .side-cta__phone { display: block; margin-top: 14px; color: #fff; font-family: var(--font-title); font-weight: 600; }

/* ---------- 16. Novedades ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 1.8vw, 28px); }
.news-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.news-card[hidden] { display: none; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.news-card__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.1); }
.news-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-dark); font-weight: 600; margin-bottom: 8px; display: inline-flex; gap: 6px; align-items: center; }
.news-card h2, .news-card h3 { font-size: 1.12rem; line-height: 1.32; margin-bottom: 10px; }
.news-card h2 a, .news-card h3 a { color: var(--text); }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--primary-dark); }
.news-card p { font-size: .95rem; color: var(--muted); line-height: 1.55; flex: 1; }
.news-card .btn { align-self: flex-start; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; }
.pagination button {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-family: var(--font-title); font-weight: 600; color: var(--text); transition: all .3s;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.pagination button[aria-current="page"] { background: var(--grad-btn); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.article { max-width: 100%; }
.article__img { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.article__img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.article__meta i { color: var(--primary); margin-right: 6px; }
.article__body { font-size: 1.1rem; }
.article__body p { color: #33383f; }
.article__body ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1.4em; padding: 20px 24px; background: var(--bg-soft); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.article__body .callout { padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(42, 133, 209, .08); border: 1px solid rgba(42, 133, 209, .22); font-weight: 500; color: var(--secondary); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border); }
.share span { font-family: var(--font-title); font-weight: 600; margin-right: 6px; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--secondary); transition: background-color .3s, color .3s, transform .3s; }
.share a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.side-news { list-style: none; display: grid; gap: 16px; }
.side-news a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; color: var(--text); }
.side-news img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); }
.side-news strong { display: block; font-family: var(--font-title); font-size: .92rem; line-height: 1.35; font-weight: 600; transition: color .3s; }
.side-news small { color: var(--muted); font-size: .75rem; }
.side-news a:hover strong { color: var(--primary-dark); }

/* ---------- 17. Contacto ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 28px); margin-bottom: clamp(36px, 4vw, 60px); }
.contact-card {
  text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 24px; height: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: var(--grad-btn); box-shadow: 0 12px 26px rgba(42, 133, 209, .3);
}
.contact-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 40px); align-items: stretch; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 460px; height: 100%; border: 1px solid var(--border); }
.map-box iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.form-box { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(26px, 3vw, 48px); height: 100%; display: flex; flex-direction: column; }
.form-box h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.form-box > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-title); font-weight: 600; font-size: .88rem; }
.form-field label .req { color: #c0392b; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #cfd8e5;
  border-radius: var(--radius-sm); padding: 13px 16px; transition: border-color .3s, box-shadow .3s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42, 133, 209, .18); }
.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }
.field-error { color: #b0281a; font-size: .85rem; min-height: 1.1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { margin-top: 18px; padding: 0; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-success { padding: 14px 18px; background: #e7f7ee; color: #146c3a; border: 1px solid #9ad6b3; }
.form-status.is-error { padding: 14px 18px; background: #fdecea; color: #a12317; border: 1px solid #f1aaa2; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.social-inline { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; flex-wrap: wrap; }
.social-inline span { font-family: var(--font-title); font-weight: 600; margin-right: 4px; }
.social-inline a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: #fff; font-size: 1.1rem; transition: background-color .3s, transform .3s; }
.social-inline a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------- 18. 404 ---------- */
.error-page { text-align: center; padding: clamp(70px, 9vw, 140px) 0; }
.error-code {
  font-family: var(--font-title); font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); line-height: 1;
  background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.error-page p { color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.error-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--secondary); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #8cc4f2; }
.site-footer .btn--white { color: var(--secondary); }
.site-footer .btn--white:hover, .site-footer .btn--white:focus-visible { color: #fff; }
.footer-row { padding: 34px 0; }
.footer-row + .footer-row { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top img { height: 52px; width: auto; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; }
.footer-nav a { font-family: var(--font-title); font-weight: 600; font-size: .95rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .25); transition: background-color .35s, border-color .35s, transform .35s var(--ease);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-4px); }
.footer-mid { display: grid; grid-template-columns: 65% 35%; padding: 0; }
.footer-mid__left { padding: 50px 50px 50px 0; }
.footer-mid__right { position: relative; padding: 50px 0 50px 50px; }
.footer-mid__right::before { content: ""; position: absolute; left: 0; top: 50px; bottom: 50px; width: 1px; background: rgba(255, 255, 255, .18); }
.footer-quote { font-family: var(--font-title); font-weight: 700; color: #fff; font-size: 2.5rem; line-height: 1.2; margin-bottom: 26px; }
@media (max-width: 768px) { .footer-quote { font-size: 1.75rem; } }
.footer-quote span { color: #8cc4f2; }
.footer-contact { list-style: none; display: grid; gap: 10px; line-height: 1.4; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.footer-contact i { width: 18px; text-align: center; margin-top: .25em; color: #8cc4f2; }
.footer-contact .footer-wa { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.8rem); margin-bottom: 6px; align-items: center; }
.footer-contact .footer-wa i { color: #25D366; font-size: 1.1em; width: auto; margin-top: 0; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: .9rem; padding: 22px 0; }
.to-top { justify-self: start; display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; color: #fff; font-family: var(--font-title); font-weight: 600; padding: 6px 0; }
.to-top i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; transition: transform .35s var(--ease), background-color .35s; }
.to-top:hover i { transform: translateY(-4px); background: var(--primary); border-color: var(--primary); }
.copyright { text-align: center; margin: 0; }

/* ---------- 20. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; font-size: 2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22); transition: transform .35s var(--ease), background-color .3s;
  transform: translateZ(0);
}
.wa-float:hover, .wa-float:focus-visible { color: #fff; background: #1ebe5b; transform: scale(1.07); }
.wa-float__tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(10px, -50%); white-space: nowrap;
  background: #fff; color: var(--text); font-family: var(--font-title); font-weight: 600; font-size: .9rem; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; pointer-events: none;
}
.wa-float__tip::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1280px) {
  .main-nav ul { gap: 14px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .diff-banner { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-mid { grid-template-columns: 1fr; }
  .footer-mid__left { padding: 44px 0 30px; }
  .footer-mid__right { padding: 30px 0 44px; }
  .footer-mid__right::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
}
@media (max-width: 900px) {
  .about-grid, .contact-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list, .check-list--2 { grid-template-columns: 1fr; }
  .hero__arrow { top: auto; bottom: 30px; transform: none; width: 46px; height: 46px; }
  .hero__dots { display: none; }
}
@media (max-width: 768px) {
  :root { --topbar-h: 4px; --header-h: 76px; }
  .topbar { font-size: 0; }
  .topbar .container { display: none; }
  .brand img { height: 44px; }
  .hero { padding-bottom: 110px; min-height: auto; }
  .hero__actions .btn { flex: 1 1 auto; }
  .benefits-grid, .services-grid { grid-template-columns: 1fr; }
  .diff-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item img { width: 260px; height: 260px; }
  .solution-card { width: 64vw; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .to-top { justify-self: center; }
  .page-title { padding-bottom: 28px; }
  .page-title__shape { width: 300px; height: 300px; border-width: 40px; }
  .wa-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wa-float__tip { display: none; }
}
@media (max-width: 560px) {
  .contact-cards, .news-grid { grid-template-columns: 1fr; }
  .about-badge { right: 12px; bottom: 12px; padding: 14px 18px; }
  .about-badge strong { font-size: 2rem; }
  .footer-social a { width: 50px; height: 50px; font-size: 1.3rem; }
  .map-box, .map-box iframe { min-height: 340px; }
  .solution-card { width: 72vw; }
}

/* Ajustes de tipografía en artículos */
.article__body h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-top: 1.3em; }

/* Evita desbordes horizontales de formas decorativas y animaciones laterales */
.section, main { overflow-x: clip; }

/* Deja lugar a las flechas laterales del hero para que no tapen el texto */
@media (min-width: 901px) {
  .hero__content { padding-inline: max(var(--gutter), 100px); }
}

/* ---------- Ajustes: títulos de sección en 800 ---------- */
h1, h2, .section-title, .page-title h1, .hero__title, .footer-quote, .diff-banner h2, .error-code { font-weight: 800; }

/* ---------- Ajustes: overlay sutil del header (estado sin scroll) ---------- */
.site-header:not(.is-sticky) {
  background: linear-gradient(180deg, rgba(15, 30, 69, .42) 0%, rgba(15, 30, 69, .18) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 18px rgba(15, 30, 69, .12);
}

/* ---------- Inicio: últimas novedades (1 destacada + 3 compactas) ---------- */
.latest-news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(32px, 4vw, 56px); }
.latest-news__head > div:first-child { max-width: 820px; }
.latest-news__head .section-lead { margin: 0; }
.latest-news__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px, 2vw, 30px); }

.news-feature { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; min-height: 560px; background: var(--secondary); }
.news-feature__link { position: absolute; inset: 0; display: block; color: #fff; }
.news-feature__link:hover { color: #fff; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-feature:hover img { transform: scale(1.08); }
.news-feature__link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15, 30, 69, .95) 0%, rgba(15, 30, 69, .6) 45%, rgba(15, 30, 69, .05) 100%);
}
.news-feature__badge {
  position: absolute; z-index: 2; top: 24px; left: 24px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--grad-btn); font-family: var(--font-title); font-weight: 600; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(42, 133, 209, .35);
}
.news-feature__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 44px); }
.news-feature__body .news-date { color: #8cc4f2; }
.news-feature__body h3 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 800; margin-bottom: 12px; }
.news-feature__body p { color: rgba(255, 255, 255, .85); max-width: 640px; margin-bottom: 18px; }
.news-feature__more { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 600; font-size: .95rem; }
.news-feature__more i { transition: transform .35s var(--ease); }
.news-feature:hover .news-feature__more i { transform: translateX(6px); }

.news-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 20px); }
.news-row { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s; }
.news-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-btn); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.news-row:hover { box-shadow: var(--shadow-md); transform: translateX(-6px); border-color: transparent; }
.news-row:hover::before { transform: scaleY(1); }
.news-row__link { display: grid; grid-template-columns: auto 130px 1fr auto; align-items: center; gap: 20px; padding: 16px 22px 16px 18px; height: 100%; color: var(--text); }
.news-row__link:hover { color: var(--text); }
.news-row__num { font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; line-height: 1; color: rgba(42, 133, 209, .25); transition: color .4s; }
.news-row:hover .news-row__num { color: var(--primary); }
.news-row__img { display: block; width: 130px; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; }
.news-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-row:hover .news-row__img img { transform: scale(1.12); }
.news-row__body { min-width: 0; }
.news-row__body .news-date { margin-bottom: 4px; }
.news-row__body h3 { font-size: 1.08rem; line-height: 1.32; margin: 0 0 6px; transition: color .3s; }
.news-row:hover h3 { color: var(--primary-dark); }
.news-row__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.news-row__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--secondary); transition: background-color .35s, color .35s, transform .35s var(--ease); }
.news-row:hover .news-row__arrow { background: var(--primary); color: #fff; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .latest-news__grid { grid-template-columns: 1fr; }
  .news-feature { min-height: 460px; }
}
@media (max-width: 768px) {
  .latest-news__head { flex-direction: column; align-items: flex-start; }
  .news-feature { min-height: 420px; }
  .news-row__link { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .news-row__num, .news-row__arrow, .news-row__excerpt { display: none; }
  .news-row__img { width: 96px; }
  .news-row:hover { transform: none; }
}

/* ---------- Inicio: banner de matrículas (degradé de colores primarios) ---------- */
.matricula { padding: 0 0 clamp(64px, 8vw, 120px); }
.matricula-banner {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(115deg, #2A85D1 0%, #2370BE 30%, #1D4F95 62%, #192F62 100%);
  background-size: 220% 220%; animation: mb-grad 12s ease-in-out infinite alternate !important;
  padding: clamp(34px, 4.5vw, 72px);
  display: grid; grid-template-columns: .95fr 1.3fr; gap: clamp(30px, 4vw, 70px); align-items: center;
  box-shadow: 0 30px 60px -18px rgba(25, 47, 98, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
@keyframes mb-grad { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }

/* Capas decorativas */
.mb-pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.mb-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.mb-orb--1 { width: 460px; height: 460px; top: -220px; left: -120px; background: radial-gradient(circle, rgba(140, 196, 242, .55), rgba(42, 133, 209, 0) 70%); }
.mb-orb--2 { width: 520px; height: 520px; bottom: -280px; right: -160px; background: radial-gradient(circle, rgba(42, 133, 209, .6), rgba(25, 47, 98, 0) 70%); }
.mb-shine {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  transform: skewX(-18deg); animation: mb-shine 7s ease-in-out infinite !important;
}
@keyframes mb-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.mb-watermark {
  position: absolute; z-index: -1; right: 4%; top: 50%; margin-top: -170px; font-size: 340px; line-height: 1;
  color: rgba(255, 255, 255, .05); pointer-events: none;
}

/* Columna de texto */
.matricula-banner__intro { position: relative; }
.mb-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
  font-family: var(--font-title); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.mb-badge i { color: #bfe0fb; }
.matricula-banner h2 { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.45rem); line-height: 1.15; margin-bottom: 16px; }
.matricula-banner h2 span {
  background: linear-gradient(90deg, #ffffff, #bfe0fb); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: underline; text-decoration-color: rgba(191, 224, 251, .6); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.matricula-banner p { color: rgba(255, 255, 255, .88); margin: 0 0 26px; max-width: 520px; }
.matricula-banner .btn--white { color: var(--secondary); }
.matricula-banner .btn--white:hover { color: #fff; background: var(--secondary); }

/* Tarjetas de jurisdicciones */
.matricula-list { position: relative; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.matricula-list li {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 24px 22px 20px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(15, 30, 69, .5);
  transition: transform .45s var(--ease), background .45s, border-color .45s, box-shadow .45s;
}
.matricula-list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #bfe0fb, #fff); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.matricula-list li:hover {
  transform: translateY(-6px); border-color: rgba(255, 255, 255, .5);
  background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1));
  box-shadow: 0 20px 40px -14px rgba(15, 30, 69, .6);
}
.matricula-list li:hover::after { transform: scaleX(1); }
.mb-num {
  position: absolute; right: 18px; top: 14px; font-family: var(--font-title); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: rgba(255, 255, 255, .14);
}
.mb-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 12px;
  background: #fff; color: var(--primary); font-size: 1.35rem; box-shadow: 0 10px 22px rgba(15, 30, 69, .25);
  transition: transform .45s var(--ease), background-color .45s, color .45s;
}
.matricula-list li:hover .mb-icon { transform: rotate(-8deg) scale(1.06); background: var(--secondary); color: #fff; }
.matricula-list strong { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.mb-desc { font-size: .9rem; color: rgba(255, 255, 255, .8); line-height: 1.35; }
.mb-check { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #d6ecfd; letter-spacing: .02em; }

@media (max-width: 1080px) {
  .matricula-banner { grid-template-columns: 1fr; }
  .mb-watermark { font-size: 240px; margin-top: -120px; }
}
@media (max-width: 560px) {
  .matricula-banner { padding: 30px 20px; gap: 26px; }
  .matricula-list { gap: 10px; }
  .matricula-list li { padding: 16px 14px; }
  .mb-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.05rem; margin-bottom: 8px; }
  .matricula-list strong { font-size: .98rem; }
  .mb-desc { font-size: .8rem; }
  .mb-num, .mb-check, .mb-watermark { display: none; }
  .matricula-banner .btn { width: 100%; }
}

/* Grid de servicios: la última fila incompleta queda centrada */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.services-grid > .service-card { flex: 0 0 calc((100% - 2 * clamp(20px, 2vw, 32px)) / 3); }
@media (max-width: 1080px) { .services-grid > .service-card { flex-basis: calc((100% - clamp(20px, 2vw, 32px)) / 2); } }
@media (max-width: 768px) { .services-grid > .service-card { flex-basis: 100%; } }
