/* Pulso Social - Revista Digital de Comunicación y Vida Social */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-light: #f0fdfa;
  --border: #e7e5e4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - Pure Editorial Blog Navigation */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

/* Editorial Hero Section */
.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  padding: 50px 0 42px;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero-split h1 {
  font-size: 2.3rem;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-split p {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-img-wrap img {
  width: 100%;
  height: 325px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Grid & Rich Blog Cards */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 26px;
  margin-bottom: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-thumb {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-cat {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.card-meta {
  font-size: 0.84rem;
  color: #78716c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
}

/* Editorial Highlight Box (Pure Blog Content, No Quiz Links) */
.editorial-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 48px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  box-shadow: var(--shadow);
}

.editorial-box img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.editorial-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.editorial-content h2 {
  font-size: 1.42rem;
  margin-bottom: 10px;
  line-height: 1.25;
}

.editorial-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Article Page */
.article-wrap {
  max-width: 760px;
  margin: 44px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover {
  width: 100%;
  height: 365px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.article-inner {
  padding: 38px 42px;
}

.article-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 1.95rem;
  line-height: 1.25;
  margin: 10px 0 12px;
}

.author-bar {
  font-size: 0.88rem;
  color: var(--muted);
}

.article-body h2 {
  font-size: 1.32rem;
  margin: 26px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: #292524;
}

.article-body ul {
  margin: 12px 0 20px 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.next-article-bar {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Quiz Page - High Engagement Lifestyle Visuals */
.quiz-container {
  max-width: 680px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.quiz-banner {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: #f5f5f4;
}

.quiz-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.3s ease;
}

.quiz-banner-tag {
  position: absolute;
  bottom: 14px;
  left: 20px;
  background: rgba(28, 25, 23, 0.76);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
}

.quiz-inner {
  padding: 30px 36px 38px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e7e5e4;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 33.3%;
  transition: width 0.35s ease;
}

.step-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.quiz-question {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 22px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
}

.loader-box {
  text-align: center;
  padding: 46px 16px;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e7e5e4;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-box {
  text-align: center;
}

.result-visual {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.result-score {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.result-box h2 {
  font-size: 1.62rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.result-box p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.result-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.result-summary div {
  margin-bottom: 7px;
}

.result-summary div:last-child {
  margin-bottom: 0;
}

.cta-final {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
  transition: background 0.2s, transform 0.15s;
}

.cta-final:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.disclaimer-small {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #78716c;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
  margin-top: 64px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .hero-split, .editorial-box {
    grid-template-columns: 1fr;
  }
  .hero-split {
    padding-top: 32px;
  }
  .hero-split h1 {
    font-size: 1.88rem;
  }
  .hero-img-wrap img {
    height: 235px;
  }
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }
  .article-inner {
    padding: 24px 20px;
  }
  .article-cover {
    height: 230px;
  }
  .quiz-banner {
    height: 205px;
  }
  .quiz-inner {
    padding: 24px 20px 28px;
  }
  .quiz-container {
    margin: 22px 14px;
  }
}
