/* cucoalmeria.net — ocean palette, Lora + Nunito Sans, vanilla-css */
@import url('https://fonts.bunny.net/css?family=lora:400,600,700|nunito-sans:400,600&display=swap');

:root {
  --col-primary: #1a5276;
  --col-secondary: #e8a838;
  --col-bg: #fdfcf9;
  --col-surface: #ffffff;
  --col-text: #1c1c1c;
  --col-muted: #6b7280;
  --col-border: #e5e0d8;
  --col-accent-light: #eaf2fb;
  --radius: 6px;
  --max-w: 1160px;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--col-text);
  background: var(--col-bg);
}

/* ── HEADER ── */
.site-header {
  background: var(--col-primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.site-logo svg { flex-shrink: 0; }
.logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.logo-wordmark span { color: var(--col-secondary); }

/* nav */
.site-nav { display: flex; gap: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.12);
}

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 4px 0; border-radius: 2px; transition: .2s;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; flex-direction: column; gap: .25rem;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--col-primary); padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .6rem .75rem; }
}

/* ── HERO (homepage) ── */
.hero {
  background: linear-gradient(135deg, var(--col-primary) 0%, #154360 60%, #0e2d46 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--col-secondary); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 2rem; }
.hero-cta {
  display: inline-block; padding: .8rem 2rem;
  background: var(--col-secondary); color: #1c1c1c;
  font-weight: 700; border-radius: var(--radius);
  text-decoration: none; transition: opacity .15s;
}
.hero-cta:hover { opacity: .88; }

/* ── HERO THUMB (topic pages) ── */
.page-hero {
  background: var(--col-primary); color: #fff;
  padding: 3rem 1.5rem 2.5rem;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero-eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--col-secondary); margin-bottom: .6rem;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25; margin-bottom: .75rem;
}
.page-hero p { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 680px; }

/* ── LAYOUT ── */
.section { padding: 3.5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-family: var(--font-head); font-size: 1.6rem;
  font-weight: 700; margin-bottom: .5rem; color: var(--col-primary);
}
.section-subtitle { color: var(--col-muted); margin-bottom: 2rem; max-width: 560px; }

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.card-thumb {
  aspect-ratio: 4/3; background: var(--col-accent-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-thumb picture, .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .thumb-placeholder { color: var(--col-muted); font-size: .85rem; }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.card-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--col-secondary);
}
.card-title {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 600; line-height: 1.3; color: var(--col-primary);
}
.card-excerpt { font-size: .875rem; color: var(--col-muted); margin-top: .25rem; }
.card-cta {
  margin-top: auto; padding-top: .75rem;
  font-size: .8rem; font-weight: 600; color: var(--col-primary);
}

/* article layout */
.article-wrap { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; } .article-sidebar { display: none; } }

.article-body { min-width: 0; }
.article-body h2 {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--col-primary); margin: 2.5rem 0 .8rem; line-height: 1.25;
}
.article-body h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body a { color: var(--col-primary); font-weight: 600; }
.article-body ul, .article-body ol { margin: .75rem 0 1rem 1.25rem; }
.article-body li { margin-bottom: .4rem; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article-body figcaption { font-size: .8rem; color: var(--col-muted); margin-top: .4rem; text-align: center; }

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--col-primary); margin-bottom: 1rem; }
details {
  border: 1px solid var(--col-border);
  border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden;
}
details summary {
  padding: .9rem 1rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--col-surface);
}
details summary::after { content: '+'; font-size: 1.2rem; color: var(--col-primary); }
details[open] summary::after { content: '−'; }
details p { padding: .75rem 1rem 1rem; font-size: .9rem; color: #333; background: var(--col-bg); }

/* sidebar */
.article-sidebar { padding-top: .25rem; }
.sidebar-box {
  background: var(--col-surface); border: 1px solid var(--col-border);
  border-radius: calc(var(--radius)*1.5); padding: 1.25rem; margin-bottom: 1.5rem;
}
.sidebar-box h3 { font-family: var(--font-head); font-size: 1rem; color: var(--col-primary); margin-bottom: .75rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: .35rem 0; border-bottom: 1px solid var(--col-border); font-size: .875rem; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--col-primary); font-weight: 600; text-decoration: none; }
.sidebar-box a:hover { text-decoration: underline; }

/* breadcrumb */
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 1rem 1.5rem 0; font-size: .8rem; color: var(--col-muted); }
.breadcrumb a { color: var(--col-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--col-primary); }
.breadcrumb span { margin: 0 .35rem; }

/* ── HIGHLIGHTED BAND ── */
.band { background: var(--col-accent-light); }
.band-dark { background: var(--col-primary); color: #fff; }
.band-dark .section-title { color: #fff; }
.band-dark .section-subtitle { color: rgba(255,255,255,.75); }

/* ── FOOTER ── */
.site-footer {
  background: #0e2438; color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .logo-wordmark { font-size: 1.1rem; }
.footer-desc { font-size: .85rem; margin-top: .6rem; color: rgba(255,255,255,.55); }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.65); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-credits { max-width: var(--max-w); margin: .75rem auto 0; font-size: .7rem; color: rgba(255,255,255,.25); }
.footer-credits a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-credits a:hover { color: rgba(255,255,255,.55); }

/* ── CHARTS ── */
.chart-wrap { position: relative; margin: 2rem 0; max-width: 860px; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card { background: #f4f8fb; border-radius: 8px; padding: 1.25rem 1rem; text-align: center; border-top: 3px solid var(--col-primary); }
.stat-num { display: block; font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 700; color: var(--col-primary); line-height: 1.3; }
.stat-label { display: block; font-size: .78rem; color: #6b7a8d; margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th { background: var(--col-primary); color: #fff; text-align: left; padding: .6rem 1rem; font-weight: 600; }
.table-wrap td { padding: .55rem 1rem; border-bottom: 1px solid #e2eaf1; }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td { background: #f4f8fb; }

/* util */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid #e2eaf1; }
.faq-item:first-of-type { border-top: 1px solid #e2eaf1; }
.faq-item h3 { margin: 0; }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1rem 2rem 1rem 0; cursor: pointer; position: relative;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--col-primary); line-height: 1.4;
}
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--col-secondary);
  transition: transform .2s ease;
}
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 1rem; }
.faq-answer p { margin: 0; font-size: .95rem; color: var(--col-text); }
.faq-answer.open { display: block; }
