/* ==========================================================================
   Grupo Amplitud Canarias — estilos
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-900: #081a31;
  --navy-700: #13345f;
  --red: #b91c1c;
  --red-700: #991b1b;
  --green: #10b981;
  --green-700: #059669;
  --card: #f2f7fc;
  --soft: #eef3f8;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #fff;

  --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, sans-serif;

  --gutter: 1rem;
  --header-h: 5.5rem;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .06);
  --shadow-md: 0 14px 34px -12px rgba(11, 37, 69, .22);
  --shadow-lg: 0 30px 60px -20px rgba(8, 26, 49, .45);
}

@media (min-width: 640px)  { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--navy); }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--navy); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.container--narrow { max-width: 56rem; }
.container--mid { max-width: 66rem; }
.center { text-align: center; }

.section { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }

.dots {
  background-color: #fff;
  background-image: radial-gradient(#d4dbe4 1.2px, transparent 1.3px);
  background-size: 20px 20px;
}
.dots-dark {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.btn::after { /* brillo que barre al pasar el ratón */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i { transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(185, 28, 28, .8); }
.btn--red:hover { background: var(--red-700); box-shadow: 0 14px 26px -10px rgba(185, 28, 28, .85); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--pill { background: var(--red); color: #fff; border-radius: 999px; padding: .85rem 1.6rem; font-size: .85rem; }
.btn--pill:hover { background: var(--red-700); box-shadow: 0 10px 22px -10px rgba(185, 28, 28, .9); }
.btn--block { width: 100%; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: #000; color: #cbd5e1; font-size: .8rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .55rem; }
.topbar__group { display: flex; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
a.topbar__item:hover { color: #fff; }
.topbar .fa-location-dot, .topbar .fa-phone { color: var(--red); }
.topbar__wa { color: var(--green); font-size: 1rem; }
@media (max-width: 520px) {
  .topbar__inner { justify-content: center; }
  .topbar__inner > .topbar__item:first-child { display: none; }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #eef2f6;
  transition: box-shadow .35s, background-color .35s;
}
@supports (backdrop-filter: blur(8px)) {
  .header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(11, 37, 69, .25); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.header.is-scrolled .header__inner { height: 4.25rem; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand__mark { width: 2.9rem; height: auto; overflow: visible; }
.brand__peak { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.brand__peak--red { stroke: var(--red); }
.brand__peak--navy { stroke: var(--navy); }
.js .brand__peak { stroke-dashoffset: 40; }
.is-loaded .brand__peak { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-in-out); }
.is-loaded .brand__peak--navy { transition-delay: .25s; }
.brand:hover .brand__peak--red { animation: peak 1s var(--ease-in-out); }
.brand:hover .brand__peak--navy { animation: peak 1s .12s var(--ease-in-out); }
@keyframes peak { 0% { stroke-dashoffset: 0; } 49% { stroke-dashoffset: -40; } 50% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font-family: var(--font-head); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.brand__name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; color: var(--red); }

/* Navegación escritorio */
.nav { display: none; }
@media (min-width: 1100px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.9rem); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 0;
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--navy);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active { font-weight: 700; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__item--dropdown { position: relative; display: flex; align-items: center; gap: .3rem; }
.nav__toggle { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 4px; color: var(--ink); transition: background-color .2s, color .2s; }
.nav__toggle:hover { background: var(--card); color: var(--navy); }
.nav__toggle .fa-chevron-down { font-size: .62rem; transition: transform .3s var(--ease); }
.dropdown {
  position: absolute; top: calc(100% + .9rem); left: -1rem;
  min-width: 19rem; padding: .5rem;
  background: #fff; border: 1px solid #edf1f6; border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* puente hover */
.dropdown a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem;
  font-size: .87rem; color: var(--ink);
  border-radius: 4px;
  transition: background-color .2s, color .2s, padding-left .25s var(--ease);
}
.dropdown a i { width: 1rem; color: var(--red); font-size: .85rem; text-align: center; }
.dropdown a:hover { background: var(--card); color: var(--navy); padding-left: 1.05rem; }
.dropdown a.is-current { background: var(--card); color: var(--navy); font-weight: 700; }
.dropdown__all { margin-bottom: .35rem; padding-bottom: .35rem; border-bottom: 1px solid #edf1f6; }
.dropdown__all a { font-weight: 700; color: var(--navy); }
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown,
.nav__item--dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.nav__item--dropdown:hover .fa-chevron-down,
.nav__item--dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 400px) { .header__actions .btn--pill { display: none; } }

/* Hamburguesa */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 .65rem; border-radius: 6px; transition: background-color .2s; }
.burger:hover { background: var(--card); }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1100px) { .burger { display: none; } }

/* Menú móvil */
.mobile-menu { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 49, .55); opacity: 0; transition: opacity .35s; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 22rem);
  display: flex; flex-direction: column;
  background: #fff;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { pointer-events: auto; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.mobile-menu__close { width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.2rem; color: var(--navy); transition: background-color .2s, transform .3s var(--ease); }
.mobile-menu__close:hover { background: var(--card); transform: rotate(90deg); }
.mobile-menu__list { padding: .75rem 1.25rem; }
.mobile-menu__list > li { border-bottom: 1px solid #f1f5f9; opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .5s var(--ease); }
.mobile-menu.is-open .mobile-menu__list > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) { transition-delay: .20s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(6) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(7) { transition-delay: .32s; }
.mobile-menu__list a, .mobile-menu__sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .95rem 0;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy);
  text-align: left;
}
.mobile-menu__sub-toggle i { font-size: .75rem; transition: transform .3s var(--ease); }
.mobile-menu__sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.mobile-menu__sub { padding: 0 0 .75rem .75rem; border-left: 2px solid var(--red); margin-bottom: .5rem; }
.mobile-menu__sub a { padding: .5rem 0; font-family: var(--font-body); font-size: .92rem; font-weight: 400; color: var(--text); }
.mobile-menu__foot { margin-top: auto; padding: 1.25rem; display: grid; gap: .75rem; background: var(--card); }
.mobile-menu__contact { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--navy); font-weight: 500; }
.mobile-menu__contact i { color: var(--red); width: 1rem; }
.mobile-menu__contact .fa-whatsapp { color: var(--green); }

/* Colapsables (menú móvil y empleo) */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.collapse > * { min-height: 0; overflow: hidden; }
.collapse.is-open { grid-template-rows: 1fr; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 30%, #12335d 0%, transparent 60%), var(--navy);
  color: #fff;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero__inner {
  position: relative;
  display: grid; gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem);
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; min-height: min(41rem, calc(100vh - 7.5rem)); }
}

