/* ── VARIABLES ───────────────────────────── */
:root {
  --primary: #021d33;
  --primary-mid: #0a2d4d;
  --accent: #0f6e9e;
  --bg: #f0f4f8;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(2,29,51,.08), 0 1px 4px rgba(2,29,51,.05);
  --shadow-lg: 0 12px 40px rgba(2,29,51,.13), 0 4px 12px rgba(2,29,51,.07);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--primary);
  padding: 0 40px;
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar img {
  height: 32px;
  object-fit: contain;
}

.navbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: all .2s;
}

nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
  margin-left: 6px;
}

.btn-volver svg {
  width: 15px;
  height: 15px;
}

.btn-volver:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
}

/* ── HERO STRIP ──────────────────────────── */
.hero-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #0a3a5c 100%);
  padding: 44px 24px 52px;
  position: relative;
  overflow: hidden;
}

.hero-strip::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero-strip::after {
  content: '';
  position: absolute;
  left: 40%;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  display: block;
  margin-bottom: 8px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 540px;
  line-height: 1.6;
}

/* ── PAGE ────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: -28px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* ── GRID DE CARDS ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* ── CARD ────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #0a3a5c 100%);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-icon::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.card-icon svg {
  width: 44px;
  height: 44px;
  stroke: rgba(255,255,255,.9);
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.card-body p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.btn-turno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s;
  letter-spacing: .01em;
  align-self: flex-start;
}

.btn-turno svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.btn-turno:hover {
  background: #0a2d4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2,29,51,.28);
}

.btn-turno:hover svg {
  transform: translateX(3px);
}

/* ── CTA BANNER ──────────────────────────── */
.cta-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cta-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
}

.cta-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ── SITE FOOTER ─────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px 24px 32px;
  color: #94a3b8;
  font-size: 13px;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 680px) {
  .navbar { padding: 0 20px; }
  .hero-title { font-size: 26px; }
  .page { padding: 0 16px 48px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-btn { align-self: stretch; justify-content: center; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}