/* =========================================================
   Constructora Vértice C.A. — Estilos (mobile first)
   CAMBIAR: los colores de marca se editan en :root
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --navy-3: #1B3E6F;
  --sky: #4DA8DA;
  --sky-dark: #1F6E9C;   /* versión oscura del celeste para texto sobre blanco (contraste AA) */
  --sky-soft: #E6F3FA;
  --amber: #F2A541;
  --amber-dark: #E08F22;
  --bg: #F4F7FA;
  --white: #FFFFFF;
  --text: #2E3A4B;
  --muted: #5B6B7F;
  --line: #DCE4ED;

  --font-title: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, .06);
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .16);
  --t: .3s ease;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
body.no-scroll { overflow: hidden; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem; letter-spacing: .2px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn--amber { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px rgba(242, 165, 65, .35); }
.btn--amber:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 165, 65, .45); }
.btn--light { background: rgba(255,255,255,.1); color: var(--white); border: 2px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--light:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background var(--t), box-shadow var(--t);
}
.header.is-solid, .header.menu-open { background: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { width: 160px; height: auto; }

.burger { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 8px; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.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); }

.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  height: calc(100dvh - var(--header-h));
  background: var(--navy);
  padding: 24px 20px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t), visibility var(--t);
  overflow-y: auto;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block; padding: 14px 4px; color: rgba(255,255,255,.88);
  font-family: var(--font-title); font-weight: 600; font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--t);
}
.nav__link:hover, .nav__link.is-active { color: var(--sky); }
.nav__cta { align-self: stretch; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.78) 45%, rgba(11,37,69,.45) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 1200px; }
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sky); padding: 6px 14px; border: 1px solid rgba(77,168,218,.5); border-radius: 50px; margin-bottom: 22px;
  animation: fadeUp .8s ease both;
}
.hero__title { color: var(--white); font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 800; max-width: 14ch; margin-bottom: 20px; animation: fadeUp .8s .1s ease both; }
.hero__title span { color: var(--sky); }
.hero__subtitle { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; animation: fadeUp .8s .2s ease both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp .8s .3s ease both; }
.hero__actions .btn { flex: 1 1 200px; }
@media (max-width: 599px) {
  .hero__eyebrow { font-size: .68rem; letter-spacing: 1.2px; padding: 6px 12px; }
}
@media (min-width: 600px) {
  .hero__actions .btn { max-width: 260px; }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Cifras ---------- */
.stats { background: var(--navy-2); color: var(--white); padding: 48px 0; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
.stat__num { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; margin: 0 0 8px; color: var(--white); }
.stat__suffix { color: var(--sky); margin-left: 2px; font-size: .7em; }
.stat__label { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sky); }
.eyebrow--light { color: var(--sky); }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.section-title--light { color: var(--white); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; right: 16px; bottom: -24px;
  background: var(--sky); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.about__badge strong { font-family: var(--font-title); font-size: 2.4rem; line-height: 1; color: var(--navy); }
.about__badge span { font-size: .88rem; line-height: 1.3; font-weight: 600; color: var(--navy); }
.about__text > p { color: var(--muted); font-size: 1.05rem; }
.about__mv { display: grid; gap: 20px; margin-top: 28px; }
.mv { display: flex; gap: 16px; align-items: flex-start; }
.mv__icon { color: var(--sky-dark); width: 28px; height: 28px; margin-top: 2px; }
.mv h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mv p { margin: 0; color: var(--muted); font-size: .95rem; }

.values { display: grid; gap: 20px; margin-top: 72px; }
.value {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value__icon, .service__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
  background: var(--sky-soft); color: var(--sky-dark); margin-bottom: 18px;
  transition: background var(--t), color var(--t);
}
.value h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 20px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow-sm); border-bottom: 3px solid transparent;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky); }
.service:hover .service__icon { background: var(--navy); color: var(--white); }
.service h3 { font-size: 1.15rem; }
.service p { margin: 0; color: var(--muted); }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 10px 20px; border-radius: 50px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .92rem; color: var(--navy);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.filter:hover { border-color: var(--sky); color: var(--sky-dark); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.projects { display: grid; gap: 24px; }
.project {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); text-align: left; width: 100%;
  transition: transform var(--t), box-shadow var(--t), opacity .4s ease;
  animation: fadeUp .5s ease both;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__media img { transform: scale(1.07); }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,37,69,.75), rgba(11,37,69,0) 55%);
  opacity: .6; transition: opacity var(--t);
}
.project:hover .project__media::after { opacity: 1; }
.project__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(255,255,255,.95); color: var(--navy); font-size: .75rem; font-weight: 700;
  padding: 6px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}