.hero__title {
  font-size: clamp(2.45rem, 1rem + 3.7vw, 4.1rem);
  font-weight: 900;
  font-style: italic;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .15em .06em 0; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 31rem; font-size: clamp(1rem, .95rem + .25vw, 1.1rem); font-weight: 300; line-height: 1.7; color: #cbd5e1; margin-bottom: 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Paneles inclinados */
.hero__visual { position: relative; height: clamp(18rem, 52vw, 29rem); }
.hero__panel { position: absolute; overflow: hidden; will-change: transform; transition: transform .6s var(--ease); }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel--back {
  left: 0; top: 0; width: 76%; height: 100%;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  box-shadow: var(--shadow-lg);
}
.hero__panel--back img { object-position: 30% center; }
.hero__panel--front, .hero__panel--gap {
  right: 0; top: 5%; width: 54%; height: 90%;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}
.hero__panel--gap { right: calc(0px + .6rem); background: var(--navy); }
.hero__panel--front img { object-position: 60% center; }
.hero__panel--front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%); }
.hero__stripe {
  position: absolute; left: 4%; bottom: -1.25rem; width: 22%; height: .5rem;
  background: var(--red);
  transform: skewX(-24deg);
  transform-origin: left;
}

/* Animación de entrada del hero */
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__lead, .js .hero__cta { opacity: 0; transform: translateY(20px); }
.js .hero__panel--back { clip-path: polygon(14% 0, 14% 0, 0 100%, 0 100%); }
.js .hero__panel--front, .js .hero__panel--gap { clip-path: polygon(100% 0, 100% 0, 78% 100%, 78% 100%); }
.js .hero__panel img { transform: scale(1.18); }
.js .hero__stripe { transform: skewX(-24deg) scaleX(0); }

.is-loaded .hero__title .line > span { transform: none; transition: transform 1s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__lead { opacity: 1; transform: none; transition: opacity .9s .35s, transform .9s .35s var(--ease); }
.is-loaded .hero__cta { opacity: 1; transform: none; transition: opacity .9s .5s, transform .9s .5s var(--ease); }
.is-loaded .hero__panel--back { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); transition: clip-path 1.25s .15s var(--ease-in-out), transform .6s var(--ease); }
.is-loaded .hero__panel--gap { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); transition: clip-path 1.1s .45s var(--ease-in-out), transform .6s var(--ease); }
.is-loaded .hero__panel--front { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); transition: clip-path 1.1s .5s var(--ease-in-out), transform .6s var(--ease); }
.is-loaded .hero__panel img { transform: scale(1); transition: transform 2.4s .15s var(--ease); }
.is-loaded .hero__stripe { transform: skewX(-24deg) scaleX(1); transition: transform .9s 1.1s var(--ease); }

.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; display: none; width: 1.5rem; height: 2.4rem; border: 2px solid rgba(255, 255, 255, .35); border-radius: 1rem; transition: border-color .2s; }
.hero__scroll:hover { border-color: #fff; }
.hero__scroll span { position: absolute; left: 50%; top: .45rem; width: 3px; height: .5rem; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(.8rem); } }
@media (min-width: 1024px) and (min-height: 760px) { .hero__scroll { display: block; } }

