@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:        #1a2a6c;
  --azul-hover:  #142059;
  --azul-claro:  #2a3a8c;
  --cta:         #1d4ed8;
  --cta-hover:   #1e40af;
  --gris-bg:     #f8fafc;
  --gris-borde:  #e2e8f0;
  --texto:       #0f172a;
  --texto-muted: #475569;
  --blanco:      #ffffff;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── ACCESIBILIDAD ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--azul);
  color: var(--blanco);
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── BASE ── */
body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  color: var(--texto);
  background: var(--blanco);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  line-height: 1.2;
}

/* ── NAVBAR ── */
header {
  background: var(--azul);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 2px 12px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 6px;
  padding: .25rem .25rem;
  transition: opacity 150ms ease-out;
}
.nav-logo:hover { opacity: .85; }

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  color: var(--blanco);
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.3;
}

nav {
  margin-left: auto;
  display: flex;
  gap: .125rem;
}

nav a {
  position: relative;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: .5rem .875rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease-out, background 150ms ease-out;
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: .875rem;
  right: .875rem;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    color: var(--blanco);
    background: rgba(255,255,255,.1);
  }
}

nav a.active {
  color: var(--blanco);
  background: rgba(255,255,255,.12);
}
nav a.active::after { transform: scaleX(1); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: .5rem;
  min-width: 44px;
  min-height: 44px;
  transition: border-color 150ms ease-out;
}
.hamburger:focus-visible { border-color: rgba(255,255,255,.5); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 250ms var(--ease-out), opacity 200ms ease-out;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, var(--azul) 0%, #1e3a8a 55%, #2d4faa 100%);
  color: var(--blanco);
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  animation: heroFadeUp 600ms var(--ease-out) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero img {
  width: 110px;
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
  animation: heroFadeUp 600ms var(--ease-out) 100ms both;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  animation: heroFadeUp 600ms var(--ease-out) 150ms both;
}

.hero p {
  font-size: 1.075rem;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
  animation: heroFadeUp 600ms var(--ease-out) 200ms both;
}

/* ── CONTENIDO ── */
main { flex: 1; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.page-title {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 1.75rem;
  padding-bottom: .875rem;
  border-bottom: 3px solid var(--azul);
  letter-spacing: -.01em;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--texto);
  margin-bottom: 2rem;
  font-weight: 500;
}

p {
  line-height: 1.8;
  color: var(--texto-muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}

.section-heading {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  color: var(--azul);
  margin: 2.25rem 0 .875rem;
  font-weight: 700;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--blanco);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1.5px solid var(--gris-borde);
  border-top: 4px solid var(--azul);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease-out;
  cursor: default;

  opacity: 0;
  transform: translateY(16px);
  animation: cardFadeUp 450ms var(--ease-out) forwards;
}

.card:nth-child(1) { animation-delay: 80ms; }
.card:nth-child(2) { animation-delay: 160ms; }
.card:nth-child(3) { animation-delay: 240ms; }

@keyframes cardFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26,42,108,.12);
    border-color: var(--azul);
  }
}

.card h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  color: var(--azul);
  margin-bottom: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card p { margin-bottom: 0; max-width: none; }

/* valor card accent colors */
.card--unidad   { border-top-color: var(--azul); }
.card--trans    { border-top-color: #16a34a; }
.card--solid    { border-top-color: #b91c1c; }

.card--unidad h3   { color: var(--azul); }
.card--trans  h3   { color: #166534; }
.card--solid  h3   { color: #991b1b; }

/* ── BOTÓN ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--azul);
  color: var(--blanco);
  padding: .75rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease-out, transform 120ms ease-out, box-shadow 180ms ease-out;
  min-height: 44px;
  letter-spacing: -.01em;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--azul-hover);
    box-shadow: 0 4px 16px rgba(26,42,108,.25);
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--azul);
}
.btn-ghost:hover { background: var(--azul); color: var(--blanco); }

/* ── INFO BOX ── */
.info-box {
  background: var(--gris-bg);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1.5px solid var(--gris-borde);
  margin-top: 2rem;
}

.info-box h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.05rem;
  color: var(--azul);
  margin-bottom: .875rem;
  font-weight: 700;
}

/* ── CONTACTO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1.25rem;
  background: var(--gris-bg);
  border-radius: 10px;
  border: 1.5px solid var(--gris-borde);
  transition: border-color 200ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover { border-color: var(--azul); }
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--azul);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; stroke: white; fill: none; }

.contact-item strong {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-muted);
  margin-bottom: .2rem;
}

.contact-item p { margin: 0; max-width: none; color: var(--texto); font-weight: 500; }

.contact-item a { color: var(--azul); text-decoration: none; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* ── FORMULARIO ── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }

form { display: flex; flex-direction: column; gap: 1.125rem; }

form label {
  font-family: 'Lexend', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: .05em;
}

form input, form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
  min-height: 44px;
}

form input::placeholder, form textarea::placeholder { color: #94a3b8; }

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(26,42,108,.12);
}

form textarea { resize: vertical; min-height: 130px; }

/* ── GALERÍA PRONTO ── */
.pronto {
  text-align: center;
  padding: 5rem 2rem;
}

.pronto-icon {
  width: 72px;
  height: 72px;
  background: var(--gris-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--gris-borde);
}

.pronto-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--azul);
  fill: none;
}

.pronto h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.3rem;
  color: var(--texto);
  margin-bottom: .75rem;
}

.pronto p { color: var(--texto-muted); max-width: 400px; margin: 0 auto 1.75rem; }

/* ── FOOTER ── */
footer {
  background: var(--azul);
  color: rgba(255,255,255,.75);
  padding: 1.75rem 2rem;
  font-size: .875rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 1.5rem; }

footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color 150ms ease-out;
}
footer a:hover { color: var(--blanco); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--azul);
    flex-direction: column;
    padding: .75rem;
    gap: .125rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }

  nav.open { display: flex; }
  nav a::after { display: none; }
  nav a { min-height: 44px; }

  .nav-inner { position: relative; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }

  .cards { grid-template-columns: 1fr; }

  .container { padding: 2.5rem 1.25rem; }
}
