/* ============================================================
   Constructora IMY21 — estilos del sitio
   Tipografía: Montserrat (títulos) + Inter (texto)
   Colores: azul marino #192C60 y dorado #C9A227
   ============================================================ */
:root {
  --navy: #192c60;
  --navy-dark: #0f1c40;
  --navy-soft: #243a7a;
  --gold: #c9a227;
  --gold-dark: #a8861a;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 28, 64, 0.25);
  --shadow-lg: 0 24px 50px -18px rgba(15, 28, 64, 0.35);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--gold); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -10px rgba(201, 162, 39, .8); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px -14px rgba(15, 28, 64, .45); backdrop-filter: blur(6px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 52px; width: auto; }
.footer img { width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: #fff; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--gold); }
.nav.scrolled .nav-links a { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #fff; text-decoration: none; }
.nav.scrolled .nav-phone { color: var(--muted); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 28px; padding: 6px; line-height: 0; }
.nav.scrolled .burger { color: var(--navy); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; overflow: hidden; padding: 120px 0 90px;
  background: linear-gradient(135deg, rgba(15, 28, 64, .93) 0%, rgba(25, 44, 96, .8) 55%, rgba(15, 28, 64, .9) 100%), var(--navy) url("/hero-bg.jpg") center / cover no-repeat;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 span { color: var(--gold); display: block; }
.hero-lead { max-width: 680px; margin: 26px auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 56px; justify-content: center; margin-top: 64px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); line-height: 1.1; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 12px; text-decoration: none; display: grid; justify-items: center; gap: 6px; }
.scroll-cue i { width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: #eef1f8; color: var(--navy); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.navy .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.navy .section-head p { color: rgba(255, 255, 255, .8); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 8px 16px; border-radius: 999px; background: #eef1f8; color: var(--navy); font-size: 14px; font-weight: 600; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--navy); }
.about-badge {
  position: absolute; left: -18px; bottom: -22px; background: var(--gold); color: #fff; border-radius: 16px;
  padding: 16px 22px; box-shadow: var(--shadow); text-align: center; line-height: 1.2;
}
.about-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; }
.about-badge span { font-size: 13px; font-weight: 500; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 76px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ico, .adv .ico, .team-item .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* Ventaja */
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 64px; margin-bottom: 52px; }
.stat-row div { text-align: center; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); line-height: 1.1; }
.stat-row span { color: var(--muted); font-size: 14px; font-weight: 500; }
.adv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.adv { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.adv:nth-child(4) { grid-column: 2 / span 2; }
.adv:nth-child(5) { grid-column: 4 / span 2; }
.adv .ico { background: #eef1f8; color: var(--navy); }
.adv h3 { font-size: 1.05rem; margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 14.5px; }

/* Filosofía */
.phil-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
.phil-side {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 44px 36px; display: grid; align-content: center; text-align: center; gap: 6px;
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.phil-side strong { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 4.6rem); color: var(--gold); line-height: 1; }
.phil-side span { font-size: 1.05rem; color: rgba(255, 255, 255, .85); }
.tabs { display: grid; gap: 12px; }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tab-btn {
  text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; color: var(--navy); display: grid; gap: 2px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tab-btn strong { font-family: var(--font-head); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.tab-btn small { color: var(--muted); font-size: 12.5px; }
.tab-btn[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.tab-btn[aria-selected="true"] small { color: rgba(255, 255, 255, .75); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); min-height: 190px; }
.tab-panel h3 { font-size: 1.3rem; margin-bottom: 12px; }
.tab-panel p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.values li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.values .icon { color: var(--gold); }

/* Equipo */
.team-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.team-text h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 18px; }
.team-text > p { color: rgba(255, 255, 255, .82); }
.team-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.team-item .ico { background: rgba(201, 162, 39, .18); color: var(--gold); margin-bottom: 12px; }
.team-item h3 { font-size: 1rem; margin-bottom: 4px; }
.team-item p { color: rgba(255, 255, 255, .75); font-size: 14px; }
.team-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--navy-soft); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); }
.team-card { margin-top: -54px; margin-left: 28px; margin-right: 28px; position: relative; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow-lg); }
.team-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.team-card p { color: var(--muted); font-size: 14.5px; }
.team-card .nums { display: flex; gap: 40px; margin-top: 14px; }
.team-card .nums strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold); display: block; line-height: 1.1; }
.team-card .nums span { font-size: 13px; color: var(--muted); }