/* ==========================================================================
   Encabezados de sección y regla
   ========================================================================== */
.section-head--split { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .section-head--reverse { grid-template-columns: 7fr 5fr; }
  .section-head--reverse > :first-child { order: 2; }
}
.section-head__text { font-size: .95rem; line-height: 1.75; color: var(--text); }
.section-head__text p:last-child { margin-bottom: 0; }

.rule { height: 4px; margin: 2.25rem 0 3rem; background: var(--navy); transform-origin: left; }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services__grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.service-card {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  background: var(--card);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card::after { /* número decorativo */
  content: ""; position: absolute; right: -2.5rem; bottom: -2.5rem;
  width: 8rem; height: 8rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 28, 28, .07), transparent 70%);
  transform: scale(.4); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: #fff; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: scale(1.6); opacity: 1; }
.service-card__icon { height: 3.5rem; display: flex; align-items: center; margin-bottom: 1.25rem; font-size: 2.4rem; color: var(--red); }
.service-card__icon i { transition: transform .5s var(--ease); }
.service-card:hover .service-card__icon i { transform: translateY(-4px) scale(1.08); }
.service-card__title { font-size: .98rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: 1.1rem; }
.service-card__list li { position: relative; padding-left: .95rem; margin-bottom: .55rem; font-size: .88rem; line-height: 1.5; color: var(--text); transition: color .25s, transform .3s var(--ease); }
.service-card__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; transition: background-color .25s; }
.service-card__list li:hover { color: var(--navy); transform: translateX(3px); }
.service-card__list li:hover::before { background: var(--red); }
.service-card:target { animation: target-flash 1.8s var(--ease); }
@keyframes target-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--red), var(--shadow-md); background: #fff; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about { display: grid; background: var(--soft); }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; min-height: 32rem; } }
.about__content { display: flex; align-items: center; padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--gutter); }
.about__inner { width: 100%; max-width: 38rem; margin-left: auto; }
@media (min-width: 1024px) { .about__content { padding-right: 4rem; } .about__inner { max-width: 36rem; } }
@media (min-width: 1360px) { .about__content { padding-left: calc((100vw - 80rem) / 2); } .about__inner { margin-left: 0; } }
.about .h2 { margin-bottom: 2.25rem; }
.feature { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.75rem; }
.feature__icon { flex-shrink: 0; width: 3rem; font-size: 2.3rem; line-height: 1; color: #c3ccd7; transition: color .35s, transform .45s var(--ease); }
.feature:hover .feature__icon { color: var(--red); transform: translateY(-3px); }
.feature__title { font-size: .9rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .3rem; }
.feature p { font-size: .9rem; margin: 0; }
.about__media { position: relative; min-height: 20rem; overflow: hidden; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; transition: transform 1.2s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .about__media { min-height: 26rem; } }

/* ==========================================================================
   Contadores
   ========================================================================== */
.stats { padding-block: 3.5rem; border-block: 1px solid var(--line); background-color: #fff; background-image: radial-gradient(#d4dbe4 1.2px, transparent 1.3px); background-size: 20px 20px; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 479px) { .stat { flex-direction: column; text-align: center; gap: .6rem; } }
.stat__icon { font-size: 2rem; color: var(--navy); width: 2.5rem; text-align: center; transition: transform .5s var(--ease), color .3s; }
.stat:hover .stat__icon { transform: rotate(-10deg) scale(1.1); color: var(--red); }
.stat__num { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 900; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__label { margin: .3rem 0 0; font-size: .74rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--text); }

/* ==========================================================================
   Soluciones personalizadas
   ========================================================================== */
.solutions__grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .solutions__grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; } }
.solutions__media { position: relative; }
.solutions__img { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 24px 50px -24px rgba(11, 37, 69, .45); }
.solutions__img img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 30% center; transition: transform 1.2s var(--ease); }
.solutions__img:hover img { transform: scale(1.04); }
@media (min-width: 1024px) { .solutions__img img { aspect-ratio: auto; height: 27rem; } }
.solutions__badge {
  position: absolute; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.25rem;
  background: var(--navy); color: #fff;
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
}
.solutions__badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.solutions__badge span { font-size: .75rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; color: #cbd5e1; }
@media (min-width: 1024px) { .solutions__badge { right: -1.5rem; bottom: -1.5rem; } }
.solutions__content .h2 { margin-bottom: 1.4rem; }
.solutions__content p { font-size: .95rem; line-height: 1.75; }
.values { margin-top: 1.5rem; display: grid; gap: .7rem; }
.values li { position: relative; padding-left: 1.4rem; font-size: .9rem; line-height: 1.6; }
.values li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: .5rem; background: var(--red); transform: rotate(45deg); }

