/*
Theme Name: Back Supplements
Theme URI: https://backsupplements.com
Description: Tema de reseñas de suplementos de salud
Version: 1.0
Author: Back Supplements
Text Domain: backsupplements
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --dark: #2D3436;
  --white: #FFFFFF;
  --accent: #00B894;
  --accent-dark: #00A07D;
  --light-bg: #F8F9FA;
  --border: #E0E0E0;
  --text-secondary: #636E72;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

.site-header {
  background: var(--dark);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}
.site-logo span { color: var(--accent); }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: 1.8rem;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }

.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2324 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
}
.hero h1 {
  font-size: 2.5rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 550px;
  margin: 0 auto;
}

.categories-grid {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cat-card p { font-size: 0.9rem; color: var(--text-secondary); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.content-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.1rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.entry-content h2 {
  font-size: 1.55rem;
  margin-top: 2.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.entry-content h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.entry-content p { margin-bottom: 1.1rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--light-bg);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.entry-content th {
  background: var(--dark);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.entry-content td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.entry-content tr:nth-child(even) td { background: var(--light-bg); }

.featured-img {
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.medical-disclaimer {
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.medical-disclaimer strong { color: #E65100; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.2rem 1.3rem; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt { font-size: 0.9rem; color: var(--text-secondary); }
.post-card .read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-dark);
}

.page-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.page-content p { margin-bottom: 1rem; }

.team-card {
  display: flex;
  gap: 1.5rem;
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  align-items: center;
}
.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.contact-form { max-width: 500px; margin: 1.5rem 0; }
.contact-form label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
}
.contact-form textarea { height: 120px; resize: vertical; }
.btn-submit {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-dark); }

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .main-nav a { margin-left: 0; margin-right: 1rem; }
  .post-header h1 { font-size: 1.6rem; }
  .team-card { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
}
