:root {
  --azul: #0d47a1;
  --celeste: #4fc3f7;
  --blanco: #ffffff;
  --texto: #0f172a;
  --bg: #f8fafc; 
  --radius: 16px;
  --shadow: 0 8px 24px rgba(13, 71, 161, 0.12);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--texto);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 72px 0; scroll-margin-top: calc(var(--header-h) + 24px); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--azul), var(--celeste));
  color: var(--blanco);
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--blanco); padding: 4px; }
.brand__name { font-weight: 800; letter-spacing: 0.3px; font-size: 1.25rem; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nav-link { padding: 10px 14px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; color: var(--blanco); }
.nav-link:hover { background: rgba(255,255,255,0.15); }
.nav-link.is-active { background: var(--blanco); color: var(--azul); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle:focus-visible { outline: 2px solid var(--blanco); }
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: var(--blanco); margin: 4px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); }
  .nav-list {
    flex-direction: column; gap: 0; background: linear-gradient(180deg, var(--azul), var(--celeste));
    padding: 10px; border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav[data-collapsed="false"] .nav-list { max-height: 460px; }
  .nav-link { padding: 14px 12px; border-radius: 10px; }
}

.hero { background: linear-gradient(180deg, rgba(79,195,247,0.12), transparent); }
.hero h1 { font-size: clamp(1.8rem, 1.5rem + 2vw, 3rem); margin: 0 0 12px; color: var(--azul); }
.hero p { font-size: 1.05rem; line-height: 1.6; max-width: 65ch; }

h2 { color: var(--azul); margin: 0 0 12px; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.section p { margin: 0; opacity: 0.9; }

.contact-card {
  background: var(--blanco);
  border: 1px solid #e6eaf0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-card__header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.contact-card__sub { color: #475569; font-size: .95rem; }

.contact-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.contact-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid #eef2f7; background: #fbfdff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--azul);
}
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #e1e8f2; }
.icon-sm { width: 18px; height: 18px; fill: currentColor; opacity: 0.9; }

.btn-primario { display: inline-block; margin-top: 18px; background: var(--azul); color: var(--blanco); padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.btn-primario:hover { background: #083a85; transform: translateY(-2px); }

.site-footer { background: var(--azul); color: var(--blanco); padding: 20px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.to-top { color: var(--blanco); text-decoration: underline; }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .brand__name { font-size: 1.1rem; }
  .brand__logo { width: 36px; height: 36px; }
  .contact-items { grid-template-columns: 1fr; }
  .contact-item { padding: 12px 14px; }
}