:root {
    --navy: #04234a;
    --navy-2: #062f63;
    --blue: #004b9b;
    --blue-2: #0d47a1;
    --accent: #1976d2;
    --sky: #93c5fd;
    --tint: #eaf2fb;
    --paper: #f8fafc;
    --ink: #1e293b;
    --muted: #475569;
    --line: #cbd5e1;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(4, 35, 74, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--tint); }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

/* Barra de urgencia y cabecera */
.urgent-bar { background: var(--navy); color: #e2ecf8; font-size: 13.5px; font-weight: 500; }
.urgent-inner { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.urgent-inner span, .urgent-inner a { display: flex; align-items: center; gap: 10px; }
.urgent-inner a:hover { color: #fff; }
.urgent-inner svg { width: 16px; height: 16px; }
.urgent-inner span svg { color: #f87171; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(4, 35, 74, .08); }
.nav-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #e2e8f0; }
.brand span { font-size: 20px; line-height: 1.15; font-weight: 800; color: var(--blue); }
.brand strong { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
nav { display: flex; align-items: center; gap: 34px; font-size: 15.5px; font-weight: 600; }
nav > a:not(.button) { position: relative; padding: 6px 0; }
nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
nav > a:not(.button):hover { color: var(--blue); }
nav > a:not(.button):hover::after { transform: scaleX(1); }

/* Botones */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 54px; padding: 14px 26px; border: 2px solid var(--blue); border-radius: 10px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 75, 155, .25); transition: background .2s, transform .2s; }
.button:hover { background: var(--blue-2); transform: translateY(-2px); }
.button svg { width: 19px; height: 19px; }
.button-small { min-height: 46px; padding: 10px 20px; font-size: 15px; box-shadow: none; }
.button-outline { background: transparent; color: var(--blue); box-shadow: none; }
.button-outline:hover { background: var(--tint); }
.icon-button { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue); cursor: pointer; }
#menu-toggle { display: none; }

/* Portada */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(25, 118, 210, .55), transparent 42%), radial-gradient(circle at 5% 95%, rgba(13, 71, 161, .6), transparent 40%), linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, var(--blue-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; padding: 80px 0 150px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero .eyebrow { color: var(--sky); }
h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
h1 > span { display: block; margin-top: 18px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; color: var(--sky); }
.hero-copy > p { max-width: 520px; margin: 26px 0 34px; font-size: 19px; line-height: 1.7; color: #d6e4f5; }
.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero .button { background: #fff; border-color: #fff; color: var(--blue); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.hero .button:hover { background: var(--tint); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--blue); }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.hero .text-link { color: #fff; }
.hero-trust { display: flex; gap: 14px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.6; color: #c6d8ee; }
.hero-trust svg { width: 34px; height: 34px; color: var(--sky); }
.hero-trust strong { font-weight: 600; color: #fff; }
.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 350 / 445; border: 6px solid rgba(255, 255, 255, .14); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 24px; background: linear-gradient(transparent, rgba(4, 35, 74, .95)); color: #fff; }
.photo-caption > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--sky); }
.photo-caption strong { display: block; padding-right: 50px; font-size: 18px; }
.photo-caption a { position: absolute; right: 22px; bottom: 22px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--blue); }

/* Cifras */
.facts { position: relative; z-index: 2; margin-top: -80px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.facts-grid > div { padding: 0 30px; border-right: 1px solid #e2e8f0; }
.facts-grid > div:last-child { border: 0; }
.facts strong { font-size: 44px; line-height: 1.1; font-weight: 800; color: var(--blue); }
.facts strong span { font-size: 30px; font-weight: 600; color: var(--accent); }
.facts p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.facts-grid > div:nth-child(n+3) { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: center; }
.facts-grid > div:nth-child(n+3) svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.facts-grid > div:nth-child(n+3) strong { font-size: 18px; }
.facts-grid > div:nth-child(n+3) p { margin-top: 2px; }

/* Secciones y servicios */
.section { padding-top: 96px; padding-bottom: 96px; }
h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 21px; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p { max-width: 400px; margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { display: flex; flex-direction: column; padding: 32px 30px 0; background: #fff; border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(4, 35, 74, .07); transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; box-shadow: 0 10px 20px rgba(0, 75, 155, .25); }
.service-icon svg { width: 28px; height: 28px; }
.service-number { font-size: 28px; font-weight: 800; color: #c9d8ea; }
.service h3 { margin: 26px 0 12px; }
.service > p { flex: 1; margin: 0 0 28px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.service-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px solid #e2e8f0; font-size: 14px; font-weight: 700; color: var(--blue); }
.service-bottom a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); transition: background .2s, color .2s; }
.service-bottom a:hover { background: var(--blue); color: #fff; }
.service-bottom svg { width: 18px; height: 18px; }
.emergency-note { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 18px 22px; background: #fff; border-left: 4px solid #dc2626; border-radius: 10px; }
.emergency-note svg { color: #dc2626; }
.emergency-note p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* Institución */
.about { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.about .eyebrow { color: var(--sky); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; }
.about p { margin-top: 22px; font-size: 17px; line-height: 1.8; color: #c6d8ee; }
.about .text-link { margin-top: 14px; color: #fff; }
.values { display: grid; gap: 18px; }
.values > div { position: relative; padding: 24px 24px 24px 84px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); }
.values svg { position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(147, 197, 253, .15); color: var(--sky); }
.values h3 { margin: 0; font-size: 19px; color: #fff; }
.values p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; }

/* Ubicación */
#ubicacion { background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.address { display: flex; align-items: flex-start; gap: 16px; margin-top: 26px; }
.address svg { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.address p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.address strong { font-weight: 700; color: var(--ink); }
.location-grid .button { margin-top: 32px; }
.location-panel { display: flex; align-items: center; gap: 30px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: var(--shadow); }
.location-panel img { width: 210px; height: 268px; object-fit: cover; border: 4px solid rgba(255, 255, 255, .18); border-radius: 12px; }
.location-panel > div { display: flex; flex-direction: column; gap: 10px; }
.location-panel svg { width: 36px; height: 36px; color: var(--sky); }
.location-panel strong { font-size: 24px; }
.location-panel span { font-size: 15px; color: #c6d8ee; }

/* Contacto */
.contact { background: linear-gradient(180deg, var(--tint), var(--paper)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.contact-grid > div > p { max-width: 440px; margin: 22px 0 30px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.contact-channel { display: flex; align-items: center; gap: 16px; max-width: 440px; margin-bottom: 14px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(4, 35, 74, .06); transition: transform .2s, box-shadow .2s; }
.contact-channel:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-channel > svg:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--blue); color: #fff; }
.contact-channel > svg:last-child { margin-left: auto; width: 20px; color: var(--blue); }
.contact-channel small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.contact-channel strong { font-size: 17px; }
.contact-grid > div > .contact-disclaimer { margin-top: 24px; font-size: 14px; line-height: 1.7; }
.contact-form { padding: 40px; background: #fff; border-top: 5px solid var(--blue); border-radius: 20px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(25, 118, 210, .18); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7b8797; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.consent input { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.contact-form > .button { width: 100%; justify-content: space-between; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.form-note svg { width: 15px; height: 15px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 22px; padding: 16px 18px; border-radius: 10px; font-size: 15px; line-height: 1.6; }
.success { background: #ecfdf3; color: #14532d; border-left: 4px solid #16a34a; }
.error { background: #fff1f2; color: #9f1239; border-left: 4px solid #e11d48; }
.privacy { padding-top: 28px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }
.privacy summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.privacy p { max-width: 900px; line-height: 1.8; }

/* Pie de página */
.site-footer { background: var(--navy); color: #c6d8ee; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; }
.site-footer .brand span { color: #fff; }
.site-footer .brand strong { color: var(--sky); }
.site-footer .brand img { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.footer-top p { margin: 0; font-size: 16px; }
.site-footer .icon-button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom a:hover { color: #fff; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #16834a; color: #fff; box-shadow: 0 10px 25px rgba(22, 131, 74, .4); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 15px; background: #fff; color: var(--blue); }
.skip-link:focus { top: 12px; }
.hero-copy { animation: appear .6s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
    .container { width: calc(100% - 56px); }
    nav { gap: 22px; font-size: 14.5px; }
    .hero-layout { gap: 40px; padding-bottom: 140px; }
    .facts-grid > div { padding: 0 18px; }
    .facts strong { font-size: 36px; }
    .about-grid, .contact-grid, .location-grid { gap: 48px; }
    .location-panel { flex-direction: column; align-items: flex-start; }
    .location-panel img { width: 100%; height: 300px; }
    .contact-form { padding: 30px; }
}

@media (max-width: 860px) {
    .container { width: calc(100% - 40px); }
    .urgent-inner { justify-content: center; font-size: 13px; }
    .urgent-inner > a { display: none; }
    .nav-inner { height: 76px; }
    .brand img { width: 48px; height: 48px; }
    .brand span { font-size: 17px; }
    .brand strong { font-size: 11px; }
    #menu-toggle { display: flex; }
    nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 24px; background: #fff; box-shadow: 0 16px 30px rgba(4, 35, 74, .12); }
    nav.open { display: flex; }
    nav > a:not(.button) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #eef2f7; }
    nav > a:not(.button)::after { display: none; }
    nav > .button { margin-top: 16px; }
    .hero-layout { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 120px; }
    .hero-copy > p { font-size: 17px; }
    .hero-photo { justify-self: center; max-width: 420px; }
    .facts { margin-top: -70px; }
    .facts-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; padding: 26px 6px; }
    .facts-grid > div:nth-child(2) { border: 0; }
    .section { padding-top: 68px; padding-bottom: 68px; }
    .section-heading { display: block; }
    .section-heading > p { max-width: none; margin-top: 16px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .location-panel { flex-direction: row; align-items: center; }
    .location-panel img { width: 180px; height: 230px; }
    .contact-grid > div > p, .contact-channel { max-width: none; }
    .footer-top { flex-wrap: wrap; }
    .footer-top p { order: 3; width: 100%; }
    .footer-bottom { flex-wrap: wrap; padding-right: 70px; }
    .footer-bottom > span:first-child { width: 100%; }
}

@media (max-width: 560px) {
    h1 { font-size: 38px; }
    h1 > span { font-size: 27px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
    .hero-actions .text-link { justify-content: center; }
    .facts-grid > div { padding: 0 14px; }
    .facts strong { font-size: 32px; }
    .facts strong span { font-size: 22px; }
    .facts p { font-size: 13.5px; }
    .facts-grid > div:nth-child(n+3) { grid-template-columns: 1fr; }
    .facts-grid > div:nth-child(n+3) svg { grid-row: auto; margin-bottom: 8px; }
    .facts-grid > div:nth-child(n+3) strong { font-size: 16px; }
    .service { padding: 26px 22px 0; }
    .values > div { padding: 20px 20px 20px 76px; }
    .values svg { left: 20px; top: 20px; }
    .location-panel { flex-direction: column; align-items: flex-start; padding: 20px; }
    .location-panel img { width: 100%; height: 280px; object-position: center 30%; }
    .contact-form { padding: 26px 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-copy { animation: none; }
    * { transition: none !important; }
}