/* Dra. Gloria Cabeza de Vaca - sitio estatico
   Un solo archivo CSS. Sin dependencias. Mobile-first. */

:root {
  --azul: #1f4e5f;      /* principal, sobrio */
  --azul-claro: #2e7d8f;
  --acento: #b56576;    /* calido, para CTA secundarios */
  --verde: #2e7d32;     /* boton llamar */
  --texto: #23303a;
  --texto-suave: #566571;
  --fondo: #ffffff;
  --fondo-suave: #f4f7f8;
  --borde: #e2e8ea;
  --radio: 12px;
  --sombra: 0 2px 10px rgba(31, 78, 95, 0.08);
  --ancho: 960px;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul-claro); }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Encabezado ---------- */
.sitio-header {
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
  position: sticky;
  top: 0;
  z-index: 50;
}
.sitio-header .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.marca { display: flex; flex-direction: column; text-decoration: none; }
.marca .nombre { font-weight: 700; color: var(--azul); font-size: 1.05rem; line-height: 1.2; }
.marca .esp { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--texto-suave); text-transform: uppercase; }

nav.principal { display: none; gap: 22px; }
nav.principal a { text-decoration: none; color: var(--texto); font-weight: 500; font-size: 0.95rem; }
nav.principal a:hover, nav.principal a[aria-current="page"] { color: var(--azul-claro); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde);
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { background: var(--fondo-suave); padding: 48px 0; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: 1.9rem; color: var(--azul); margin: 0 0 8px; line-height: 1.15; }
.hero .lema { color: var(--texto-suave); font-size: 1.05rem; margin: 0 0 24px; }
.hero-foto {
  width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: var(--radio); box-shadow: var(--sombra);
  aspect-ratio: 4 / 5; object-fit: cover;
  background: #dbe4e6;
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent;
}
.btn-llamar { background: var(--verde); color: #fff; }
.btn-llamar:hover { background: #256428; }
.btn-secundario { background: #fff; color: var(--azul); border-color: var(--borde); }
.btn-secundario:hover { border-color: var(--azul-claro); }
.btn-whatsapp { background: #25d366; color: #08331b; }

.nota-cita { font-size: 0.9rem; color: var(--texto-suave); margin-top: 12px; }

/* ---------- Secciones ---------- */
section.bloque { padding: 44px 0; }
section.bloque.suave { background: var(--fondo-suave); }
h2 { font-size: 1.5rem; color: var(--azul); margin: 0 0 18px; }
h3 { font-size: 1.1rem; color: var(--azul); margin: 0 0 6px; }

.tarjetas { display: grid; gap: 18px; }
.tarjeta {
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra);
}

.pendiente {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #8a6d00; background: #fff4cc; border: 1px solid #f0dda0;
  padding: 2px 8px; border-radius: 6px; margin-bottom: 8px;
}

.datos-contacto { list-style: none; padding: 0; margin: 0; }
.datos-contacto li { margin-bottom: 14px; }
.datos-contacto strong { display: block; color: var(--azul); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

.mapa { border: 0; width: 100%; height: 320px; border-radius: var(--radio); }

/* ---------- Pie con NAP ---------- */
.sitio-footer { background: var(--azul); color: #dfeaed; padding: 36px 0 96px; font-size: 0.95rem; }
.sitio-footer .contenedor { display: grid; gap: 20px; }
.sitio-footer .nombre-footer { color: #fff; font-weight: 700; font-size: 1.05rem; }
.sitio-footer a { color: #bfe0e8; }
.sitio-footer .nap p { margin: 2px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Barra de llamada fija (movil) ---------- */
.barra-llamar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 16px;
  background: #fff; border-top: 1px solid var(--borde);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.barra-llamar .btn { flex: 1; justify-content: center; padding: 13px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  nav.principal { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-grid .hero-foto { order: 2; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .sitio-footer .contenedor { grid-template-columns: 2fr 1fr; }
  .sitio-footer { padding-bottom: 36px; }
  .barra-llamar { display: none; }
}
@media (min-width: 960px) {
  .tarjetas.tres { grid-template-columns: repeat(3, 1fr); }
}
