:root {
  --blue: #275c88;      /* azul principal (Duda: rgb(39,92,136)) */
  --blue-2: #3c81b3;    /* azul claro (Duda: rgb(60,129,179)) */
  --teal: #3fb3b6;      /* acento del logo */
  --night: #0a1428;     /* fondo de contacto / footer */
  --ink: #263241;
  --muted: #5d6877;
  --line: #e1e6ec;
  --bg: #ffffff;
  --alt: #f4f7fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 20, 40, .08);
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--blue); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 8px 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--blue-2); margin-bottom: .6em; }
.eyebrow.light { color: var(--teal); }
.lead { font-size: 1.2rem; max-width: 58ch; }
.lead-sm { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-xl { width: 48px; height: 48px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--blue-2); color: #fff; border: 2px solid var(--blue-2); padding: .8em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu > a { text-decoration: none; font-weight: 600; color: var(--ink); }
.menu > a:hover { color: var(--blue-2); }
.menu .btn, .menu .btn:hover, .menu .btn:focus-visible { color: #fff; }
.menu .lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.menu .lang .ico { width: 18px; height: 18px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--blue); margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(90deg, rgba(10,20,40,.88) 0%, rgba(10,20,40,.7) 45%, rgba(10,20,40,.15) 100%), var(--hero) center/cover no-repeat, var(--night); }
.hero-inner { padding: clamp(64px, 9vw, 120px) 0; max-width: 680px; margin-left: max(20px, calc((100% - 1160px) / 2)); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }

/* Secciones */
.section { padding: clamp(44px, 5.5vw, 68px) 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { margin-bottom: 0; }
.section-head.center { text-align: center; margin-inline: auto; }

/* Pilares */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow); transition: transform .25s, background .25s; }
.pillar:hover { transform: translateY(-4px); background: #20507a; }
.pillar .ico-xl { color: #fff; margin-bottom: 12px; stroke-width: 1.4; }
.pillar h3 { color: #fff; font-size: 1.25rem; }
.pillar p { margin: 0; color: rgba(255,255,255,.86); font-size: .98rem; }

/* Quiénes somos */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: #fff; }
.about-img { min-height: 340px; background: var(--img) center/cover no-repeat; }
.about-body { padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px); align-self: center; max-width: 640px; }
.about-body h2 { color: #fff; }
.about-body p { margin: 0; font-size: 1.08rem; color: rgba(255,255,255,.9); }

/* Servicios */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service { border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 24px 28px 22px; text-align: center; background: #fff; transition: box-shadow .25s, transform .25s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service .ico-xl { color: var(--blue-2); margin: 0 auto 10px; width: 48px; height: 48px; stroke-width: 1.3; }
.service h3 { color: var(--ink); }
.service p { margin: 0; color: var(--muted); text-align: left; }

/* Contacto */
.contact { padding: clamp(44px, 5.5vw, 68px) 0; color: #fff; background: linear-gradient(90deg, rgba(10,20,40,.96) 0%, rgba(10,20,40,.82) 50%, rgba(10,20,40,.45) 100%), var(--contact-bg) right center/cover no-repeat, var(--night); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; }
.contact .lead-sm { color: rgba(255,255,255,.82); }
.steps-title { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; margin: 1.4em 0 .9em; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: paso; position: relative; }
.steps li { counter-increment: paso; position: relative; padding: 0 0 16px 56px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: grid; place-items: center; font-weight: 700; background: rgba(10,20,40,.6); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 1px; background: rgba(63,179,182,.35); }
.steps strong { display: block; color: #fff; font-size: 1.08rem; line-height: 1.3; padding-top: 6px; }
.steps span { display: block; color: rgba(255,255,255,.72); font-size: .98rem; }
.contact .contact-list.big { margin: .8em 0 0; padding-top: 1.1em; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list .ico { color: var(--teal); margin-top: 4px; }
.contact-list small { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.contact-list a { text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--teal); }
.contact-list.big { font-size: 1.08rem; margin-top: 1.6em; }
.card { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form-card { padding: clamp(22px, 3vw, 34px); }
.lead-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; color: var(--blue); }
.lead-form .opt { font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cdd5de; border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; border-color: var(--blue-2); }
.lead-form [aria-invalid="true"] { border-color: #c62828; }
.lead-form .btn { width: 100%; justify-content: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1b7f3b; }
.form-status.err { color: #c62828; }
.form-status a { color: inherit; }

/* 404 */
.page-head { background: var(--blue); color: #fff; padding: 56px 0; }
.page-head h1 { color: #fff; }
.page-head .lead-sm { color: rgba(255,255,255,.82); }
.page-head .eyebrow { color: var(--teal); }
.page-head .btn-outline { color: #fff; border-color: #fff; }

/* Footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.78); padding: 40px 0 20px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer .contact-list small { display: none; }
.logo-chip { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.logo-chip img { height: 40px; width: auto; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: .88rem; color: rgba(255,255,255,.55); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 32px; height: 32px; }

/* Animación */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about { grid-template-columns: 1fr; }
  .about-img { min-height: 220px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu > a { padding: 12px 0; display: block; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .service { padding: 22px 18px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  body { font-size: 16px; }
}
