/*
Theme Name: Guía Salud Vital
Theme URI: https://guia-salud-vital.co/
Author: Guía Salud Vital Editorial Board
Author URI: https://guia-salud-vital.co/about/
Description: Clean, high-authority Selección de calzado y calcetines para pies sensibles publication theme for Guía Salud Vital. Fully responsive, accessibility vetted, E-E-A-T and GDPR compliant.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guia-salud-vital-co-theme
Tags: blog, news, education, custom-header, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --theme-primary: #18181b;
  --theme-accent: #b45309;
  --theme-bg: #fafafa;
  --theme-surface: #ffffff;
  --theme-text: #18181b;
  --theme-text-muted: #71717a;
  --theme-border: #e4e4e7;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--theme-text);
  line-height: 1.25;
  font-weight: 700;
}

a { color: var(--theme-primary); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.85; }

.site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.announcement-bar {
  background: var(--theme-primary);
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  font-weight: 500;
}
.announcement-bar a { color: #ffffff; text-decoration: underline; margin-left: 6px; }

/* Site Header */
.site-header {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-badge {
  background: var(--theme-primary);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.site-nav-menu { display: flex; list-style: none; gap: 24px; align-items: center; }
.site-nav-menu a { font-weight: 600; font-size: 14px; color: var(--theme-text); }
.site-nav-menu a:hover { color: var(--theme-accent); }

.btn-action {
  background: var(--theme-primary);
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-action:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Hero Section */
.hero-banner {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--theme-border);
}
.hero--magazine { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.section-eyebrow {
  color: var(--theme-accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-banner h1 { font-size: 42px; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-banner-sub { font-size: 18px; color: var(--theme-text-muted); margin-bottom: 24px; max-width: 650px; }

/* Article Grid */
.section-title { font-size: 28px; margin-bottom: 8px; }
.section-subtitle { color: var(--theme-text-muted); margin-bottom: 32px; font-size: 16px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}
.article-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.card-meta-bar { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 12px; }
.category-badge { background: var(--theme-bg); color: var(--theme-text); padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.reading-time { color: var(--theme-text-muted); }
.article-card-title { font-size: 20px; margin-bottom: 10px; }
.article-card-excerpt { font-size: 14px; color: var(--theme-text-muted); margin-bottom: 20px; flex-grow: 1; }
.author-meta-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--theme-border); padding-top: 14px; font-size: 12px; }
.author-meta-name { font-weight: 700; color: var(--theme-text); }
.author-meta-institution { color: var(--theme-text-muted); }

/* Editorial Board Section */
.editorial-board-section { background: var(--theme-surface); border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); padding: 50px 0; margin-bottom: 60px; }
.board-members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.board-member-card { border: 1px solid var(--theme-border); border-radius: 8px; padding: 20px; background: var(--theme-bg); }
.board-member-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.board-member-role { font-size: 13px; color: var(--theme-accent); font-weight: 600; margin-bottom: 4px; }
.board-member-institution { font-size: 12px; color: var(--theme-text-muted); }

/* Product Catalog Grid (E-commerce / Showcase) */
.products-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-bottom: 50px; }
.product-catalog-card { background: var(--theme-surface); border: 1px solid var(--theme-border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.product-price-tag { font-size: 22px; font-weight: 800; color: var(--theme-primary); margin: 10px 0; }
.product-stock-badge { background: #e6f4ea; color: #137333; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* Footer */
.site-footer { margin-top: auto; width: 100%; clear: both;  background: var(--theme-surface); border-top: 1px solid var(--theme-border); padding: 50px 0 20px; font-size: 14px; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer-col h4 { font-size: 16px; margin-bottom: 16px; }
.site-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer-disclaimer { background: var(--theme-bg); border: 1px solid var(--theme-border); border-radius: 8px; padding: 16px; font-size: 12px; color: var(--theme-text-muted); margin-bottom: 24px; }
.site-footer-legal-bar { border-top: 1px solid var(--theme-border); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--theme-text-muted); flex-wrap: wrap; gap: 12px; }

/* Cookie Banner */
.cookie-banner-popup {
  animation: fadeSlideUp 0.35s ease-out;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .cookie-banner-popup {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero--magazine { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 32px; }
  .site-nav-menu { display: none; }
  .site-footer-grid { grid-template-columns: 1fr; }
}

main { flex: 1 0 auto; width: 100%; }
.site-footer, .site-footer * { overflow-wrap: break-word; word-break: break-word; }
.footer-column { min-width: 0; }
