/* =========================================================
   CM&C JM S.A.C. — Hoja de estilos principal
   Paleta tomada del brochure corporativo
   ========================================================= */

/* ---------- Paleta del brochure ---------- */
:root {
  /* Marca */
  --navy: #2f3a68;        /* barras de encabezado y contraportada */
  --navy-2: #212f5e;      /* azul del logo */
  --navy-deep: #1a2246;   /* fondo profundo para el hero */
  --orange: #ed5724;      /* naranja de acento */
  --orange-2: #ff7a45;
  --brick: #be4926;       /* barra inferior del brochure */
  --brick-2: #843727;
  --teal: #06a69e;        /* franja turquesa de la portada */
  --green: #2e9b4f;       /* "medio ambiente" en la política */
  --steel: #3f6b85;       /* azul acero de los títulos internos */
  --gray: #ebebeb;        /* bandas grises */

  /* Tema por defecto: secciones azul marino */
  --bg: var(--navy-deep);
  --bg-2: #222b55;
  --surface: #2a3462;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .24);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .8);
  --muted: #aeb5cf;
  --accent-text: #ffb595;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Secciones claras (páginas blancas del brochure) */
.light {
  --bg: #ffffff;
  --bg-2: #f3f4f7;
  --surface: #ffffff;
  --line: rgba(33, 47, 94, .12);
  --line-2: rgba(33, 47, 94, .24);
  --text: var(--navy-2);
  --text-2: #4b5373;
  --muted: #6c7391;
  --accent-text: #b5401a;
  color: var(--text);
}
.light.gray { --bg: var(--gray); --bg-2: #ffffff; }
.navy { --bg: var(--navy); --bg-2: #283361; --surface: #364275; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: var(--header-h); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--orange); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow__line { flex: 0 0 64px; height: 2px; background: var(--orange); }
.eyebrow--dark { color: rgba(255, 255, 255, .85); }
.eyebrow--dark .eyebrow__line { background: rgba(255, 255, 255, .6); }

.section { padding-block: clamp(80px, 11vw, 140px); position: relative; background: var(--bg); color: var(--text); }
.section__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400; line-height: 1.06; letter-spacing: -.025em;
  margin-bottom: 20px;
}
/* Títulos en dos tonos, como en el brochure */
.section__title em, .hero__title em, .cta__title em { font-style: normal; color: var(--orange); }
.section__title .t-green { color: var(--green); }
.navy .section__title .t-green { color: #4cc27a; }
.section__lead { color: var(--muted); font-size: 18px; max-width: 560px; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(44px, 6vw, 70px);
}
.section__head > div:first-child { flex: 1 1 auto; }
.section__aside { max-width: 360px; color: var(--muted); border-top: 2px solid var(--orange); padding-top: 14px; line-height: 1.9; }
p.section__aside:not(.mono) { font-size: 15px; line-height: 1.7; }

/* Franjas diagonales de la portada del brochure */
.stripes {
  position: absolute; top: 0; left: 0; width: clamp(120px, 18vw, 240px); aspect-ratio: 1; pointer-events: none;
  background: linear-gradient(135deg,
    var(--navy) 0 44%, var(--teal) 44% 49%, var(--orange) 49% 54%, transparent 54%);
}
.stripes--right { left: auto; right: 0; transform: scaleX(-1); }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  background: var(--bg-btn);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { --bg-btn: var(--orange); color: #fff; }
.btn--primary:hover { --bg-btn: var(--orange-2); box-shadow: 0 10px 30px -10px rgba(237, 87, 36, .7); }
.btn--dark { --bg-btn: var(--navy-2); color: #fff; }
.btn--dark:hover { --bg-btn: var(--navy-deep); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--link { padding: 6px 0; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 14px; }
.btn--link:hover { border-color: var(--orange); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(47, 58, 104, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px -18px rgba(10, 15, 40, .8);
}
.header.is-scrolled::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--brick-2), var(--brick) 40%, var(--orange));
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: auto; }
.brand__name { font-size: 15px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.brand__name b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 14px; color: rgba(255, 255, 255, .8); padding: 6px 0; transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
/* Enlace al buscador de certificados */
.nav__link--cert {
  display: inline-flex; align-items: center; gap: 7px; color: #fff;
  padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.nav__link--cert::after { display: none; }
.nav__link--cert svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.nav__link--cert:hover { border-color: var(--orange); background: rgba(237, 87, 36, .18); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 102; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.hero::before {
  /* barra roja-naranja inferior, como el pie de página del brochure */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--brick-2), var(--brick) 40%, var(--orange) 75%, var(--teal) 75% 80%, var(--navy) 80%);
}
.hero__visual { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%;
  filter: saturate(.85) contrast(1.05) brightness(.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-deep) 30%, rgba(26, 34, 70, .55) 60%, rgba(26, 34, 70, .1)),
    linear-gradient(0deg, var(--navy-deep) 0%, transparent 30%);
}
.hero__glow {
  position: absolute; right: 8%; top: 20%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 87, 36, .38), transparent 65%);
  filter: blur(30px); mix-blend-mode: screen;
}
.hero__rings {
  position: absolute; right: -6%; top: 50%; width: min(64vw, 760px); translate: 0 -50%;
  z-index: 1; opacity: .6; mix-blend-mode: screen;
}
.hero__rings .ring { transform-origin: 300px 300px; animation: spin 40s linear infinite; }
.hero__rings .ring--b { animation-duration: 28s; animation-direction: reverse; }
.hero__rings .ring--c { animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(40px, 5.6vw, 78px); font-weight: 400; line-height: 1.03; letter-spacing: -.035em;
  margin-bottom: 26px;
}
.hero__lead { max-width: 480px; color: var(--text-2); font-size: 18px; margin-bottom: 40px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 70px; }
.hero__divider { width: 1px; height: 34px; background: var(--line-2); }

.stats { display: flex; gap: 0; margin: 0; flex-wrap: wrap; }
.stat { padding-right: 36px; margin-right: 36px; border-right: 1px solid var(--line-2); }
.stat:last-child { border: 0; margin: 0; padding: 0; }
.stat dt { font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.stat dd { margin: 6px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; translate: -50% 0;
  border: 1px solid var(--line-2); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; translate: -50% 0;
  background: var(--orange); border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Nosotros ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__main { margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--radius); }
.about__main img { width: 100%; height: 100%; object-fit: cover; }
.about__float {
  position: absolute; right: 0; bottom: 0; width: 44%; margin: 0; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg);
  box-shadow: 0 30px 60px -20px rgba(26, 34, 70, .45);
}
.about__float img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -18px; bottom: 22%; background: var(--orange); color: #fff;
  padding: 18px 22px; display: flex; align-items: center; gap: 12px; border-radius: 2px;
  box-shadow: 0 20px 40px -14px rgba(237, 87, 36, .6);
}
.about__badge strong { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.about__badge span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.about__text > p { color: var(--text-2); margin-bottom: 34px; }
.about__text strong { color: var(--text); font-weight: 700; }

.tabs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.tabs__list { display: flex; border-bottom: 1px solid var(--line); background: var(--navy); }
.tabs__btn {
  flex: 1; padding: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); position: relative; transition: color .25s;
}
.tabs__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs__btn.is-active { color: #fff; }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__panel { padding: 24px 26px; color: var(--text-2); font-style: italic; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
/* Todas las tarjetas tienen el mismo padding; el margen negativo alinea los bordes con el contenedor */
.cards { --pad: 28px; display: grid; grid-template-columns: repeat(3, 1fr); margin-inline: calc(var(--pad) * -1); }
.card {
  position: relative; padding: 0 var(--pad) 40px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; cursor: pointer;
}
.cards .card:nth-child(3n + 1) { border-left-color: transparent; }
.cards .card:nth-child(n + 4) { padding-top: 40px; border-top: 1px solid var(--line); }
.card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card__rule { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.card__rule::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover .card__rule::after { transform: scaleX(1); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--orange { background: var(--orange); box-shadow: 0 0 12px rgba(237, 87, 36, .8); }
.dot--light { background: #ffffff; }
.dot--teal { background: var(--teal); box-shadow: 0 0 12px rgba(6, 166, 158, .7); }

.card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; margin-bottom: 24px; background: var(--surface); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.card:hover .card__media img { filter: none; transform: scale(1.05); }
.card__title { font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
}
.card__more {
  width: 40px; height: 40px; border-radius: 50%; font-size: 17px; color: var(--text);
  display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease);
}
.card:hover .card__more { background: var(--orange); color: #fff; transform: rotate(-45deg); }

/* ---------- Equipos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.filter {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
  background: var(--bg-2);
  transition: all .25s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery li { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.gallery li.is-hidden { display: none; }
.gallery li.is-entering { opacity: 0; transform: scale(.96); }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.4; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); text-align: left;
  box-shadow: 0 12px 28px -18px rgba(26, 34, 70, .5);
}
.tile--white { background: #fff; }
.tile--white img { object-fit: contain !important; padding: 14px 14px 52px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 13px;
  font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.3;
  background: linear-gradient(0deg, rgba(33, 47, 94, .95), transparent);
}
.tile--white span { background: var(--navy); padding-top: 13px; }
.tile::before {
  /* subrayado naranja al pasar el mouse */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.tile:hover::before { transform: scaleX(1); }
.tile::after {
  content: "+"; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px;
  opacity: 0; transform: scale(.6); transition: all .3s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.equip__note { margin-top: 36px; color: var(--text-2); font-size: 15px; max-width: 760px; padding-left: 16px; border-left: 3px solid var(--orange); }

/* ---------- Capacitación ---------- */
.training__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.training__grid > div > p { color: var(--text-2); margin-bottom: 34px; max-width: 520px; }
.chips-block { margin-bottom: 26px; }
.chips-block h3 { margin-bottom: 12px; color: var(--steel); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; padding: 7px 13px; border-radius: 3px; background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .25s, color .25s;
}
.chips li:hover { border-color: var(--navy); }
.chips--accent li { border-color: rgba(237, 87, 36, .35); color: var(--accent-text); background: rgba(237, 87, 36, .07); }
.training .btn { margin-top: 14px; }
.training__media { position: relative; }
.training__media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); }
.training__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--orange);
  border-radius: var(--radius); z-index: -1;
}
.training__media::after {
  content: ""; position: absolute; right: -14px; top: 40px; bottom: 40px; width: 6px; border-radius: 3px;
  background: linear-gradient(var(--teal), var(--navy));
}
.training__tag {
  position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; background: rgba(47, 58, 104, .9); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius); font-size: 14px;
}

/* ---------- Política ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 34px 28px; transition: background .35s; position: relative; }
.pillar:hover { background: var(--bg-2); }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 26px; }
.pillar:nth-child(2) svg { stroke: #4cc27a; }
.pillar:nth-child(4) svg { stroke: var(--teal); }
.pillar h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 14.5px; }
.commit { margin-top: 26px; border-radius: var(--radius); background: #fff; color: var(--navy-2); overflow: hidden; }
.commit summary {
  list-style: none; cursor: pointer; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--navy-2); color: #fff; font-weight: 500;
}
.commit summary::-webkit-details-marker { display: none; }
.commit__icon { font-size: 22px; color: var(--orange); transition: transform .3s var(--ease); }
.commit[open] .commit__icon { transform: rotate(45deg); }
.commit ul { padding: 24px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.commit li { position: relative; padding-left: 22px; color: #4b5373; font-size: 15px; font-style: italic; }
.commit li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

/* ---------- Clientes ---------- */
.clients { overflow: hidden; padding-bottom: clamp(70px, 9vw, 110px); }
.clients .section__title { margin-bottom: 50px; }
.marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 45s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li {
  flex: none; width: 210px; height: 104px; background: #fff; border-radius: var(--radius);
  display: grid; place-items: center; padding: 14px 22px;
  border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(26, 34, 70, .5);
}
.marquee img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- CTA (barra roja-naranja del brochure) ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 138, 85, .55) 0%, transparent 45%),
    linear-gradient(100deg, var(--brick-2) 0%, var(--brick) 38%, var(--orange) 100%);
  padding-block: clamp(80px, 10vw, 120px);
}
.cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 70%, var(--teal) 70% 76%, var(--navy-2) 76%);
}
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.cta__title { font-size: clamp(38px, 5.6vw, 70px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; color: #fff; margin-bottom: 22px; max-width: 14ch; }
.cta__text > p { font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 470px; margin-bottom: 36px; }
.cta__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta__phone { color: rgba(255, 255, 255, .9); font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 3px; }
.cta__phone:hover { border-color: #fff; }
.cta__mark { position: relative; justify-self: center; width: min(100%, 400px); }
.cta__mark img {
  width: 100%; opacity: .95;
  filter: drop-shadow(18px 26px 30px rgba(60, 15, 0, .5)) drop-shadow(-2px -2px 0 rgba(255, 255, 255, .35));
  transform: rotate(var(--rot, 0deg));
  transition: transform .1s linear;
}

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; margin-bottom: 60px; }
.contact__list { display: grid; gap: 22px; margin-top: 16px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; }
.contact__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center;
}
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list li:hover .contact__icon { background: var(--orange); }
.contact__list small { display: block; margin-bottom: 4px; }
.contact__list a, .contact__list span:not(.contact__icon) { display: block; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--orange); }