/* Servicios */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-img { position: relative; height: 190px; overflow: hidden; background: var(--navy); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 28, 64, .55), transparent 60%); }
.svc-ico { position: absolute; left: 20px; bottom: -22px; z-index: 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 22px; box-shadow: var(--shadow); }
.svc-body { padding: 36px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.15rem; }
.svc-sub { color: var(--gold-dark); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.svc-desc { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.svc-list { margin: 16px 0 20px; display: grid; gap: 8px; }
.svc-list li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--muted); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.svc-list b { color: var(--navy); font-weight: 600; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.svc-link:hover { gap: 12px; }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: all .2s; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.p-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.p-card[hidden] { display: none; }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.p-img { position: relative; height: 160px; overflow: hidden; background: #dbe2ef; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.p-card:hover .p-img img { transform: scale(1.06); }
.p-cat { position: absolute; left: 12px; top: 12px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-body h3 { font-size: 1rem; line-height: 1.3; }
.p-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 10px; }
.p-meta span:first-child { font-weight: 600; color: var(--navy); }
.p-open { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; border-radius: 16px; font-size: 0; }
.p-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Modal de proyecto */
dialog.pm { border: 0; padding: 0; border-radius: 20px; width: min(880px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6); color: var(--ink); }
dialog.pm::backdrop { background: rgba(15, 28, 64, .72); backdrop-filter: blur(3px); }
.pm-img { aspect-ratio: 2 / 1; background: var(--navy); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { padding: 26px 30px 32px; }
.pm-cat { display: inline-block; background: #eef1f8; color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.pm-body h3 { font-size: 1.35rem; }
.pm-full { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 4px; font-size: 14px; }
.pm-meta b { color: var(--navy); }
.pm-desc h4 { font-size: 1rem; margin: 18px 0 10px; }
.pm-desc li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.pm-desc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pm-desc li b { color: var(--navy); }
.pm-close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 20px; box-shadow: var(--shadow); }
.pm-cta { margin-top: 22px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.info-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px 32px; display: grid; gap: 22px; }
.info-card h3 { color: #fff; font-size: 1.25rem; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(201, 162, 39, .2); color: var(--gold); display: grid; place-items: center; font-size: 19px; flex: none; }
.info-row h4 { color: #fff; font-size: .95rem; margin-bottom: 2px; }
.info-row p, .info-row a { color: rgba(255, 255, 255, .82); font-size: 14.5px; text-decoration: none; display: block; }
.info-row a:hover { color: var(--gold); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(25, 44, 96, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 14.5px; font-weight: 500; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Footer */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, .78); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img { height: 64px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; font-size: 14.5px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer p { font-size: 14.5px; max-width: 320px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #fff; border: 0; font-size: 20px; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: block; }
  .mobile-menu { position: fixed; inset: 76px 0 auto 0; background: #fff; box-shadow: 0 20px 40px -20px rgba(15, 28, 64, .45); padding: 8px 20px 22px; z-index: 49; }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
  .mobile-menu .btn { margin-top: 16px; border-bottom: 0; color: #fff; }
  .nav { background: rgba(15, 28, 64, .85); backdrop-filter: blur(6px); }
  .nav.scrolled { background: rgba(255, 255, 255, .97); }
  .about-grid, .team-wrap, .contact-grid, .phil-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { left: 14px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv, .adv:nth-child(4), .adv:nth-child(5) { grid-column: auto; }
  .adv:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .svc-grid, .feature-grid, .adv-grid, .team-list, .form-grid, .values { grid-template-columns: 1fr; }
  .adv:nth-child(5) { grid-column: auto; }
  .tab-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px 30px; margin-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 26px 20px; }
  .team-card { margin-left: 12px; margin-right: 12px; }
  .pm-body { padding: 22px 20px 26px; }
  .scroll-cue { display: none; }
  .p-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Ajustes adicionales */
.icon.big { width: 1em; height: 1em; }
.svc-img { background: linear-gradient(135deg, var(--navy-dark), var(--navy-soft)); }
.svc-img::after { display: none; }
.svc-img .svc-bg { position: absolute; right: -14px; top: -14px; width: 190px; height: 190px; color: #fff; opacity: .09; stroke-width: 1.2; }
.svc-img { height: 120px; overflow: visible; border-radius: 18px 18px 0 0; }
.svc-ico { bottom: -24px; }
.tab-panel[hidden], .p-empty[hidden] { display: none; }
.pm-cta { display: inline-flex; }
.about-media img, .team-media img { height: auto; }
.section.navy .team-card h3 { color: var(--navy); }

/* Logo grande en la portada */
.hero-logo { width: clamp(190px, 21vw, 270px); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
.hero { padding-top: 104px; }
@media (max-width: 640px) { .hero-logo { width: 190px; margin-bottom: 16px; } .hero { padding-top: 96px; } }
@media (max-height: 980px) { .scroll-cue { display: none; } }