/* ==========================================================================
   Certificaciones
   ========================================================================== */
.quality { border-top: 1px solid var(--line); }
.quality .h2 { margin-bottom: 2.25rem; }
.quality__badge {
  display: inline-block; padding: .75rem 1rem; margin-bottom: 2.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.quality__badge:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 24px 44px -18px rgba(11, 37, 69, .35); }
.quality__badge img { width: clamp(13rem, 30vw, 16rem); }
.quality__text p { font-size: .92rem; line-height: 1.85; }
@media (max-width: 639px) { .quality__text { text-align: left; } }

/* ==========================================================================
   Clientes
   ========================================================================== */
.clients .h2 { margin-bottom: 3rem; }
.carousel { display: flex; align-items: center; gap: .5rem; }
.carousel__viewport { flex: 1; overflow: hidden; touch-action: pan-y; cursor: grab; }
.carousel__viewport.is-dragging { cursor: grabbing; }
.carousel__track { --per: 2; display: flex; transition: transform .7s var(--ease); }
@media (min-width: 560px)  { .carousel__track { --per: 3; } }
@media (min-width: 860px)  { .carousel__track { --per: 4; } }
@media (min-width: 1180px) { .carousel__track { --per: 5; } }
.carousel__item { flex: 0 0 calc(100% / var(--per)); padding: .5rem clamp(.75rem, 2vw, 2rem); user-select: none; }
.carousel__item img {
  width: 100%; max-width: 9.5rem; margin-inline: auto; aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: .65;
  pointer-events: none;
  transition: filter .45s, opacity .45s, transform .45s var(--ease);
}
.carousel__item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.07); }
.carousel__btn {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy); font-size: 1.1rem;
  border: 1px solid var(--line);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.carousel__btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel__btn--prev:hover { transform: translateX(-3px); }
.carousel__btn--next:hover { transform: translateX(3px); }
@media (max-width: 479px) { .carousel__btn { width: 2.25rem; height: 2.25rem; font-size: .9rem; } }

/* ==========================================================================
   Opiniones
   ========================================================================== */
