/* =========================================================================
   ARTICLE.CSS — MEDIXAPP
   Estilo D: WebMD estructural + Healthline moderno
   Con temas dinámicos para CLIENTES, FARMACIAS y DOMICILIARIOS
   ========================================================================= */

/* ============================
   RESET
============================ */
body, h1, h2, h3, h4, p, ul, li, div, span, img, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================
   TIPOGRAFÍA GLOBAL
============================ */
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.7;
}

/* =========================================================================
   TEMAS POR AUDIENCIA (colores dinámicos)
   ========================================================================= */

/* CLIENTES — Azul */
:root {
  --accent-color: #3498db;
  --accent-color-light: #eaf6ff;
}

/* FARMACIAS — Verde */
.theme-farmacia {
  --accent-color: #0ec739;
  --accent-color-light: #e7ffe7;
}

/* DOMICILIARIOS — Naranja */
.theme-domiciliarios {
  --accent-color: #e38d24;
  --accent-color-light: #fff2e2;
}

/* =========================================================================
   TOPBAR — Estilo 
   ========================================================================= */
.topbar-nav {
  margin-left: 20px;      /* antes era auto o 40px */
  gap: 20px;              /* separa los elementos entre sí */
  display: flex;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-logo {
  height: 40px;
  margin-right: 10px;     /* pequeño margen entre logo y menú */
}

.topbar-nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #2a4b7c;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar-nav a:hover {
  color: #1b3161;
}

.topbar-divider {
  border-bottom: 2px solid #efefef;
  margin-bottom: 25px;
}

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5px 20px;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--accent-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* =========================================================================
   LAYOUT GENERAL (artículo + sidebar)
   ========================================================================= */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================================================
   ÁREA PRINCIPAL DEL ARTÍCULO
   ========================================================================= */
.article-main {
  padding-right: 20px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2c4a;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 0.9rem;
  color: #6d6d6d;
  margin-bottom: 25px;
}

.article-meta span {
  margin-right: 6px;
}

/* =========================================================================
   CONTENIDO DEL ARTÍCULO
   ========================================================================= */
.medix-article h2 {
  font-size: 1.55rem;
  margin-top: 35px;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-weight: 700;
}

.medix-article p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.medix-article ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.medix-article li {
  margin-bottom: 10px;
}

/* Intro tipo Healthline */
.intro {
  background: var(--accent-color-light);
  padding: 18px 20px;
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  margin-bottom: 30px;
}

/* Ad-slot */
.ad-slot {
  margin: 20px 0 30px;
  min-height: 150px;
  text-align: center;
}

/* =========================================================================
   CTA PRINCIPAL (botón para llevar a medixapp.net)
   ========================================================================= */
.primary-cta {
  margin-top: 30px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.cta-btn:hover {
  filter: brightness(0.9);
}

/* =========================================================================
   SIDEBAR AL ESTILO WEBMD
   ========================================================================= */
.sidebar-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #1a2c4a;
}

.sidebar-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 15px;
  background: #fdfdfd;
}

.sidebar-card h4 {
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.sidebar-card a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
}

.sidebar-card a:hover {
  text-decoration: underline;
}

.sidebar-list a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #2a4b7c;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

/* =========================================================================
   DISCLAIMER
   ========================================================================= */
.disclaimer {
  margin-top: 30px;
  background: #fff3f3;
  padding: 15px;
  border-left: 4px solid #c62828;
  border-radius: 6px;
  color: #6b0000;
  font-size: 0.9rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.medix-footer {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  border-top: 2px solid #efefef;
  font-size: 0.9rem;
  color: #6a6a6a;
}

.medix-footer a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
}

.medix-footer a:hover {
  text-decoration: underline;
}

/* =========================================================================
   RESPONSIVE (móviles/tablets)
   ========================================================================= */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding-right: 0;
  }
  .sidebar {
    margin-top: 30px;
  }
}

@media (max-width: 600px) {
  .article-header h1 {
    font-size: 1.8rem;
  }
  .topbar-nav a {
    margin-left: 10px;
    font-size: 0.85rem;
  }
}

.monetag-in-article {
  margin: 25px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #ececec;
}

.monetag-in-article iframe,
.monetag-in-article img,
.monetag-in-article div {
  max-width: 100%;
}


.medix-topbar {
  display: flex;
  justify-content: space-between;  /* 🔥 logo izq – menú der */
  align-items: center;
  padding: 10px 20px;
}

