/* QueridoBebe.es — CSS Mobile-First v2 */

/* ─── VARIABLES ─────────────────────────────── */
:root {
  --mint:        #1D9E6B;
  --mint-light:  #E8F7F1;
  --mint-mid:    #78CEAD;
  --mint-dark:   #0F6644;
  --mint-deep:   #062B1C;
  --green-light: #EAF3DE;
  --purple-light:#EEEDFE;
  --blue-light:  #E6F1FB;
  --teal-light:  #E1F5EE;
  --amber-light: #FAEEDA;
  --pink-light:  #FBEAF0;
  --text:        #1a1a1a;
  --text-mid:    #1A4D35;
  --text-muted:  #4A7A62;
  --bg:          #ffffff;
  --bg-soft:     #f7f9f7;
  --border:      rgba(0,0,0,0.08);
  --border-mid:  rgba(0,0,0,0.13);
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-pill: 100px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 3px 14px rgba(0,0,0,0.08);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h: 54px;
}
@media (min-width: 768px) { :root { --nav-h: 58px; } }

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ─── NAV ──────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 10px;
}
.nav-logo {
  font-size: 17px; font-weight: 800;
  color: var(--mint-deep); letter-spacing: -0.3px; flex-shrink: 0;
}
.nav-logo span { color: var(--mint); }
.nav-links { display: none; }
/* CTA siempre visible en móvil — pequeño */
.nav-cta {
  display: block;
  background: var(--mint); color: #fff;
  border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 13px; font-weight: 700;
  flex-shrink: 0; transition: background 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--mint-dark); }
.nav-burger {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px; margin-right: -6px; flex-shrink: 0;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text-mid); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav { padding: 0 28px; }
  .nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--text-mid); }
  .nav-links a:hover { color: var(--mint); }
  .nav-cta { padding: 8px 20px; font-size: 14px; }
  .nav-burger { display: none; }
}

/* Menú móvil */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; overflow-y: auto; padding: 4px 0 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 15px 24px; font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.mobile-menu a:hover { color: var(--mint); background: var(--mint-light); }
.mobile-menu a:last-child { border-bottom: none; }

/* ─── HERO ──────────────────────────────────── */
.hero {
  background: var(--mint-light);
  padding: 36px 20px 32px; text-align: center;
  position: relative; overflow: hidden;
}
/* Decoración sutil de fondo */
.hero::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(29,158,107,0.06);
  top: -80px; right: -60px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(29,158,107,0.05);
  bottom: -60px; left: -40px; pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--mint-mid);
  border-radius: var(--r-pill); padding: 4px 14px;
  font-size: 12px; font-weight: 600; color: var(--mint-dark);
  margin-bottom: 16px; position: relative;
}
.hero h1 {
  font-size: 23px; font-weight: 800; color: var(--mint-deep);
  line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 12px;
  max-width: 540px; margin-left: auto; margin-right: auto; position: relative;
}
.hero p {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.65; margin-bottom: 24px;
  max-width: 440px; margin-left: auto; margin-right: auto; position: relative;
}
.hero-btns {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; max-width: 300px; margin: 0 auto; position: relative;
}
.btn-primary {
  background: var(--mint); color: #fff;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; text-align: center; display: block;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--mint-dark); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--mint); border: 1.5px solid var(--mint);
  padding: 11px 24px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; text-align: center; display: block;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--mint-light); }
@media (min-width: 480px) {
  .hero-btns { flex-direction: row; justify-content: center; max-width: none; }
  .btn-primary, .btn-secondary { display: inline-block; }
}
@media (min-width: 768px) {
  .hero { padding: 52px 32px 44px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 38px; } }

/* ─── STATS BAR ─────────────────────────────── */
.stats-bar {
  background: var(--mint);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
}
.stat { background: var(--mint); padding: 12px 8px; text-align: center; color: #fff; }
.stat-num { font-size: 18px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 10px; opacity: 0.8; margin-top: 2px; }
@media (min-width: 600px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11px; }
}

