/* anticoagulado.info — REBUILD 2025 */
:root {
  --primary:   #8a4156;  /* main header, footer bg */
  --secondary: #79394b;  /* nav hover, accents */
  --accent:    #f09341;  /* buttons, links, highlights */
  --text:      #32373c;  /* body text */
  --bg:        #ffffff;  /* page background */
  --bg-light:  #f4ebed;  /* light sections */
  --border:    #e8d4d8;  /* borders */
  --heading:   #4a1e2a;  /* headings */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--secondary); }
p { margin-bottom: 1em; }
ul, ol { margin: 0.75em 0 1em 1.5em; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.3; margin-bottom: 0.6em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 0; top: 0; z-index: 9999; background: var(--primary); color: #fff; padding: 8px 16px; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.header-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.header-banner-img {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  display: block;
}
.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.site-description {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

/* ── NAVIGATION ── */
.main-navigation {
  background: var(--secondary);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-inner ul li a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-page a {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── SITE INNER ── */
.site-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

/* ── MAIN CONTENT ── */
.content-area { min-width: 0; }

/* ── PAGE HERO (for pages) ── */
.page-hero {
  background: var(--bg-light);
  border-left: 5px solid var(--primary);
  padding: 24px 28px;
  margin-bottom: 32px;
  border-radius: 0 6px 6px 0;
}
.page-hero h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
.page-hero p { font-size: 1rem; color: #555; margin: 0; }

/* ── ARTICLE LIST (blog) ── */
.posts-list { display: flex; flex-direction: column; gap: 32px; }

.anticoagulado-post {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.anticoagulado-post:hover { box-shadow: 0 4px 16px rgba(138,65,86,0.12); }

.post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.post-thumbnail-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumbnail-placeholder span {
  font-size: 3rem;
  opacity: 0.5;
  color: #fff;
}

.post-content { padding: 24px; }
.post-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-category-tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.35;
}
.post-title a { color: var(--heading); text-decoration: none; }
.post-title a:hover { color: var(--primary); text-decoration: none; }
.post-excerpt { font-size: 0.95rem; color: #555; line-height: 1.65; margin-bottom: 16px; }
.read-more-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.read-more-link:hover { background: var(--accent); text-decoration: none; color: #fff; }

/* ── SINGLE ARTICLE ── */
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: 1.9rem; color: var(--primary); }
.article-date { font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.article-tag {
  background: var(--bg-light);
  color: var(--secondary);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.article-body h2 { color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 6px; margin-top: 1.5em; }
.article-body h3 { color: var(--secondary); margin-top: 1.2em; }
.article-body ul, .article-body ol { margin-left: 1.5em; }
.article-body li { margin-bottom: 0.4em; }
.article-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 24px;
}

/* ── SIDEBAR ── */
.widget-area { font-size: 0.9rem; }
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 5px 0; border-bottom: 1px solid #f0e8ea; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); font-size: 0.875rem; }
.widget ul li a:hover { color: var(--primary); }

.search-form { display: flex; gap: 6px; }
.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}
.search-form button:hover { background: var(--accent); }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.social-links a:hover { background: var(--accent); text-decoration: none; color: #fff; }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li:last-child { border-bottom: none; }
.footer-col ul li a { color: rgba(255,255,255,0.8); font-size: 0.875rem; text-decoration: none; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ── PAGE CONTENT ── */
.page-body { font-size: 0.975rem; line-height: 1.8; }
.page-body h2 { color: var(--primary); border-left: 4px solid var(--accent); padding-left: 12px; margin-top: 1.8em; }
.page-body h3 { color: var(--secondary); margin-top: 1.3em; }
.page-body ul li { margin-bottom: 0.5em; }
.page-body strong { color: var(--heading); }

/* ── FAQ ── */
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list li {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}
.faq-list li a { color: var(--heading); font-weight: 500; }
.faq-list li a:hover { color: var(--primary); }

/* ── ASSOCIATIONS LIST ── */
.asociaciones-region { margin-bottom: 32px; }
.asociaciones-region h2 {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.asociacion-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.asociacion-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.asociacion-card p { margin: 3px 0; font-size: 0.875rem; color: #555; }
.asociacion-card a { color: var(--accent); }

/* ── ARTICLE TABLE (DOCX) ── */
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.article-table th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; }
.article-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-table tr:nth-child(even) td { background: var(--bg-light); }

/* ── FAQ SECTION (DOCX) ── */
.faq-section h3 {
  background: var(--bg-light);
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  margin: 0 0 2px;
  color: var(--heading);
  font-size: 1rem;
}
.faq-section p {
  padding: 12px 16px;
  background: #fafafa;
  border-left: 4px solid var(--border);
  margin-bottom: 16px;
}

/* ── 404 ── */
.error-404 { text-align: center; padding: 80px 20px; }
.big-404 { font-size: 120px; font-weight: 700; color: var(--accent); line-height: 1; }
.error-404 h2 { font-size: 28px; margin: 16px 0; color: var(--primary); }
.error-404 p { font-size: 1.1rem; color: #666; margin-bottom: 24px; }
.btn-back {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-back:hover { background: var(--accent); text-decoration: none; color: #fff; }

/* ── DOCX PAGE ── */
.docx-article-header {
  background: var(--bg-light);
  border-left: 5px solid var(--primary);
  padding: 28px;
  margin-bottom: 36px;
  border-radius: 0 6px 6px 0;
}
.docx-article-header h1 { font-size: 1.85rem; color: var(--primary); margin-bottom: 8px; }
.docx-article-content h2 {
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-top: 2em;
}
.docx-article-content h3 {
  color: var(--secondary);
  background: var(--bg-light);
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  margin-top: 1.5em;
}
.docx-article-content ul { margin-left: 1.5em; }
.docx-article-content ul li { margin-bottom: 0.5em; }
.docx-article-content p { margin-bottom: 1.1em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-inner {
    grid-template-columns: 1fr;
  }
  .widget-area { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-title { font-size: 1.3rem; }
  .nav-inner ul li a { padding: 10px 12px; font-size: 0.8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .big-404 { font-size: 80px; }
  h1 { font-size: 1.6rem; }
  .article-header h1 { font-size: 1.5rem; }
}