.project__zoom {
  position: absolute; z-index: 1; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: var(--white);
  transform: scale(.6); opacity: 0; transition: transform var(--t), opacity var(--t);
}
.project__zoom .icon { width: 20px; height: 20px; }
.project:hover .project__zoom, .project:focus-visible .project__zoom { transform: scale(1); opacity: 1; }
.project__count { position: absolute; z-index: 1; left: 14px; bottom: 14px; color: var(--white); font-size: .82rem; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.project__count .icon { width: 16px; height: 16px; }
.project__body { padding: 20px 22px 22px; }
.project__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.project__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.project__loc .icon { width: 16px; height: 16px; color: var(--sky-dark); }
.project__meta { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--navy); font-weight: 600; }
.project__meta span { display: flex; align-items: center; gap: 6px; }
.project__meta .icon { width: 16px; height: 16px; color: var(--sky-dark); }

/* Imagen que no cargó (placeholder limpio) */
.img-fallback {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)) !important;
}
.img-fallback img { opacity: 0; }

/* ---------- Antes / Después ---------- */
.ba-wrap { display: grid; gap: 40px; align-items: center; }
.ba-text > p { color: var(--muted); }
.checklist { display: grid; gap: 10px; margin: 20px 0; }
.checklist li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--navy); }
.checklist .icon { color: var(--sky-dark); }
.hint { font-size: .9rem; color: var(--muted); font-style: italic; }

.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; background: var(--line);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* Simulación del "antes" en la demo. CAMBIAR: quitar el filtro al usar una foto real del antes */
.ba__img--before { filter: grayscale(.75) sepia(.45) brightness(.62) contrast(.9) blur(.4px); }
.ba__label {
  position: absolute; top: 16px; z-index: 2; padding: 6px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; pointer-events: none;
}
.ba__label--before { left: 16px; background: rgba(11,37,69,.85); color: var(--white); }
.ba__label--after { right: 16px; background: var(--white); color: var(--navy); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--white); z-index: 2; pointer-events: none;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--navy);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.ba__handle .icon { width: 18px; height: 18px; margin: 0 -3px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}
.ba__range:focus-visible + .ba__handle, .ba:focus-within .ba__handle span { outline: 3px solid var(--sky); }

/* ---------- Proceso (timeline) ---------- */
.timeline { display: grid; gap: 0; position: relative; counter-reset: step; }
.step { position: relative; padding: 0 0 36px 76px; }
.step::before { /* línea vertical */
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px;
  background: linear-gradient(var(--sky), var(--line));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white);
  font-family: var(--font-title); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--sky-soft);
  transition: background var(--t), transform var(--t);
}
.step:hover .step__num { background: var(--sky); transform: scale(1.08); }
.step__icon { display: none; }
.step h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Por qué elegirnos ---------- */
.why { display: grid; gap: 48px; }
.why__intro p { font-size: 1.05rem; margin-bottom: 28px; }
.why__list { display: grid; gap: 16px; }
.why__item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.why__item:hover { background: rgba(77,168,218,.1); border-color: rgba(77,168,218,.4); transform: translateX(4px); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--navy); flex-shrink: 0; }
.why__item h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.why__item p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.72); }

