:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #2f6ea8;
  --sky: #8fb8de;
  --mist: #eef4fb;
  --white: #fff;
  --text: #1a2433;
  --muted: #4a5668;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 37, 69, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #dde6f0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; position: relative; }
.logo img { width: 150px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  list-style: none; margin: 0; padding: .5rem 1.25rem 1rem;
  position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
  background: var(--white); border-bottom: 1px solid #dde6f0;
  display: none; flex-direction: column; gap: .25rem;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block; padding: .65rem .9rem; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-weight: 500;
}
.nav-list a:hover { background: var(--mist); }
.nav-list .nav-cta { background: var(--navy); color: var(--white); text-align: center; }
.nav-list .nav-cta:hover { background: var(--navy-2); }

@media (min-width: 768px) {
  .logo img { width: 180px; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; position: static; flex-direction: row; gap: .5rem;
    padding: 0; border: 0; background: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 600px);
  display: flex; align-items: flex-end;
  background: var(--navy) url("assets/hero.svg") center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 37, 69, .85) 0%, rgba(11, 37, 69, .4) 60%, rgba(11, 37, 69, 0) 100%);
}
.hero-content { position: relative; padding-block: 3rem 3.5rem; max-width: 1120px; }
.hero-content > * { max-width: 34rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--sky); margin: 0 0 .5rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 6vw, 3.25rem); }
.hero-text { font-size: 1.1rem; margin: 0 0 1.75rem; color: #e3ecf6; }

.btn {
  display: inline-block; padding: .9rem 1.75rem; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s;
}
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--mist); transform: translateY(-2px); }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section-alt { background: var(--mist); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }

/* Cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.card {
  background: var(--white); border: 1px solid #dde6f0; border-radius: var(--radius);
  padding: 1rem 1rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11, 37, 69, .12); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); }

/* Contacto */
.contact { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.contact-info {
  background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; border-bottom: 1px solid #e3eaf3; padding-bottom: 1rem; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span:not(.label) { font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.contact-list a { text-decoration-color: var(--sky); text-underline-offset: 3px; }
.contact-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #0a1a2f; color: #d5e0ee; padding-block: 1.75rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--white); }