/* ─── FILTER BAR ─────────────────────────────── */
.filter-section {
  position: sticky; top: var(--nav-h); z-index: 90;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.filter-row {
  display: flex; align-items: center; gap: 7px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; flex-wrap: nowrap;
  padding: 9px 16px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.filter-divider { width: 1px; height: 18px; background: var(--border-mid); flex-shrink: 0; margin: 0 2px; }
.chip {
  border: 1px solid var(--border-mid); border-radius: var(--r-pill);
  padding: 5px 13px; font-size: 12px; font-weight: 500;
  color: var(--text-mid); background: var(--bg);
  white-space: nowrap; flex-shrink: 0; transition: all 0.15s; cursor: pointer;
}
.chip:hover { border-color: var(--mint-mid); color: var(--mint); }
.chip.active { background: var(--mint); color: #fff; border-color: var(--mint); }
@media (min-width: 768px) {
  .filter-row { padding: 11px 28px; gap: 8px; }
  .filter-label { font-size: 12px; }
  .chip { padding: 6px 15px; font-size: 13px; }
}

/* ─── SECCIONES ──────────────────────────────── */
.section { padding: 28px 16px; }
.section-alt { background: var(--bg-soft); }
@media (min-width: 768px) { .section { padding: 40px 28px; } }
@media (min-width: 1024px) { .section { padding: 48px 36px; } }

.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--mint-light); color: var(--mint-dark);
  border-radius: var(--r-pill); padding: 3px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.section-title { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; line-height: 1.2; }
.section-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.section-link { font-size: 13px; color: var(--mint); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.section-link:hover { text-decoration: underline; }
@media (min-width: 768px) { .section-title { font-size: 19px; } }
@media (min-width: 1024px) { .section-title { font-size: 21px; } }

/* ─── GRID DE PRODUCTOS ───────────────────────── */
#products-grid, .products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.no-results { grid-column: 1/-1; text-align: center; padding: 40px 16px; color: var(--text-muted); font-size: 14px; }
@media (min-width: 540px) { #products-grid, .products-grid { gap: 14px; } }
@media (min-width: 640px) {
  #products-grid, .products-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  #products-grid, .products-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
}

/* ─── TARJETA ────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-img {
  height: 108px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.card-emoji { font-size: 38px; line-height: 1; user-select: none; }
.card-product-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-badge {
  position: absolute; top: 7px; left: 7px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.95); color: var(--mint-dark);
  border: 1px solid var(--mint-mid); padding: 2px 8px;
  border-radius: var(--r-pill); white-space: nowrap; line-height: 1.5;
}
@media (min-width: 520px) { .card-img { height: 126px; } .card-emoji { font-size: 46px; } }
@media (min-width: 640px) { .card-img { height: 144px; } .card-emoji { font-size: 52px; } }

.card-body { padding: 10px 12px 13px; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--mint); margin-bottom: 4px; }
.card-name { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.card-desc { font-size: 11px; color: var(--text-mid); line-height: 1.45; flex: 1; margin-bottom: 8px; display: none; }
.card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: #f59e0b; font-size: 11px; letter-spacing: 0.5px; }
.rating-count { font-size: 10px; color: var(--text-muted); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.card-price { font-size: 14px; font-weight: 800; color: var(--text); }
.card-price-sub { display: none; }
.card-btn {
  background: var(--mint); color: #fff; border-radius: var(--r-pill);
  padding: 6px 11px; font-size: 11px; font-weight: 700;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
  min-height: 30px; display: flex; align-items: center;
}
.card-btn:hover { background: var(--mint-dark); }

@media (min-width: 480px) {
  .card-body { padding: 11px 13px 14px; }
  .card-name { font-size: 13px; }
  .card-desc { display: block; }
  .card-price-sub { display: inline; font-size: 10px; color: var(--text-muted); font-weight: 400; }
  .card-btn { padding: 7px 13px; font-size: 12px; }
}
@media (min-width: 640px) {
  .card-body { padding: 12px 14px 15px; }
  .card-name { font-size: 14px; }
  .card-desc { font-size: 12px; }
  .card-price { font-size: 15px; }
  .card-btn { font-size: 13px; padding: 7px 15px; }
  .card-tag { font-size: 11px; }
}

/* ─── QUIZ ───────────────────────────────────── */
.quiz-block {
  background: var(--mint-light); border: 1px solid var(--mint-mid);
  border-radius: var(--r-xl); padding: 26px 20px; text-align: center;
  margin: 0 16px 28px;
}
.quiz-block h2 { font-size: 16px; font-weight: 800; color: var(--mint-deep); margin-bottom: 6px; }
.quiz-block p { font-size: 13px; color: var(--text-mid); margin-bottom: 18px; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  background: #fff; color: var(--mint-dark); border: 1.5px solid var(--mint-mid);
  border-radius: var(--r-md); padding: 10px 16px;
  font-size: 13px; font-weight: 600; transition: all 0.15s; text-align: center; min-height: 42px;
}
.quiz-opt:hover { background: var(--mint-light); border-color: var(--mint); color: var(--mint-dark); }
@media (min-width: 500px) { .quiz-opts { flex-direction: row; flex-wrap: wrap; justify-content: center; } .quiz-opt { flex: 0 1 auto; } }
@media (min-width: 768px) { .quiz-block { margin: 0 28px 36px; padding: 32px 28px; } .quiz-block h2 { font-size: 18px; } }
@media (min-width: 1024px) { .quiz-block { margin: 0 36px 44px; } }

/* ─── TARJETAS DE PRECIO ─────────────────────── */
.price-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 10px; text-align: center;
  cursor: pointer; transition: all 0.15s;
}
.price-card:hover { border-color: var(--mint); background: var(--mint-light); }
.price-card-emoji { font-size: 22px; margin-bottom: 6px; }
.price-card-range { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.price-card-desc { font-size: 11px; color: var(--text-muted); }
@media (min-width: 640px) {
  .price-card { padding: 20px 16px; }
  .price-card-emoji { font-size: 28px; }
  .price-card-range { font-size: 15px; }
  .price-card-desc { font-size: 12px; }
}

/* ─── GUÍAS ──────────────────────────────────── */
.guides-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 460px) { .guides-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 900px) { .guides-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.guide-card {
  border-radius: var(--r-lg); padding: 18px 16px; display: block;
  border-width: 1px; border-style: solid; transition: transform 0.15s, box-shadow 0.15s;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card-emoji { font-size: 22px; margin-bottom: 8px; }
.guide-card-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.guide-card-sub { font-size: 12px; opacity: 0.8; }
@media (min-width: 640px) {
  .guide-card { padding: 20px 18px; }
  .guide-card-emoji { font-size: 26px; }
  .guide-card-title { font-size: 14px; }
  .guide-card-sub { font-size: 12px; }
}

/* ─── FAQ ────────────────────────────────────── */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none;
  padding: 15px 0; font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px;
}
.faq-question:hover { color: var(--mint); }
.faq-icon { font-size: 18px; color: var(--mint); flex-shrink: 0; transition: transform 0.2s; }
.faq-answer { display: none; padding-bottom: 14px; font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
@media (min-width: 768px) {
  .faq-question { padding: 18px 0; font-size: 15px; }
  .faq-answer { font-size: 15px; }
}

/* ─── AVISO AFILIADOS ────────────────────────── */
.disclosure {
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 10px 16px; text-align: center;
  font-size: 11px; color: var(--text-muted); line-height: 1.5;
}
@media (min-width: 768px) { .disclosure { padding: 10px 32px; } }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: var(--mint-deep); color: rgba(255,255,255,0.75); padding: 32px 16px 22px; }
.footer-logo { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 7px; }
.footer-logo span { color: var(--mint-mid); }
.footer-desc { font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 11px; color: rgba(255,255,255,0.4); display: flex; flex-direction: column; gap: 3px; }
@media (min-width: 640px) {
  .footer { padding: 40px 28px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) {
  .footer { padding: 48px 36px 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-desc { margin-bottom: 0; }
}

/* ─── PÁGINAS SEO ────────────────────────────── */
.page-hero { background: var(--mint-light); border-bottom: 1px solid var(--mint-mid); padding: 28px 16px 24px; }
.page-hero h1 { font-size: 20px; font-weight: 800; color: var(--mint-deep); line-height: 1.2; letter-spacing: -0.2px; margin-bottom: 8px; }
.page-hero p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.breadcrumb { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--mint); }
@media (min-width: 640px) { .page-hero { padding: 36px 28px 30px; } .page-hero h1 { font-size: 26px; } .page-hero p { font-size: 15px; } }
@media (min-width: 900px) { .page-hero { padding: 44px 36px 36px; } .page-hero h1 { font-size: 30px; } }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) { .article-layout { grid-template-columns: 1fr 260px; } }
.article-body { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.article-body h2 { font-size: 17px; font-weight: 800; color: var(--text); margin: 26px 0 10px; }
.article-body h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 7px; }
.article-body p { margin-bottom: 12px; }
.article-body ul { padding-left: 18px; margin-bottom: 12px; list-style: disc; }
.article-body li { margin-bottom: 4px; }
.article-body strong { color: var(--text); font-weight: 700; }
@media (min-width: 768px) { .article-body { font-size: 15px; } .article-body h2 { font-size: 19px; } }

.article-sidebar { background: var(--mint-light); border: 1px solid var(--mint-mid); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 900px) { .article-sidebar { position: sticky; top: calc(var(--nav-h) + 58px); } }

.tip-box {
  background: var(--mint-light); border-left: 3px solid var(--mint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 14px; margin: 14px 0; font-size: 13px; line-height: 1.6;
}