/* ---------- Testimonios ---------- */
.carousel { max-width: 820px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .5s ease; }
.testimonial {
  flex: 0 0 100%; margin: 0; padding: 40px 28px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center;
}
.stars { display: flex; justify-content: center; gap: 4px; color: var(--amber); margin-bottom: 18px; }
.stars .icon { width: 20px; height: 20px; }
.testimonial blockquote { margin: 0 0 28px; font-size: clamp(1.02rem, 2.4vw, 1.2rem); line-height: 1.7; color: var(--navy); font-weight: 500; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.testimonial figcaption strong { display: block; color: var(--navy); font-family: var(--font-title); }
.testimonial figcaption small { color: var(--muted); font-size: .85rem; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-title); font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, var(--sky), var(--navy-3));
}
.avatar--b { background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.avatar--c { background: linear-gradient(135deg, #6CB8E2, var(--sky-dark)); }
.avatar--d { background: linear-gradient(135deg, var(--sky-dark), var(--navy-2)); }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
  transition: background var(--t), color var(--t);
}
.carousel__btn:hover { background: var(--navy); color: var(--white); }
.carousel__dots { display: flex; gap: 4px; }
.carousel__dot { width: 24px; height: 24px; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50px; background: var(--line); transition: width var(--t), background var(--t); }
.carousel__dot[aria-current="true"]::before { width: 22px; background: var(--sky); }
.carousel__dot[aria-current="true"] { width: 34px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow var(--t), border-color var(--t); }
.faq__item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.faq__item h3 { margin: 0; font-size: 1rem; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; text-align: left; font-family: var(--font-title); font-weight: 600; color: var(--navy); font-size: 1rem;
}
.faq__q .icon { color: var(--sky-dark); transition: transform var(--t); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.faq__a > p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 20px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 32px; }
.form { background: var(--white); padding: 32px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--bg);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 4px rgba(77,168,218,.2); }
.form .is-invalid { border-color: #C0392B; }
.form__error { display: block; color: #B03A2E; font-size: .84rem; min-height: 0; margin-top: 4px; }
.form__note { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

.contact__info { display: grid; gap: 24px; align-content: start; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--white); flex-shrink: 0; }
.contact__icon .icon { width: 20px; height: 20px; }
.contact__list strong { display: block; color: var(--navy); font-family: var(--font-title); font-size: .95rem; }
.contact__list a, .contact__list span { color: var(--muted); word-break: break-word; }
.contact__list a:hover { color: var(--sky-dark); }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 0; font-size: .95rem; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer__brand img { width: 170px; height: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer nav a { transition: color var(--t); }
.footer nav a:hover { color: var(--sky); }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white); transition: background var(--t), transform var(--t);
}
.social a:hover { background: var(--sky); transform: translateY(-3px); }
.social .icon { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 6px; padding-top: 22px; padding-bottom: 96px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom strong { color: var(--sky); }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 25px rgba(37,211,102,.45);
  transition: transform var(--t);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: pulse 2.4s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 89;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sky); }

/* ---------- Modal / Lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 12px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .88); animation: fadeIn .3s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 1080px; max-height: calc(100dvh - 24px);
  background: var(--white); border-radius: var(--radius-lg); overflow: auto;
  animation: modalIn .35s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--navy); box-shadow: var(--shadow-sm);
  transition: background var(--t), color var(--t);
}
.modal__close:hover { background: var(--navy); color: var(--white); }
.modal__stage { position: relative; background: var(--navy); aspect-ratio: 16 / 10; }
.modal__stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.modal__stage img.is-loading { opacity: .3; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy);
  transition: background var(--t), color var(--t);
}
.modal__nav:hover { background: var(--sky); color: var(--white); }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__counter { position: absolute; left: 12px; bottom: 12px; background: rgba(11,37,69,.8); color: var(--white); font-size: .82rem; padding: 4px 12px; border-radius: 50px; }
.modal__info { padding: 22px; display: grid; gap: 18px; }
.modal__cat { margin: 0 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sky-dark); }
.modal__info h3 { font-size: 1.35rem; margin-bottom: 6px; }
.modal__meta { color: var(--navy); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.modal__desc { color: var(--muted); margin: 0; font-size: .95rem; }
.modal__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.modal__thumbs button { flex: 0 0 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .55; outline-offset: 2px; transition: opacity var(--t); border: 2px solid transparent; }
.modal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs button:hover, .modal__thumbs button[aria-current="true"] { opacity: 1; }
.modal__thumbs button[aria-current="true"] { border-color: var(--sky); }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 600px) {
  .container { padding: 0 32px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .about__mv { grid-template-columns: 1fr 1fr; }
  .form { padding: 40px 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .testimonial { padding: 52px 56px; }
}

@media (min-width: 992px) {
  :root { --header-h: 84px; }
  .section { padding: 110px 0; }
  .stats { padding: 56px 0; }
  .header__logo img { width: 184px; }

  .burger { display: none; }
  .nav {
    position: static; height: auto; padding: 0; background: none; transform: none; visibility: visible;
    flex-direction: row; align-items: center; gap: 30px; overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link { font-size: .95rem; border: 0; padding: 8px 12px; position: relative; color: rgba(255,255,255,.9); }
  .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--sky);
    transform: scaleX(0); transition: transform var(--t);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta { padding: 12px 22px; }

  .about { grid-template-columns: 1fr 1fr; gap: 72px; }
  .about__badge { right: -24px; bottom: -28px; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .projects { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ba-wrap { grid-template-columns: 5fr 7fr; gap: 64px; }

  /* Timeline horizontal */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding: 0; text-align: center; }
  .step::before { left: calc(50% + 34px); right: calc(-50% + 10px); width: auto; top: 26px; bottom: auto; height: 2px; background: linear-gradient(90deg, var(--sky), var(--line)); }
  .step:last-child::before { display: none; }
  .step__num { position: relative; margin: 0 auto 20px; }
  .step h3 { margin-top: 0; }

  .why { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .contact { grid-template-columns: 6fr 5fr; gap: 40px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }

  .modal { padding: 32px; }
  .modal__dialog { display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; max-height: calc(100dvh - 64px); }
  .modal__stage { aspect-ratio: auto; min-height: 520px; }
  .modal__info { padding: 36px 30px; align-content: space-between; overflow-y: auto; }
  .modal__thumbs { flex-wrap: wrap; }
}

@media (min-width: 1200px) {
  .services { gap: 28px; }
}

/* 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; }
}
