/* ============================================
   VOZINFANCIA.ORG — Global Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --cream: #FAF6EF;
  --white: #ffffff;
  --ink: #1A2E28;
  --ink-light: #3D5A52;
  --orange: #E8572A;
  --orange-light: #FDEEE8;
  --green: #2A7A5E;
  --green-light: #E8F5F0;
  --yellow: #F5C842;
  --yellow-light: #FEFAE8;
  --blue: #3A6FA8;
  --blue-light: #EAF1FB;
  --border: rgba(26,46,40,.12);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-h: 72px;
  --max-w: 1120px;
  --max-w-text: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { color: var(--ink-light); font-size: 1.05rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container--text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 2rem; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,246,239,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.nav-logo-dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: .55rem 1.3rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #c94420 !important; text-decoration: none !important; }

/* ── BREADCRUMBS ── */
.breadcrumb {
  padding: calc(var(--nav-h) + 1.5rem) 0 0;
}
.breadcrumb-list {
  display: flex; align-items: center; gap: .5rem;
  list-style: none;
  font-size: .85rem;
  color: var(--ink-light);
}
.breadcrumb-list a { color: var(--ink-light); text-decoration: underline; }
.breadcrumb-list li::after { content: '→'; margin-left: .5rem; opacity: .4; }
.breadcrumb-list li:last-child::after { display: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #c94420; transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: var(--green-light); color: var(--green); }
.btn-secondary:hover { background: var(--green); color: white; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); text-decoration: none; }

/* ── CHIPS / TAGS ── */
.chip {
  display: inline-flex; align-items: center;
  padding: .3rem .9rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip-orange { background: var(--orange-light); color: var(--orange); }
.chip-green { background: var(--green-light); color: var(--green); }
.chip-yellow { background: var(--yellow-light); color: #8A6E00; }
.chip-blue { background: var(--blue-light); color: var(--blue); }

/* ── ARTICLE CONTENT ── */
.article-content h2 { margin: 2.5rem 0 1rem; }
.article-content h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: .5rem; color: var(--ink-light); }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--orange-light);
  border-radius: 0 12px 12px 0;
}
.article-content blockquote p { color: var(--ink); font-style: italic; margin: 0; }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: white; }
.section-dark { background: var(--ink); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,.75); }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header .chip { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { font-size: 1.1rem; max-width: 560px; }
.section-header--center p { margin: 0 auto; }

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: none; border: none; width: 100%; text-align: left;
}
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--orange);
  transition: transform .3s;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-answer p { padding-bottom: 1.25rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 600px; }

/* ── RELATED ARTICLES ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.related-card {
  background: white; border-radius: 14px; padding: 1.5rem;
  border: 1px solid var(--border);
  text-decoration: none; display: block;
  transition: box-shadow .2s;
}
.related-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); text-decoration: none; }
.related-card .chip { margin-bottom: .75rem; }
.related-card h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: .5rem; }
.related-card p { font-size: .9rem; color: var(--ink-light); }

/* ── ALERT BOXES ── */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.alert-warning { background: #FFF8E1; border-left: 4px solid var(--yellow); }
.alert-info { background: var(--blue-light); border-left: 4px solid var(--blue); }
.alert-emergency { background: #FFF0EE; border-left: 4px solid var(--orange); }
.alert p { margin: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: .75rem; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer-emergency {
  background: rgba(232,87,42,.15);
  border: 1px solid rgba(232,87,42,.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-emergency span { font-size: .9rem; }
.footer-emergency strong { color: white; }
.footer-emergency a { color: var(--orange); font-weight: 600; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp .6s ease forwards; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* ── MOBILE ── */
.nav-mobile-toggle { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: none; border: 1.5px solid var(--border);
    border-radius: 8px; cursor: pointer; font-size: 1.2rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}

/* ── MOBILE MENU OPEN STATE ── */
.site-nav.nav-open .nav-links {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 100;
}

/* ── COOKIE CONSENT BANNER (GDPR) ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ink);
  color: rgba(255,255,255,.85);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
#cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-inner p {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin: 0;
  flex: 1;
  min-width: 280px;
  line-height: 1.6;
}
.cookie-inner a {
  color: var(--orange);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .55rem 1.2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.cookie-btn--accept {
  background: var(--orange);
  color: white;
}
.cookie-btn--accept:hover { background: #c94420; }
.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.25);
}
.cookie-btn--reject:hover {
  border-color: rgba(255,255,255,.5);
  color: white;
}
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; text-align: center; padding: 1.25rem 1.5rem; }
  .cookie-actions { justify-content: center; }
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--green);
  padding: 3rem 0;
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text {
  flex: 1;
  min-width: 280px;
}
.newsletter-text h3 {
  font-family: var(--font-serif);
  color: white;
  font-size: 1.4rem;
  margin-bottom: .35rem;
}
.newsletter-text p {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  margin: 0;
}
.newsletter-form {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.newsletter-form input[type="email"] {
  padding: .7rem 1.2rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: white;
  font-family: var(--font-sans);
  font-size: .92rem;
  width: 260px;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,.6); }
.newsletter-form button {
  padding: .7rem 1.5rem;
  border-radius: 100px;
  background: white;
  color: var(--green);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.newsletter-form button:hover { background: var(--cream); }
.newsletter-msg {
  display: none;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  margin-top: .5rem;
  width: 100%;
  text-align: center;
}
@media (max-width: 600px) {
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type="email"] { width: 100%; }
}

/* ── CITATION / SOURCE BOXES ── */
.source-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.source-box h4 {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
  margin-bottom: .75rem;
}
.source-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.source-box li {
  font-size: .88rem;
  color: var(--ink-light);
  margin-bottom: .4rem;
  padding-left: 1rem;
  position: relative;
}
.source-box li::before {
  content: '📄';
  position: absolute;
  left: 0;
  font-size: .75rem;
}
.source-box a {
  color: var(--blue);
  text-decoration: underline;
}

/* ── AUTHOR CARD ── */
.author-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.author-avatar {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .15rem;
}
.author-info p {
  font-size: .85rem;
  color: var(--ink-light);
  margin: 0;
}
