/* ==========================================================================
   MIMONCLOVA.COM - HOJA DE ESTILOS PRINCIPAL
   ==========================================================================
   Un solo archivo controla el diseño de TODO el sitio. Cambiar un color o
   tamaño aquí lo actualiza en todas las páginas.

   Páginas "hoja" (ficha de un doctor/restaurante/negocio) usan un
   subconjunto reducido de este mismo CSS (sin exigir clases nuevas):
   header mínimo (solo .logo-link, sin .main-nav) y footer sin
   .footer-grid completo. Ver documento de estrategia para más detalle.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE MARCA
   -------------------------------------------------------------------------- */
:root {
  /* Colores de marca (extraídos del logo 2026) */
  --color-navy: #0028A0;        /* azul marino - encabezados, header, énfasis */
  --color-blue: #3070F0;        /* azul brillante - acentos secundarios, links */
  --color-orange: #F87800;      /* naranja - botones, CTA, etiquetas destacadas */
  --color-orange-dark: #D96400; /* naranja oscuro - hover de botones */

  /* Colores neutros */
  --color-bg: #F7F8FA;          /* fondo general, gris cálido muy claro */
  --color-white: #FFFFFF;
  --color-text: #23262B;        /* texto principal */
  --color-text-light: #6B6F76;  /* texto secundario / descripciones */
  --color-border: #E2E5EA;      /* líneas divisorias sutiles */

  /* Tipografía (Google Fonts, cargada en el <head> de cada página) */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* Medidas reutilizables */
  --max-width: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* --------------------------------------------------------------------------
   2. RESET BÁSICO
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA GENERAL
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.text-light {
  color: var(--color-text-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. CONTENEDOR Y SECCIONES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. ENCABEZADO / NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 34px;
  width: auto;
}

/* Menú principal (escritorio) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-orange);
}

.nav-extra {
  display: none;
}

/* Botón de menú hamburguesa (solo móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 64px 0 72px;
  text-align: center;
}

.hero .eyebrow {
  color: #7FA8F5;
}

.hero h1 {
  color: var(--color-white);
  max-width: 720px;
  margin: 0 auto 1.1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. TARJETAS DE SECCIÓN (Restaurantes / Médico / Cine)
   -------------------------------------------------------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -40px;
}

.pillar-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 26px;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: border-color 0.15s ease;
}

.pillar-card:hover {
  border-color: var(--color-orange);
  text-decoration: none;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #E6ECFB;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.pillar-card h3 {
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.pillar-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   8. FRANJA DE UTILIDAD (enlaces secundarios de bajo mantenimiento)
   -------------------------------------------------------------------------- */
.utility-bar {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.utility-bar p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.utility-bar a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   9. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white) !important;
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
}

/* --------------------------------------------------------------------------
   10. PIE DE PÁGINA (dos niveles: universal y home — ver documento maestro)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 44px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  max-width: 320px;
}

.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 4px 0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.footer-bottom a {
  display: inline;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE / MÓVIL
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .pillar-grid {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(0, 40, 160, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-extra {
    display: block;
  }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .hero {
    padding: 48px 0 60px;
  }
}

/* --------------------------------------------------------------------------
   11B. NAV - ESTADO ACTIVO (indica en qué sección está el visitante)
   -------------------------------------------------------------------------- */
.main-nav a.active {
  color: var(--color-orange);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. ENCABEZADO DE PÁGINA (secciones internas, más ligero que el hero del home)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0 32px;
}

.page-header h1 {
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--color-text-light);
  max-width: 620px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. BUSCADOR SIMPLE (filtra listados por nombre/categoría, sin backend)
   -------------------------------------------------------------------------- */
.search-box {
  margin: 28px 0 8px;
}

.search-box input {
  width: 100%;
  max-width: 420px;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}

.search-box input:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.search-count {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   14. LISTADO DE NEGOCIOS (restaurantes, y reutilizable para otros directorios)
   -------------------------------------------------------------------------- */
.listing {
  border-top: 1px solid var(--color-border);
}

.restaurant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none !important;
  color: var(--color-text);
}

.restaurant-row.has-page {
  cursor: pointer;
}

.restaurant-row.has-page:hover {
  background-color: var(--color-bg);
}

.restaurant-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.restaurant-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 1.02rem;
}

.restaurant-category {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.restaurant-phone {
  font-size: 0.88rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.restaurant-arrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-orange);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. PIE DE PÁGINA SIMPLIFICADO (páginas que NO son el home)
   -------------------------------------------------------------------------- */
.footer-simple {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-simple a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-simple a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE ADICIONAL
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .restaurant-row {
    flex-wrap: wrap;
  }

  .restaurant-phone {
    order: 3;
    width: 100%;
    font-size: 0.82rem;
  }

  .restaurant-arrow {
    order: 2;
  }
}

