:root {
  --navy: #073f70;
  --navy-2: #0b4e82;
  --blue: #1f70aa;
  --blue-soft: #eaf3f9;
  --gold: #d3a236;
  --gold-light: #f3d889;
  --ink: #143047;
  --muted: #62788a;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: rgba(7, 63, 112, .14);
  --shadow: 0 18px 50px rgba(11, 55, 89, .12);
  --shadow-soft: 0 10px 30px rgba(11, 55, 89, .08);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 14px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(7, 63, 112, .08);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(15px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(5, 46, 79, .08); background: rgba(255,255,255,.96); }
.nav-shell { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; box-shadow: 0 8px 20px rgba(7,63,112,.13); }
.brand span { font-size: 1.03rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; text-decoration: none; color: #36576d; font-weight: 650; font-size: .94rem; transition: color .2s ease; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; border-radius: 2px; background: var(--gold); transition: right .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--navy); }
.site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta):focus-visible::after { right: 0; }
.nav-cta { padding: 10px 17px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy) !important; }
.nav-cta:hover { background: var(--navy); color: #fff !important; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--blue-soft); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }

.hero {
  position: relative;
  min-height: 720px;
  padding: 108px 0 136px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 10% 6%, rgba(211,162,54,.11), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(31,112,170,.10), transparent 25%),
    linear-gradient(135deg, #fffdf8 0%, #ffffff 52%, #f4f9fc 100%);
  isolation: isolate;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(48px, 7vw, 92px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--navy-2); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
.eyebrow::before, .kicker::before { content: ""; width: 30px; height: 2px; background: var(--gold); border-radius: 5px; }
.hero h1 { margin: 18px 0 14px; color: var(--navy); font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.065em; max-width: 780px; }
.hero-lead { margin: 0 0 32px; max-width: 640px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: #47657a; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 760; text-align: center; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 12px 28px rgba(7,63,112,.20); }
.btn-secondary { background: rgba(255,255,255,.78); color: var(--navy); border-color: rgba(7,63,112,.22); }
.btn-gold { background: linear-gradient(135deg, #f1cf78, var(--gold)); color: #153d5c; box-shadow: 0 12px 28px rgba(211,162,54,.24); }
.hero-mini { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #6b7f8f; font-size: .9rem; }
.hero-mini i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-logo-card { position: relative; z-index: 2; width: min(470px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.78); border: 1px solid rgba(7,63,112,.12); box-shadow: 0 30px 80px rgba(7,63,112,.14); backdrop-filter: blur(12px); }
.hero-logo-card::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(211,162,54,.35); border-radius: 50%; }
.hero-logo-card img { width: 88%; height: 88%; object-fit: contain; border-radius: 50%; }
.logo-halo { position: absolute; width: 118%; height: 118%; border-radius: 50%; border: 1px solid rgba(31,112,170,.13); box-shadow: 0 0 0 34px rgba(31,112,170,.025), 0 0 0 72px rgba(211,162,54,.018); animation: slowPulse 5s ease-in-out infinite; }
.hero-decor { position: absolute; border-radius: 50%; filter: blur(1px); z-index: -1; }
.hero-decor-one { width: 300px; height: 300px; right: -100px; top: 70px; border: 38px solid rgba(7,63,112,.035); }
.hero-decor-two { width: 210px; height: 210px; left: -120px; bottom: 40px; border: 26px solid rgba(211,162,54,.06); }
.wave-divider { position: absolute; inset: auto 0 -1px; height: 112px; pointer-events: none; }
.wave-divider svg { width: 100%; height: 100%; display: block; }
.wave-divider path { fill: var(--paper); }

.section { padding: 105px 0; position: relative; }
.section-heading { max-width: 700px; margin-bottom: 48px; }
.section-heading h2, .coverage-copy h2, .contact-content h2 { margin: 9px 0 12px; color: var(--navy); font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: 1.04; letter-spacing: -.04em; }
.section-heading p, .coverage-copy p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 205px; padding: 26px; border-radius: var(--radius); background: linear-gradient(145deg, #ffffff, #f7fbfd); border: 1px solid rgba(7,63,112,.10); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(211,162,54,.42); }
.service-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-soft), #fff7df); color: var(--navy); border: 1px solid rgba(7,63,112,.09); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.service-card h3 { margin: 34px 0 0; color: var(--navy); font-size: 1.17rem; line-height: 1.25; }

.coverage { background: #f0f6fa; overflow: hidden; }
.coverage::before { content: ""; position: absolute; width: 480px; height: 480px; left: -250px; top: -180px; border: 54px solid rgba(211,162,54,.07); border-radius: 50%; }
.coverage-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: center; }
.coverage-copy { position: relative; z-index: 1; }
.coverage-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.location-card { position: relative; min-height: 250px; padding: 30px; overflow: hidden; border-radius: 30px; background: rgba(255,255,255,.83); border: 1px solid rgba(7,63,112,.11); box-shadow: 0 18px 45px rgba(7,63,112,.09); }
.location-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -65px; bottom: -85px; border-radius: 50%; border: 24px solid rgba(31,112,170,.055); }
.location-state { display: block; margin: 21px 0 9px; color: var(--gold); text-transform: uppercase; font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.location-card h3 { margin: 0; color: var(--navy); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.25; }
.pin { width: 35px; height: 35px; position: relative; border: 8px solid var(--navy); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; width: 7px; height: 7px; left: 6px; top: 6px; background: var(--gold); border-radius: 50%; }

.gallery-section { background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.gallery-grid { columns: 4 240px; column-gap: 16px; }
.gallery-item { width: 100%; margin: 0 0 16px; padding: 0; display: block; break-inside: avoid; border: 1px solid rgba(7,63,112,.22); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 14px 28px rgba(7,63,112,.10), 0 0 22px rgba(31,112,170,.06); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(7,63,112,.16), 0 0 28px rgba(211,162,54,.08); }
.gallery-item img { width: 100%; height: auto; object-fit: contain; background: #fff; }

.recruitment { color: #fff; background: linear-gradient(135deg, #062f56 0%, #0b4e82 58%, #0d629b 100%); overflow: hidden; }
.recruitment-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.kicker.light { color: #fff; opacity: .82; }
.recruitment h2 { margin: 12px 0 24px; max-width: 760px; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.045em; }
.recruitment-lead { max-width: 650px; margin: 0; font-size: 1.12rem; color: rgba(255,255,255,.78); }
.recruitment-panel { padding: 30px; border-radius: 28px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(1,23,41,.18); backdrop-filter: blur(12px); }
.recruitment-panel ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.recruitment-panel li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: rgba(255,255,255,.92); }
.recruitment-panel li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(243,216,137,.15); color: var(--gold-light); font-weight: 900; }
.team-contact { padding: 18px 0; margin: 0 0 18px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 4px; }
.team-contact span { color: rgba(255,255,255,.68); font-size: .88rem; }
.team-contact a { width: fit-content; color: #fff; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1; font-weight: 850; text-decoration: none; }
.team-note { margin: 20px 0 0; font-weight: 750; color: var(--gold-light); }
.recruitment-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 500px; height: 500px; left: -240px; top: -280px; border: 70px solid rgba(211,162,54,.08); }
.orb-two { width: 420px; height: 420px; right: -230px; bottom: -210px; border: 58px solid rgba(255,255,255,.04); }

.contact { background: #f8fbfd; }
.contact-card { display: grid; grid-template-columns: 310px 1fr; overflow: hidden; border-radius: 34px; background: #fff; border: 1px solid rgba(7,63,112,.10); box-shadow: var(--shadow); }
.contact-brand { min-height: 390px; padding: 34px; display: grid; place-items: center; background: linear-gradient(145deg, #ecf5fa, #fff8e8); }
.contact-brand img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.contact-content { padding: 48px; align-self: center; }
.contact-lines { margin: 22px 0 28px; color: #587184; }
.contact-lines p { margin: 6px 0; }
.contact-lines strong { color: var(--ink); }
.contact-lines a { color: var(--navy); font-weight: 750; text-decoration: none; }

.site-footer { padding: 28px 0; color: rgba(255,255,255,.78); background: #052e51; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner div { display: grid; gap: 2px; }
.footer-inner strong { color: #fff; }
.footer-inner span { font-size: .89rem; }
.footer-inner a { color: var(--gold-light); font-weight: 800; text-decoration: none; }

.lightbox { position: fixed; inset: 0; z-index: 500; padding: 44px 76px; display: grid; place-items: center; background: rgba(2,18,30,.92); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: min(100%, 980px); max-height: calc(100vh - 88px); width: auto; height: auto; object-fit: contain; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lightbox-close, .lightbox-nav { position: absolute; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.10); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.18); transform: scale(1.04); }
.lightbox-close { right: 24px; top: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 18px; font-size: 2.2rem; line-height: 1; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 11px; color: rgba(255,255,255,.76); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .82rem; }
body.lightbox-open { overflow: hidden; }

/* El contenido siempre permanece visible. JavaScript solo añade movimiento visual;
   nunca controla la visibilidad de la página, evitando pantallas en blanco. */
.reveal { opacity: 1; transform: none; }
.reveal.animate-in { animation: softRise .58s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--delay, 0ms); }

@keyframes softRise {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

@keyframes slowPulse {
  0%, 100% { transform: scale(.98); opacity: .7; }
  50% { transform: scale(1.02); opacity: 1; }
}

@media (max-width: 980px) {
  .site-nav { position: fixed; left: 20px; right: 20px; top: 94px; display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(7,63,112,.10); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 22px 60px rgba(7,63,112,.16); transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 10px; border-radius: 12px; }
  .site-nav a:hover { background: #f3f8fb; }
  .site-nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 4px; background: var(--navy); color: #fff !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 82px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero h1 { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-mini { justify-content: center; }
  .hero-visual { min-height: 390px; }
  .hero-logo-card { width: min(390px, 84vw); }
  .logo-halo { width: 98%; height: 98%; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid, .recruitment-grid { grid-template-columns: 1fr; }
  .coverage-copy { max-width: 650px; }
  .contact-card { grid-template-columns: 260px 1fr; }
  .contact-content { padding: 36px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-shell { min-height: 74px; }
  .brand img { width: 50px; height: 50px; }
  .brand span { font-size: .96rem; }
  .site-nav { left: 14px; right: 14px; top: 82px; }
  .hero { padding: 72px 0 100px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .hero-mini { font-size: .82rem; }
  .hero-visual { min-height: 320px; }
  .section { padding: 78px 0; }
  .service-grid, .coverage-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 170px; }
  .location-card { min-height: 220px; }
  .gallery-grid { columns: 2 145px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; border-radius: 16px; }
  .recruitment h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .recruitment-panel { padding: 24px 20px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-brand { min-height: 280px; }
  .contact-brand img { max-width: 220px; }
  .contact-content { padding: 30px 22px 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 66px 14px 54px; }
  .lightbox-nav { width: 42px; height: 56px; background: rgba(0,0,0,.25); }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { right: 12px; top: 12px; }
}

@media (max-width: 430px) {
  .brand span { max-width: 150px; white-space: normal; line-height: 1.08; }
  .hero h1 { font-size: 3.1rem; }
  .hero-logo-card { width: 285px; }
  .hero-visual { min-height: 290px; }
  .hero-mini i { display: none; }
  .hero-mini { display: grid; gap: 4px; }
  .gallery-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal.animate-in { animation: none; }
}