.testimonials { border-top: 1px solid #f1f5f9; }
.testimonials .h2 { margin-bottom: 3rem; }
.testimonials__grid { display: grid; gap: 1.5rem; text-align: left; }
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.quote {
  position: relative; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  padding: 2rem 2rem 1.75rem;
  background: var(--card);
  border-radius: 2px;
  border-bottom: 3px solid transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, background-color .45s;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--red); background: #fff; }
.quote__mark { position: absolute; right: 1.5rem; top: 1.25rem; font-size: 2.6rem; color: var(--red); opacity: .12; transition: opacity .4s, transform .5s var(--ease); }
.quote:hover .quote__mark { opacity: .3; transform: rotate(-8deg) scale(1.1); }
.quote blockquote { margin: 0; font-size: .95rem; line-height: 1.75; color: #334155; padding-right: 2rem; }
.quote__author { display: flex; align-items: center; gap: .85rem; }
.quote__author img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #cbd5e1; }
.quote__author strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); }
.quote__author small { display: block; font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); color: #cbd5e1; overflow: hidden; }
.contact__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.contact__info { order: 2; }
@media (min-width: 1024px) { .contact__info { order: 0; } }
.contact__photo { overflow: hidden; border-radius: 4px; margin-bottom: 2rem; box-shadow: var(--shadow-lg); }
.contact__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 30%; transition: transform 1.2s var(--ease); }
.contact__photo:hover img { transform: scale(1.04); }
.contact__list { display: grid; gap: 1.1rem; }
@media (min-width: 640px) and (max-width: 1023px) { .contact__list { grid-template-columns: 1fr 1fr; } }
.contact__list li { display: flex; gap: .9rem; font-size: .9rem; line-height: 1.55; }
.contact__list i { flex-shrink: 0; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fca5a5; font-size: .9rem; transition: background-color .3s, color .3s; }
.contact__list li:hover i { background: var(--red); color: #fff; border-color: var(--red); }
.contact__list strong { display: block; font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .1rem; }
.contact__list a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s; }
.contact__list a:hover { border-color: #fff; }

.contact__card { position: relative; padding: clamp(1.75rem, 1rem + 3vw, 3rem); background: #fff; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.contact__card .h2 { margin-bottom: 2rem; }

/* Formulario con etiquetas flotantes */
.form { display: grid; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 1.35rem 1rem .55rem;
  font: inherit; font-size: .92rem; color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8e3; border-radius: 3px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  font-size: .9rem; color: #8a99ad;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 37, 69, .1); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.78); color: var(--navy); }
.field__error { display: block; min-height: 0; font-size: .78rem; color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); animation: shake .4s; }
.field.is-invalid label { color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .84rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--red); }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid { color: var(--red); }

.form__submit { padding-block: 1.1rem; margin-top: .25rem; }
.form__submit.is-loading { pointer-events: none; opacity: .85; }
.form__submit.is-loading i { animation: send .9s var(--ease) infinite; }
@keyframes send { 0% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(14px, -14px); opacity: 0; } 61% { transform: translate(-14px, 14px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.form__status { margin: 0; min-height: 1.25rem; font-size: .88rem; text-align: center; }
.form__status.is-ok { color: var(--green-700); }
.form__status.is-error { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-top: 3.5rem; background: #fff; border-top: 1px solid var(--line); }
.footer__cols { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.footer__title { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); position: relative; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 2.5rem; height: 2px; background: var(--red); }
.footer__list li { position: relative; padding-left: 1.3rem; margin-bottom: .45rem; font-size: .9rem; color: var(--muted); }
.footer__list li::before { content: "\f00c"; position: absolute; left: 0; top: .1rem; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: #94a3b8; }
.footer__list a { display: inline-block; transition: color .2s, transform .3s var(--ease); }
.footer__list a:hover { color: var(--red); transform: translateX(3px); }
.footer__funding { padding-block: 1.75rem; border-block: 1px solid var(--line); }
.footer__funding img { width: 100%; max-width: 48rem; margin-inline: auto; }
.footer__copy { margin: 0; padding: 1.5rem 0 5.5rem; font-size: .84rem; text-align: center; color: var(--muted); }
@media (min-width: 768px) { .footer__copy { padding-bottom: 1.75rem; } }

/* ==========================================================================
   Botones flotantes y panel de accesibilidad
   ========================================================================== */
.fab-left { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; }
.fab-right { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.fab {
  position: relative;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), background-color .25s, box-shadow .3s, opacity .35s;
}
.fab:hover { transform: scale(1.1); }
.fab--navy { background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 10px 24px -8px rgba(0, 0, 0, .35); }
.fab--navy:hover { background: var(--navy-900); }
.fab--green { background: var(--green); }
.fab--green:hover { background: var(--green-700); }
.fab .fa-whatsapp { font-size: 1.5rem; }
.fab--pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.65); opacity: 0; } }
.fab--square { width: 2.4rem; height: 2.4rem; border-radius: 4px; background: #fff; color: var(--navy); font-size: .85rem; border: 1px solid var(--line); }
.fab--square:hover { background: var(--navy); color: #fff; }
.to-top { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s, background-color .25s, color .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease), visibility 0s, background-color .25s, color .25s; }

.js .fab-right > .fab:not(.to-top), .js .fab-left > .fab { opacity: 0; transform: scale(.4); }
.is-loaded .fab-right > .fab:not(.to-top), .is-loaded .fab-left > .fab { opacity: 1; transform: none; transition: opacity .4s 1.2s, transform .6s 1.2s cubic-bezier(.34, 1.56, .64, 1), background-color .25s; }
.is-loaded .fab-right > .fab:nth-child(2) { transition-delay: 1.32s; }
.is-loaded .fab-right > .fab:hover, .is-loaded .fab-left > .fab:hover { transform: scale(1.1); transition-delay: 0s; }

.a11y-panel {
  position: absolute; left: 0; bottom: calc(100% + .75rem);
  width: 15rem; padding: .75rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-md);
  transform-origin: bottom left;
  animation: pop .3s var(--ease);
}
.a11y-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.a11y-panel__title { margin: 0 0 .5rem; padding: 0 .4rem; font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.a11y-panel button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .7rem; font-size: .88rem; color: var(--ink); border-radius: 5px; text-align: left; transition: background-color .2s, color .2s; }
.a11y-panel button i { width: 1rem; color: var(--navy); }
.a11y-panel button:hover { background: var(--card); }
.a11y-panel button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.a11y-panel button[aria-pressed="true"] i { color: #fff; }

/* Modos de accesibilidad */
html.a11y-text { font-size: 112.5%; }
html.a11y-contrast { --text: #1e293b; --muted: #334155; }
html.a11y-contrast .hero__lead, html.a11y-contrast .contact { color: #fff; }
html.a11y-contrast .carousel__item img { filter: none; opacity: 1; }
html.a11y-links main a:not(.btn):not(.fab), html.a11y-links footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.section--soft { background: var(--soft); }
.section-title { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-title__text { max-width: 46rem; margin: 1.1rem auto 0; font-size: .95rem; line-height: 1.75; }
.more-link { margin-top: 2.5rem; }
.lead { font-size: 1.05rem; line-height: 1.75; color: #334155; }
.h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.eyebrow i { margin-right: .35rem; }
.btn--outline { background: #fff; color: var(--navy); border: 1px solid #cfd8e3; }
.btn--outline:hover { border-color: var(--navy); background: var(--card); }

/* ---------- Cabecera de página ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; }
.page-hero__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { /* velo azul y puntos */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(100deg, rgba(8, 26, 49, .97) 0%, rgba(11, 37, 69, .9) 42%, rgba(11, 37, 69, .55) 100%);
}
.page-hero::after { /* corte diagonal a la derecha */
  content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 34%; z-index: -1;
  background: linear-gradient(180deg, rgba(185, 28, 28, .0), rgba(185, 28, 28, .18));
  transform: skewX(-18deg); transform-origin: bottom;
  border-left: 3px solid rgba(255, 255, 255, .12);
}
.page-hero__inner { display: flex; flex-direction: column; justify-content: center; min-height: clamp(15rem, 12rem + 12vw, 23rem); padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: .82rem; color: #cbd5e1; }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; opacity: .45; }
.breadcrumb a { color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.breadcrumb a:hover { border-color: #fff; }
.breadcrumb [aria-current] { color: #fca5a5; }
.page-hero__eyebrow { display: block; margin-bottom: .6rem; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fca5a5; }
.page-hero__title { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.2rem); font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.page-hero__title .line { display: block; overflow: hidden; padding: 0 .15em .06em 0; margin-bottom: -.06em; }
.page-hero__title .line > span { display: inline-block; }
.page-hero__stripe { position: absolute; left: var(--gutter); bottom: 0; width: 7rem; height: .45rem; background: var(--red); transform: skewX(-24deg); transform-origin: left; }
@media (min-width: 1360px) { .page-hero__stripe { left: calc((100vw - 80rem) / 2); } }

.js .page-hero__title .line > span { transform: translateY(110%); }
.js .breadcrumb, .js .page-hero__eyebrow { opacity: 0; transform: translateY(12px); }
.js .page-hero__bg img { scale: 1.12; }
.js .page-hero__stripe { transform: skewX(-24deg) scaleX(0); }
.is-loaded .page-hero__title .line > span { transform: none; transition: transform 1s .1s var(--ease); }
.is-loaded .page-hero__title .line:nth-child(2) > span { transition-delay: .22s; }
.is-loaded .breadcrumb, .is-loaded .page-hero__eyebrow { opacity: 1; transform: none; transition: opacity .8s, transform .8s var(--ease); }
.is-loaded .page-hero__eyebrow { transition-delay: .08s; }
.is-loaded .page-hero__bg img { scale: 1; transition: scale 2.6s var(--ease); }
.is-loaded .page-hero__stripe { transform: skewX(-24deg) scaleX(1); transition: transform .9s .6s var(--ease); }

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); }
  .split--reverse > :first-child { order: 2; }
}
.split--block + .split--block { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.split__media { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 24px 50px -24px rgba(11, 37, 69, .45); }
.split__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media--square img { aspect-ratio: 1; }
.split__media:hover img { transform: scale(1.04); }
.split__body .h2 { margin-bottom: 1.3rem; }
.split__body p { font-size: .95rem; line-height: 1.75; }
.split__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.check-list { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; }
.check-list li { position: relative; padding-left: 2rem; font-size: .93rem; line-height: 1.65; }
.check-list li::before { content: "\f058"; position: absolute; left: 0; top: .05rem; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--red); font-size: 1.1rem; }

.svc-list { margin: .5rem 0 1.25rem; }
.svc-list li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px dashed #cdd6e1; font-size: .93rem; line-height: 1.5; color: #334155; transition: color .25s, padding-left .3s var(--ease); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list li::before { content: ""; position: absolute; left: .1rem; top: 1.15rem; width: .45rem; height: .45rem; background: var(--red); transform: rotate(45deg); transition: transform .3s var(--ease); }
.svc-list li:hover { color: var(--navy); padding-left: 1.85rem; }
.svc-list li:hover::before { transform: rotate(225deg); }

.values--grid { display: grid; gap: 1rem 2.5rem; margin: 2.25rem 0 0; }
@media (min-width: 768px) { .values--grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Rejilla de servicios ---------- */
.srv-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .srv-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.srv-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.srv-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.srv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.srv-card:hover::after { transform: scaleX(1); }
.srv-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.srv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.srv-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 37, 69, .45), transparent 55%); transition: opacity .4s; }
.srv-card:hover .srv-card__media img { transform: scale(1.08); }
.srv-card__body { position: relative; display: flex; flex-direction: column; flex: 1; gap: .6rem; padding: 1.6rem 1.5rem 1.4rem; }
.srv-card__icon { position: absolute; top: -1.6rem; right: 1.25rem; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.15rem; box-shadow: 0 10px 20px -8px rgba(185, 28, 28, .8); transition: transform .5s var(--ease); }
.srv-card:hover .srv-card__icon { transform: rotate(-12deg) scale(1.08); }
.srv-card__title { padding-right: 3rem; font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.srv-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.srv-card__more i { transition: transform .3s var(--ease); }
.srv-card:hover .srv-card__more i { transform: translateX(4px); }

/* ---------- Banner de llamada a la acción ---------- */
.cta-banner { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); text-align: center; color: #fff; background: var(--navy); }
.cta-banner__bg { position: absolute; inset: -15% 0; z-index: -2; will-change: transform; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.3px) 0 0 / 22px 22px, linear-gradient(180deg, rgba(11, 37, 69, .88), rgba(8, 26, 49, .93)); }
.cta-banner__title { display: inline-block; position: relative; margin-bottom: 1.4rem; padding-bottom: .9rem; font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.cta-banner__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5rem; height: .35rem; margin-left: -2.5rem; background: var(--red); transform: skewX(-24deg); }
.cta-banner p { max-width: 46rem; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.7; color: #cbd5e1; }

@media (min-width: 1200px) {
  .other-services .srv-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .other-services .srv-card__title { font-size: .92rem; }
}
.cta-banner + .contact, .cta-banner + .other-services { border-top: 4px solid var(--red); }

/* ---------- Certificaciones ---------- */
.cert-number { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .5rem; padding: .85rem 1.2rem; background: var(--card); border-left: 4px solid var(--red); }
.cert-number span { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cert-number strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); }
.cert-badge { justify-self: center; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-md); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cert-badge:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 30px 50px -20px rgba(11, 37, 69, .35); }
.cert-badge img { width: min(100%, 24rem); }

.scope-list { counter-reset: scope; display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px)  { .scope-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .scope-list { grid-template-columns: repeat(3, 1fr); } }
.scope-list li { counter-increment: scope; position: relative; display: flex; align-items: center; min-height: 3.6rem; padding: .85rem 1rem .85rem 3.6rem; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); font-size: .88rem; line-height: 1.4; color: #334155; transition: transform .35s var(--ease), box-shadow .35s, color .25s; }
.scope-list li::before { content: counter(scope, decimal-leading-zero); position: absolute; left: 1rem; top: 50%; translate: 0 -50%; font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; color: var(--red); }
.scope-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--navy); }
.scope-note { margin: 2rem 0 0; }

.docs { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px)  { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .docs { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.doc { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; align-items: center; height: 100%; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 4px; transition: border-color .3s, box-shadow .35s, transform .35s var(--ease); }
.doc__icon { grid-row: span 2; font-size: 2.1rem; color: var(--red); transition: transform .4s var(--ease); }
.doc__title { font-family: var(--font-head); font-size: .98rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.doc__action { font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.doc__action i { font-size: .7rem; margin-left: .2rem; }
.doc:hover { border-color: #e5b4b4; border-left-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc:hover .doc__icon { transform: scale(1.12) rotate(-6deg); }

/* ---------- Acordeón (empleo) ---------- */
.acc { display: grid; gap: .5rem; margin-top: 1.5rem; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc__item.is-open { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.acc__heading { margin: 0; font-size: inherit; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .95rem 1.15rem; font-family: var(--font-head); font-size: .86rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); text-align: left; transition: background-color .3s, color .3s; }
.acc__btn:hover { background: var(--card); }
.acc__item.is-open .acc__btn { background: var(--navy); color: #fff; }
.acc__icon { position: relative; flex-shrink: 0; width: .85rem; height: .85rem; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .4s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__item.is-open .acc__icon::before { transform: rotate(180deg); }
.acc__panel { padding: 1rem 1.15rem 1.15rem; font-size: .9rem; line-height: 1.7; }
.acc__panel p { margin: 0 0 .6rem; }
.acc__panel p:last-child { margin: 0; }
.job-block .split__media img { aspect-ratio: 4 / 3; }
.job-block__title { margin-bottom: .25rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.job-block__apply { margin-top: 1.5rem; }

/* ---------- Contacto ---------- */
.info-boxes { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .info-boxes { grid-template-columns: repeat(3, 1fr); } }
.info-box { display: flex; flex-direction: column; align-items: center; padding: 2.4rem 1.5rem 2rem; text-align: center; background: var(--card); border-radius: 4px; border-bottom: 3px solid transparent; transition: transform .45s var(--ease), box-shadow .45s, background-color .45s, border-color .45s; }
.info-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; border-color: var(--red); }
.info-box__icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1.1rem; border-radius: 50%; background: #fff; color: var(--red); font-size: 1.4rem; box-shadow: 0 0 0 7px rgba(185, 28, 28, .08); transition: background-color .35s, color .35s, transform .5s var(--ease); }
.info-box:hover .info-box__icon { background: var(--red); color: #fff; transform: rotate(-10deg); }
.info-box__title { margin-bottom: .75rem; font-size: .95rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.info-box p { margin: 0; font-size: .93rem; line-height: 1.75; }
.info-box p a { color: var(--navy); font-weight: 500; }
.info-box p a:hover { color: var(--red); }
.info-box__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.info-box__link i { transition: transform .3s var(--ease); }
.info-box__link:hover i { transform: translateX(4px); }

.map-wrap { margin-top: 3rem; }
.map { position: relative; height: clamp(26rem, 20rem + 12vw, 28rem); overflow: hidden; border-radius: 6px; background: var(--navy); box-shadow: var(--shadow-md); }
.map__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -100%; pointer-events: none; }
.map__pin > i { display: block; font-size: 3rem; line-height: 1; color: #ea4335; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); animation: map-bounce 2.6s var(--ease) infinite; }
.map__pin-label { position: absolute; left: 100%; top: 0; margin-left: .3rem; padding: .15rem .5rem; white-space: nowrap; border-radius: 4px; background: rgba(255, 255, 255, .95); font-size: .75rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
@keyframes map-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.map__credit { position: absolute; top: .5rem; right: .5rem; padding: .15rem .4rem; border-radius: 3px; background: rgba(0, 0, 0, .55); font-size: .65rem; color: #fff; transition: background-color .2s; }
.map__credit:hover { background: rgba(0, 0, 0, .75); }
.map__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .85rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .map__bar { flex-direction: row; align-items: center; } }
.map__bar-text { flex: 1; min-width: 0; }
.map__bar-text p { margin: 0; font-size: .9rem; color: var(--ink); }
.map__note { margin-top: .15rem !important; font-size: .78rem !important; color: var(--muted) !important; }
.map__actions { display: flex; flex-wrap: wrap; gap: .6rem; flex-shrink: 0; }
.map__actions .btn { padding: .8rem 1.1rem; font-size: .75rem; }
.map__actions .btn i { font-size: .8em; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: pop .5s var(--ease); }
.map__consent { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
/* Móvil: la barra va debajo de la foto para no tapar el marcador */
@media (max-width: 767px) {
  .map { height: auto; min-height: 20rem; padding-top: 18rem; }
  .map__photo { height: 18rem; bottom: auto; }
  .map__pin { top: 9rem; }
  .map__bar { position: relative; }
}
.map__consent button { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.map__consent button:hover { color: var(--red); }

/* ---------- Textos legales ---------- */
.prose { max-width: 52rem; }
.prose h2 { position: relative; margin: 2.75rem 0 1rem; padding-bottom: .6rem; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); font-weight: 800; border-bottom: 1px solid var(--line); }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3rem; height: 2px; background: var(--red); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.prose em { font-style: normal; font-weight: 500; color: var(--ink); }
.prose .prose__source { margin-top: -.4rem; font-size: .88rem; color: var(--muted); }
.prose p, .prose li { font-size: .97rem; line-height: 1.8; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.4rem; list-style: disc; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 404 ---------- */
.error-page { padding-block: clamp(5rem, 4rem + 8vw, 9rem); text-align: center; color: #cbd5e1; }
.error-page__inner { max-width: 40rem; }
.error-page__code { margin: 0; font-family: var(--font-head); font-size: clamp(6rem, 4rem + 10vw, 11rem); font-weight: 900; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .4); }
.error-page__title { margin-bottom: 1rem; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); font-weight: 900; text-transform: uppercase; color: #fff; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ==========================================================================
   Animaciones al hacer scroll (se activan con JS)
   Se usan animaciones con las propiedades individuales translate/scale
   para no interferir con los transform de los efectos hover.
   ========================================================================== */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { animation: reveal-up .9s var(--ease) var(--d, 0ms) both; }
.js [data-reveal="left"].is-in { animation-name: reveal-left; }
.js [data-reveal="right"].is-in { animation-name: reveal-right; }
.js [data-reveal="scale"].is-in { animation-name: reveal-scale; }
.js [data-reveal="line"] { opacity: 1; scale: 0 1; }
.js [data-reveal="line"].is-in { animation: reveal-line 1.2s var(--ease-in-out) var(--d, 0ms) both; }
/* Cortina: un bloque de color que se retira dejando ver la imagen */
.js [data-reveal="wipe"] { opacity: 1; }
.js [data-reveal="wipe"]::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--navy); transform-origin: right center; pointer-events: none; }
.js [data-reveal="wipe"].is-in::after { animation: reveal-curtain 1.15s var(--ease-in-out) var(--d, 0ms) both; }
.js [data-reveal="wipe"] img { scale: 1.15; }
.js [data-reveal="wipe"].is-in img { animation: reveal-zoom 1.6s var(--ease) var(--d, 0ms) both; }

@keyframes reveal-up    { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-left  { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-right { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-scale { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes reveal-line  { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes reveal-curtain { from { scale: 1 1; } to { scale: 0 1; } }
@keyframes reveal-zoom  { from { scale: 1.15; } to { scale: 1; } }

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
