/* ═══════════════════════════════════════════════════════════════
   base.css — miramarense.com.ar
   Estilos compartidos por todas las páginas del sitio
   ═══════════════════════════════════════════════════════════════ */

/* ── Fuente base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: #ffffff;
  color: #374151;
  font-size: 1rem;
  line-height: 1.85;
}

/* ── Alpine ──────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Tipografía de cuerpo de texto ───────────────────────────── */
.cuerpo-texto {
  font-size: 1rem;
  color: #374151;
  line-height: 1.85;
}
.cuerpo-texto p           { margin-bottom: 1.1rem; }
.cuerpo-texto p:last-child{ margin-bottom: 0; }
.cuerpo-texto p:empty     { display: none; }
.cuerpo-texto strong      { color: #111827; }
.cuerpo-texto a           { color: #e8722a; text-decoration: none; }
.cuerpo-texto a:hover     { text-decoration: underline; }
.cuerpo-texto blockquote  {
  border-left: 4px solid #e8722a;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 1.25rem 0;
  font-style: italic;
  color: #4b5563;
}
.cuerpo-texto h1,
.cuerpo-texto h2,
.cuerpo-texto h3 { font-weight: 600; margin: 1.4rem 0 .6rem; color: #111827; }
.cuerpo-texto img    { max-width: 100%; border-radius: 8px; margin: 1.25rem 0; display: block; }
.cuerpo-texto iframe { max-width: 100%; border-radius: 8px; margin: 1.25rem 0; }

/* ── Banner de sección (naranja) ─────────────────────────────── */
.banner-seccion {
  background: #e8722a;
  padding: 3rem 0;
}
.banner-seccion h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 300;
}

/* ── Breadcrumb (bajo el banner) ─────────────────────────────── */
.breadcrumb-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: .625rem 0;
}
.breadcrumb-bar ol {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: #6b7280;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.breadcrumb-bar a       { color: #6b7280; text-decoration: none; transition: color .15s; }
.breadcrumb-bar a:hover { color: #e8722a; }
.breadcrumb-bar .current{ color: #374151; }

/* ── Breadcrumb sobre hero (blanco) ──────────────────────────── */
.breadcrumb-hero { display: flex; align-items: center; gap: 6px; font-size: .75rem; }
.breadcrumb-hero a            { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb-hero a:hover      { color: #fff; }
.breadcrumb-hero .sep         { color: rgba(255,255,255,.4); }
.breadcrumb-hero .current     { color: rgba(255,255,255,.55); }

/* ── Hero con foto ───────────────────────────────────────────── */
.hero-base {
  height: 220px;
  background-size: cover;
  background-position: center 40%;
  position: relative;
}
.hero-base::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65));
}
.hero-base .inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 24px;
}

/* ── Sidebar widgets ─────────────────────────────────────────── */
.sidebar-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 1.25rem;
}
.sidebar-widget-header {
  background: #e8722a;
  padding: .625rem 1rem;
}
.sidebar-widget-header h3 {
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
}
.sidebar-widget-body {
  padding: 1rem;
}

/* ── Foto circular (sidebar noticias) ────────────────────────── */
.foto-circular {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Tags ────────────────────────────────────────────────────── */
.tag-link {
  display: inline-block;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: .8rem;
  color: #555;
  margin-right: 6px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: all .2s;
}
.tag-link:hover { background: #f3f4f6; color: #374151; }

/* ── Skeleton loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar-wrap {
  height: 6px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s ease;
}

/* ── Leaflet popup ───────────────────────────────────────────── */
.leaflet-popup-content-wrapper { border-radius: 10px !important; }
.leaflet-popup-content { font-size: 13px; line-height: 1.5; margin: 10px 14px; }
.popup-nombre { font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.popup-dir    { color: #6b7280; margin-bottom: 2px; }
.popup-tel    { color: #6b7280; margin-bottom: 6px; }
.popup-link   { color: #e8722a; text-decoration: none; font-weight: 500; font-size: 12px; }
.popup-link:hover { text-decoration: underline; }
.popup-turno  { display: inline-block; background: #22c55e; color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 20px; margin-bottom: 6px; }
