/* ── 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;
  animation: fadeIn .4s ease;
}

/* ── 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: 40px 24px 52px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-strip::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero-inner {
  max-width: 520px;
}

.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: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* contacto central en el hero */
.hero-contacto {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px 18px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

.contacto-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,.55);
}

.contacto-sep {
  height: 1px;
  background: rgba(255,255,255,.12);
}

/* ── PAGE ────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: -28px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* ── GRID ────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* ── 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;
  animation: cardIn .5s ease forwards;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

/* info rows */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--muted);
}

/* ── CARD ACTIONS ────────────────────────── */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  flex: 1;
  justify-content: center;
}

.btn-maps svg { width: 13px; height: 13px; }

.btn-maps:hover {
  background: #0a2d4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2,29,51,.28);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}

.btn-call svg { width: 13px; height: 13px; }

.btn-call:hover {
  background: var(--accent);
  color: #fff;
}

/* ── SITE FOOTER ─────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px 24px 32px;
  color: #94a3b8;
  font-size: 13px;
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .hero-strip { flex-direction: column; align-items: flex-start; padding: 32px 20px 48px; }
  .hero-contacto { width: 100%; }
  .hero-title { font-size: 26px; }
  .page { padding: 0 16px 48px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .btn-maps { flex: unset; }
}