.form {
  background: var(--bg-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--orange); box-shadow: 0 30px 60px -30px rgba(26, 34, 70, .35);
}
.form__title { font-size: 24px; font-weight: 500; margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: #f6f7f9; border: 1px solid var(--line-2); border-radius: 3px; color: var(--navy-2);
  padding: 13px 14px; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6c7391 50%), linear-gradient(135deg, #6c7391 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 87, 36, .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d93b3b; }
.field__error { font-size: 12.5px; color: #d93b3b; margin-top: 6px; }
.field__error:empty { display: none; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form__status { margin-top: 14px; font-size: 14px; color: var(--teal); }

.map { position: relative; height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #dfe2e8, #f3f4f7); display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.map__load { padding: 14px 22px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: #fff; transition: background .25s; }
.map__load:hover { background: var(--orange); }

/* ---------- Footer (contraportada azul + placas metálicas) ---------- */
.footer { background: var(--navy); padding-top: 70px; position: relative; overflow: hidden; color: #fff; }
.footer::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 120px; height: 160px;
  background: radial-gradient(ellipse at center, rgba(237, 87, 36, .5), transparent 70%); filter: blur(30px);
}
.footer__plates {
  position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 14px;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  perspective: 1200px;
}
.plate {
  --metal: linear-gradient(160deg, #eef0f4 0%, #c3c8d2 28%, #e0e3e9 46%, #a7adb9 70%, #d2d6de 100%);
  position: relative; min-height: 190px; padding: 30px 28px; color: var(--navy-2);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .04) 1px 3px),
    var(--metal);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -3px 0 rgba(0, 0, 0, .18),
    0 18px 0 -6px #1c2448,
    0 22px 30px -4px rgba(237, 87, 36, .55),
    0 40px 60px -20px rgba(10, 14, 35, .9);
  transform: rotateX(16deg); transform-origin: bottom center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plate:hover { transform: rotateX(6deg) translateY(-4px); }
.plate::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 46%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position 1s var(--ease);
}
.plate:hover::after { background-position: -20% 0; }
.plate__brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.plate__brand img { width: 40px; }
.plate__tag { color: #4f5a80; font-size: 10.5px; line-height: 1.8; }
.plate--links { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px 0; }
.plate--links a { font-size: 14px; font-weight: 600; padding: 2px 18px; border-left: 1px solid rgba(33, 47, 94, .25); }
.plate--links a:first-child { border-left: 0; }
.plate--links a:hover { color: var(--orange); }
.plate__city { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-2); color: #fff; transition: background .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--orange); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer__bottom {
  position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 54px 26px; font-size: 13px; color: rgba(255, 255, 255, .7);
}
.footer__bottom { align-items: center; }
.footer__bottom .mono { color: rgba(255, 255, 255, .7); }

/* Botón Libro de Reclamaciones */
.claims-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 14px; border-radius: 6px;
  background: #fff; color: var(--navy-2);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.claims-btn svg { width: 34px; height: 34px; fill: var(--orange); stroke: #fff; stroke-width: 1.2; stroke-linecap: round; }
.claims-btn__lines { fill: none; }
.claims-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 15px; }
.claims-btn small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6c7391; margin-bottom: 3px; }
.claims-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(237, 87, 36, .6); }
.footer__bar { height: 8px; background: linear-gradient(90deg, var(--brick-2), var(--brick) 40%, var(--orange) 80%, var(--teal) 80% 85%, var(--navy-2) 85%); }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.to-top {
  position: fixed; right: 28px; bottom: 90px; z-index: 90; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Modal servicio ---------- */
dialog { padding: 0; border: 0; color: var(--navy-2); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 26, 54, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 40px); }
.modal[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; background: #fff; border-radius: var(--radius); padding: clamp(26px, 5vw, 46px); border-top: 6px solid var(--navy); }
.modal__box::before { content: ""; position: absolute; left: 0; top: -6px; width: 30%; height: 6px; background: var(--orange); border-top-left-radius: var(--radius); }
.modal__close, .lightbox__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background .25s;
}
.modal__close { color: var(--navy-2); }
.modal__close:hover { background: rgba(33, 47, 94, .08); }
.modal__num { color: var(--orange); margin-bottom: 10px; }
.modal__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; font-style: italic; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 8px; padding-right: 40px; color: var(--steel); }
.modal__title::after { content: ""; display: block; width: 120px; height: 3px; background: var(--orange); margin-top: 14px; margin-bottom: 18px; }
.modal__body p { color: #4b5373; margin-bottom: 14px; }
.modal__body strong { color: var(--navy-2); }
.detail__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 28px; }
.detail__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--gray); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; display: none; place-items: center; background: rgba(20, 26, 54, .95); color: #fff; }
.lightbox[open] { display: grid; animation: fade .3s; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(90vw, 900px); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); background: #fff; }
.lightbox figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #c9cee0; }
.lightbox__close { top: 20px; right: 20px; color: #fff; }
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); font-size: 30px; line-height: 1; color: #fff; transition: background .25s;
}
.lightbox__nav:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav__cta { display: none; }
}

