/* ==========================================================
   TYR Soluciones Integrales SRL — estilos globales
   Estilo corporativo: azul marino del logo + ámbar, IBM Plex
   ========================================================== */

:root {
  --navy: #0b2454;
  --navy-2: #143a7a;
  --navy-deep: #071a3f;
  --accent: #f2a900;
  --accent-ink: #8a5f00;
  --bg: #ffffff;
  --bg-2: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #e2e6ee;
  --text: #14213d;
  --muted: #5a6680;
  --tint: #eef2f9;
  --white: #ffffff;
  --radius: 6px;
  --maxw: 1200px;
  --font-head: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 18px 40px -20px rgba(11, 36, 84, .35);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: inherit;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 100px 0; } }
.section--alt { background: var(--bg-2); }

/* Línea de acento (reemplaza la franja de advertencia) */
.hazard { height: 4px; background: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--accent); }

.text-accent { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: #ffbb1f; box-shadow: 0 10px 22px -10px rgba(242,169,0,.7); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.hero .btn--ghost, .cta .btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.hero .btn--ghost:hover, .cta .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--wa { background: #25d366; color: #0b2b17; }
.btn--wa:hover { background: #3be47b; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  font-size: .85rem;
  color: #c9d4e8;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar__group { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__hide-sm { display: none; }
@media (min-width: 768px) { .topbar__hide-sm { display: inline; } }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px -16px rgba(11, 36, 84, .5);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }

/* Logo horizontal: isotipo + "TyR" + razón social */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__iso { width: 66px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand__tyr { width: 60px; height: auto; margin-bottom: 5px; }
.brand__razon {
  font-family: "Montserrat", var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand--light { color: var(--white); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #33405a;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.header__cta { display: none; }

.burger {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy); cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s, opacity .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav {
    display: block;
    position: fixed; inset: 84px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(11,36,84,.4);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-open .nav { max-height: 420px; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 380px) {
  .brand__iso { width: 48px; }
  .brand__razon { font-size: .72rem; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__cta { display: inline-flex; padding: 11px 20px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 120px));
  display: flex; align-items: center;
  padding: 88px 0 96px;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 36, 84, .95) 0%, rgba(11, 36, 84, .82) 42%, rgba(11, 36, 84, .25) 100%);
}
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(180deg, rgba(11, 36, 84, .8) 0%, rgba(11, 36, 84, .92) 100%); }
}
/* Slider de fotos de fondo: fundido cruzado con zoom lento */
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__dots {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero__dots button {
  width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .3s;
}
.hero__dots button[aria-current="true"] { background: var(--accent); }
.hero__dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; }
.hero__inner { max-width: 680px; }
.hero h1 { margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #d5deec; max-width: 560px; margin-bottom: 32px; }
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Banda de datos debajo del hero (no tapa la foto) */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
@media (max-width: 599px) { .fact { padding: 20px 10px; } .fact:first-child { padding-left: 0; } }
.fact strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.fact span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Encabezado de páginas interiores */
.page-hero {
  position: relative;
  padding: 96px 0 64px;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,36,84,.95), rgba(11,36,84,.72));
}
.page-hero p { color: #d5deec; max-width: 680px; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb4da !important; margin-bottom: 14px !important; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Bloques genéricos ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split__media { position: relative; isolation: isolate; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1;
}
.badge-float {
  position: absolute; right: -8px; bottom: -24px;
  background: var(--navy); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); line-height: 1.1;
}
.badge-float strong { display: block; font-size: 2.2rem; font-weight: 600; color: var(--accent); }
.badge-float span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) { .badge-float { right: -24px; } }

