/* Centro Médico Alba - Global Styles (mobile-first) */
:root {
  --color-bg: #ffffff;
  --color-primary: #1e78d6; /* azul */
  --color-secondary: #27b18a; /* verde */
  --color-accent: #59a8ff;
  --color-muted: #6b7280;
  --color-surface: #f5fbff; /* very light blue */
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 22px rgba(18, 68, 120, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1100px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e6eef6;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { letter-spacing: .2px; }

.menu-toggle {
  appearance: none;
  background: var(--color-surface);
  border: 1px solid #d7e7f7;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* mobile collapsed */
  flex-direction: column;
  gap: 6px;
}
nav ul.show { display: flex; }
nav a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
nav a:hover { background: var(--color-surface); color: var(--color-primary); }
nav a.active { color: var(--color-primary); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 60%);
  position: relative;
}
.hero .content {
  padding: 56px 0 24px;
  display: grid;
  gap: 20px;
}
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0; }
.hero p { color: var(--color-muted); margin: 0; }
.hero .cta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { transform: translateY(-1px); }

/* Sections */
section { padding: 28px 0; }
section .section-title { font-size: 1.5rem; margin: 0 0 12px; }
.muted { color: var(--color-muted); }

.grid {
  display: grid;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: auto; border-radius: 10px; }

/* Footer */
footer.site-footer { background: #f6fbff; border-top: 1px solid #e6eef6; }
.footer-grid { display: grid; gap: 16px; padding: 18px 0; }
.footer-col a { color: #0f172a; text-decoration: none; }
.socials { display: flex; gap: 12px; }
.socials a { display: inline-flex; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid #e6eef6; }
.copyright { padding: 14px 0 24px; color: var(--color-muted); font-size: .9rem; }

/* Utilities */
.lead { font-size: 1.1rem; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; background: #e9f6ff; color: var(--color-primary); border: 1px solid #d7e7f7; }
.icon { width: 20px; height: 20px; }

/* Responsive */
@media (min-width: 720px) {
  nav ul { display: flex; flex-direction: row; gap: 4px; }
  .menu-toggle { display: none; }
  .hero .content { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 72px 0 32px; }
  .hero h1 { font-size: 2.4rem; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* Forms */
form .field { display: grid; gap: 6px; margin-bottom: 12px; }
input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d7e7f7;
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
form .help { color: var(--color-muted); font-size: .9rem; }
.alert { padding: 12px; border-radius: 10px; border: 1px solid #d1fae5; background: #ecfdf5; color: #065f46; display: none; }