@media (max-width: 1100px) {
  .nav__list { gap: 20px; }
  .nav { gap: 22px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 101; flex-direction: column; justify-content: center; gap: 40px;
    background: rgba(47, 58, 104, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 22px; }
  .nav__link { font-size: 24px; }
  .nav__cta { display: inline-flex; }
  .nav__link--cert { padding: 8px 20px; }
  .nav__link--cert svg { width: 20px; height: 20px; }
  body.menu-open { overflow: hidden; }

  .hero__visual { inset: 0; }
  .hero__img { -webkit-mask-image: none; mask-image: none; opacity: .5; }
  .hero::after { background: linear-gradient(0deg, var(--navy-deep) 5%, rgba(26, 34, 70, .6) 60%, rgba(26, 34, 70, .85)); }
  .hero__rings { width: 110vw; right: -40%; opacity: .45; }

  .section__head { flex-direction: column; align-items: flex-start; }
  .about__grid, .training__grid, .contact__grid, .cta__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 620px; }
  .about__badge { left: 0; }

  .cards { --pad: 22px; grid-template-columns: 1fr 1fr; }
  .cards .card { padding-block: 36px; border-left-color: var(--line); border-top: 1px solid var(--line); }
  .cards .card:nth-child(odd) { border-left-color: transparent; }
  .cards .card:nth-child(even) { border-left-color: var(--line); }
  .cards .card:nth-child(-n + 2) { border-top: 0; padding-top: 0; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .training__media { order: -1; max-width: 620px; }
  .cta__mark { width: 220px; justify-self: start; order: -1; }
  .footer__plates { grid-template-columns: 1fr; }
  .plate { transform: none; min-height: auto; }
  .plate:hover { transform: translateY(-3px); }
  .plate--links { justify-content: flex-start; }
  .plate--links a:first-child { padding-left: 0; }
}

@media (max-width: 640px) {
  .header__inner { gap: 12px; }
  .brand__name { letter-spacing: .18em; font-size: 14px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero .eyebrow { flex-wrap: wrap; gap: 6px 12px; }
  .hero .eyebrow__line { flex-basis: 28px; }
  .hero__lead, .section__lead, .cta__text > p { font-size: 16px; }
  .hero__actions { margin-bottom: 50px; gap: 18px; }
  .hero__divider { display: none; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .stat { border: 0; margin: 0; padding: 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat dt { font-size: 20px; }

  .cards { --pad: 0px; grid-template-columns: 1fr; }
  .cards .card { padding-block: 32px; border-left: 0; }
  .cards .card:nth-child(2) { border-top: 1px solid var(--line); padding-top: 32px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile span { font-size: 12.5px; }
  .pillars { grid-template-columns: 1fr; }
  .commit ul { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__actions .btn { flex: 1 1 100%; justify-content: center; }
  .marquee li { width: 160px; height: 84px; }
  .marquee img { max-height: 54px; }
  .detail__gallery { grid-template-columns: 1fr 1fr; }
  .detail__gallery img:nth-child(3) { display: none; }
  .lightbox__nav { top: auto; bottom: 24px; translate: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .to-top { right: 22px; bottom: 80px; }
  .footer__bottom { flex-direction: column; }
  .stripes { width: 90px; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