.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Clientes ---------- */
.clients { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.clients__title { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-weight: 600; font-size: 1.25rem; white-space: nowrap;
  color: #8a93a6; letter-spacing: -.01em; transition: color .2s;
}
.marquee__track span:hover { color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grilla de valores ---------- */
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--surface); padding: 30px 26px; transition: background .25s; }
.value:hover { background: var(--surface-2); }
.value__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--tint); color: var(--navy); border-radius: 50%; margin-bottom: 18px;
}
.value__icon svg { width: 22px; height: 22px; }
.value h3 { margin-bottom: 8px; color: var(--navy); }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Cards de servicios ---------- */
.cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--font-mono); color: var(--accent-ink); font-size: .8rem; letter-spacing: .08em; margin-bottom: 6px; }
.card h3 { color: var(--navy); }
.card__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.card__link { font-weight: 600; font-size: .92rem; color: var(--navy); }
.card:hover .card__link { color: var(--accent-ink); }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 0; padding: 0; margin: 0; background: var(--navy); cursor: zoom-in;
  aspect-ratio: 4 / 3; color: var(--white); font: inherit; text-align: left;
}
@media (min-width: 960px) { .gallery__item { aspect-ratio: auto; } }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .92; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); opacity: 1; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(7, 26, 63, .92));
}
.gallery__cap strong { display: block; font-size: 1.08rem; font-weight: 600; }
.gallery__cap span { font-size: .9rem; color: #c9d4e8; }
.gallery__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--navy); font-family: var(--font-mono); font-weight: 500;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5, 12, 28, .95); padding: 16px; color: var(--white);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 78vh; max-width: min(1100px, 100%); border-radius: var(--radius); object-fit: contain; }
.lightbox__cap { text-align: center; max-width: 720px; }
.lightbox__cap strong { font-size: 1.3rem; font-weight: 600; display: block; }
.lightbox__cap span { color: #b9c4d8; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox__btn:hover { background: var(--accent); color: var(--navy); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: 28px 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  border-radius: var(--radius); counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: .85rem;
  color: var(--accent-ink); letter-spacing: .08em; margin-bottom: 12px;
}
.step h3 { color: var(--navy); }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; right: -16px; width: 10px; height: 10px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg);
  }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14;
  background: url("../img/inicio-3.jpeg") center / cover;
}
.cta .container { display: flex; flex-direction: column; gap: 28px; padding-top: 68px; padding-bottom: 68px; }
.cta h2 { margin: 0; }
.cta p { color: #c9d4e8; margin: 8px 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 900px) { .cta .container { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Página Servicios ---------- */
.service { display: grid; gap: 32px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: 64px; }
  .service:nth-child(even) .service__media { order: 2; }
}
.service__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service__media--trio {
  display: grid; gap: 10px; aspect-ratio: 4 / 3;
  grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr;
}
.service__media--trio img { aspect-ratio: auto; height: 100%; min-height: 0; }
.service__media--trio img:first-child { grid-row: span 2; object-position: center 20%; }
.service .checklist { margin-bottom: 0; }
.service__num { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 10px; }
.service__num::before { content: "SERVICIO "; }
.service h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--navy); }
.service p { color: var(--muted); }
.service p.lead { color: var(--text); font-size: 1.12rem; }

.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--white);
  font-size: .9rem; color: var(--muted); transition: border-color .2s, color .2s;
}
.service-index a:hover { border-color: var(--navy); color: var(--navy); }

.pillars { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); font-weight: 600; color: var(--navy); }

/* ---------- Página Nosotros ---------- */
.stats { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); padding: 28px 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); display: grid; gap: 32px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px;
  background: var(--white); border: 3px solid var(--accent); border-radius: 50%;
}
.timeline__year { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 6px; color: var(--navy); }
.timeline p { color: var(--muted); margin: 0; }

.certs { display: grid; gap: 20px; }
@media (min-width: 700px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.cert { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cert__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,169,0,.14); color: var(--accent-ink); margin-bottom: 16px; }
.cert__icon svg { width: 24px; height: 24px; }
.cert h3 { color: var(--navy); }
.cert p { color: var(--muted); font-size: .98rem; margin: 0; }

.note {
  margin-top: 28px; padding: 14px 18px; border: 1px dashed var(--navy-2); border-radius: var(--radius);
  color: var(--navy); font-size: .95rem; background: var(--tint);
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .form { padding: 36px; grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.form h2 { color: var(--navy); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,36,84,.12); background: var(--white); }
.form__hint { color: var(--muted); font-size: .88rem; margin: 0; }
.form__status { margin: 0; font-size: .95rem; color: var(--accent-ink); min-height: 1.4em; }

.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.contact-item__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.contact-item strong { font-weight: 600; color: var(--navy); word-break: break-word; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) { .map--wide { aspect-ratio: 21 / 8; } }

/* Fachada del taller, arriba del mapa */
.taller-foto { position: relative; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .taller-foto { aspect-ratio: 16 / 7; } }
.taller-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .8; filter: grayscale(.2); }
.taller-foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 14px;
  background: linear-gradient(180deg, transparent, rgba(11,36,84,.75));
  color: #fff; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 64px 0 0; font-size: .97rem; color: #b9c4d8; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .brand { margin-bottom: 18px; }
.footer__bottom { margin-top: 48px; padding: 20px 76px 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__slide { transition: opacity .6s; transform: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
