/* ============================================================
   BEBELY DESIGN SYSTEM · bebely.mx · WordPress Compatible v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Carlito:ital,wght@0,400;0,700&display=swap');

/* ---- Variables ---- */
:root {
  --turquesa: #00A896;
  --turquesa-dark: #008a7a;
  --coral: #E8600A;
  --coral-dark: #c95209;
  --noche: #0D3D35;
  --beige: #F5F0E8;
  --grafito: #2D2D2D;
  --white: #FFFFFF;
  --footer-bg: #0A2E28;
  --border: #EDEBE8;
  --text-soft: #6B6B6B;

  --sueno: #3D5A8A;
  --nutricion: #2EAA72;
  --bebe-color: #C8860A;
  --tu-color: #B06AB3;

  --font-serif: 'PT Serif', Georgia, serif;
  --font-sans: 'Carlito', 'Calibri', Arial, sans-serif;

  --nav-height: 56px;
  --space-section: 52px;
  --space-title: 24px;
  --card-gap: 14px;
  --card-radius: 14px;
  --pill-radius: 20px;
  --container-max: 1180px;
  --container-pad: 24px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--grafito); background: var(--white); line-height: 1.75; font-size: 15px; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---- Layout ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
section { padding: var(--space-section) 0; }

/* ---- Typography ---- */
h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 400; color: var(--noche); }
h2 { font-family: var(--font-serif); font-size: clamp(20px, 2.5vw, 26px); line-height: 1.2; font-weight: 400; color: var(--noche); }
h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--noche); line-height: 1.4; }
p { font-size: 14px; color: var(--grafito); line-height: 1.75; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-title); }
.section-title { font-family: var(--font-serif); font-size: clamp(20px, 2.5vw, 26px); font-weight: 400; color: var(--noche); }
.ver-todo { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--turquesa); transition: color 0.2s; }
.ver-todo:hover { color: var(--turquesa-dark); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--noche); height: auto; padding: 12px 0; }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { 
  display: inline-flex; 
  align-items: center; 
  padding: 0; 
  margin: 0;
  flex-shrink: 0;
}
.logo svg { 
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-start; margin-left: 2rem; }
.nav-links a { padding: 8px 13px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.search-form { display: flex; align-items: center; gap: 0; background: rgba(255,255,255,0.1); border-radius: 50px; padding: 6px 14px; }
.search-input { background: transparent; border: none; color: rgba(255,255,255,0.9); font-size: 13px; width: 140px; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.6); }
.btn-search { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); transition: all 0.2s; background: transparent; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.btn-search:hover { color: var(--white); }
.btn-tienda { padding: 10px 22px; background: var(--coral); color: var(--white); border-radius: var(--pill-radius); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: background 0.2s; display: inline-flex; align-items: center; white-space: nowrap; }
.btn-tienda:hover { background: var(--coral-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--beige); padding: 4rem 0 5rem; }
.hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 5rem; align-items: center; }
.hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--turquesa); font-weight: 700; margin-bottom: 1rem; }
.hero h1 { margin: 0 0 1.5rem 0; line-height: 1.15; }
.hero-sub { font-size: 15px; color: var(--grafito); line-height: 1.75; margin: 0 0 2.5rem 0; }
.hero-search { display: flex; gap: 0; background: white; border: 1.5px solid #ddd; border-radius: 50px; overflow: hidden; max-width: 440px; margin-bottom: 1.5rem; }
.hero-search input { flex: 1; padding: 12px 20px; border: none; outline: none; font-size: 14px; background: transparent; }
.hero-search button { background: var(--turquesa); color: white; border: none; padding: 12px 22px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s; text-transform: uppercase; }
.hero-search button:hover { background: var(--turquesa-dark); }
.hero-hint { font-size: 12px; color: #999; }

.hero-visual { display: flex; align-items: center; justify-content: flex-end; }
.hero-image { width: 100%; max-width: 540px; height: auto; border-radius: 20px; object-fit: cover; }

/* ============================================================
   PILLS ROW
   ============================================================ */
.pills-row { display: none; padding: 1.5rem 0; background: var(--beige); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pills-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill-label { font-size: 12px; color: var(--text-soft); font-weight: 700; margin-right: 4px; }
.pill-tag { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.15s; background: rgba(0,168,150,0.1); color: var(--turquesa); }
.pill-tag:hover { transform: translateY(-1px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { background: var(--white); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { 
  border-radius: 12px; 
  padding: 24px; 
  cursor: pointer; 
  transition: all 0.25s ease; 
  display: flex; 
  flex-direction: column; 
  background: white; 
  text-decoration: none; 
  color: inherit; 
  border: 1px solid #f0f0f0;
  border-top: 4px solid var(--turquesa);
  min-height: 280px;
}
.cat-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.cat-icon { 
  font-size: 44px; 
  line-height: 1; 
  margin-bottom: 16px; 
  display: block;
}
.cat-card h3 { 
  font-family: var(--font-sans); 
  font-size: 16px; 
  font-weight: 700; 
  margin: 0 0 12px 0; 
  line-height: 1.3;
}
.cat-card p { 
  font-size: 14px; 
  color: var(--text-soft); 
  line-height: 1.6; 
  margin: 0 0 auto 0; 
  flex-grow: 1;
}
.cat-count { 
  font-size: 12px; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  margin-top: 16px; 
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto; gap: 20px; }
.art-card { border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; display: flex; flex-direction: column; background: white; text-decoration: none; color: inherit; }
.art-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.art-card-featured { grid-column: 1 / 2; grid-row: 1 / 2; flex-direction: column; }
.art-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: var(--beige); background-size: cover; background-position: center; }
.art-card-featured .art-img { width: 100%; height: 180px; flex-shrink: 0; }
.art-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.art-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.art-pill { font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; background: rgba(0,168,150,0.1); color: var(--turquesa); }
.art-time { font-size: 11px; color: var(--text-soft); font-weight: 600; }
.art-body h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 400; color: var(--noche); line-height: 1.4; margin: 0; }
.art-card-featured .art-body h3 { font-size: 15px; }
.art-body p { font-size: 13px; color: var(--text-soft); line-height: 1.6; flex: 1; margin: 0; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.art-tag { font-size: 12px; color: var(--text-soft); background: #f5f5f5; padding: 5px 10px; border-radius: 14px; white-space: nowrap; }
.art-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 12px; }
.art-read { color: var(--turquesa); font-weight: 700; }

/* ============================================================
   PRODUCTS/TIENDA
   ============================================================ */
.store-section { background: linear-gradient(135deg, #FFF5F0 0%, #FEF0E8 100%); padding: 4rem 0; }
.section-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 3rem; }
.prod-card { background: white; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #f0f0f0; transition: all 0.25s ease; }
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.prod-img { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 1.5rem 1rem; background: linear-gradient(135deg, #f5f0e8, #e8f5f3); position: relative; }
.prod-emoji { font-size: 48px; }
.prod-badge { position: absolute; top: 10px; right: 10px; background: var(--coral); color: white; font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.prod-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.prod-body h3 { font-size: 14px; font-weight: 700; color: var(--noche); line-height: 1.3; margin: 0; }
.prod-body p { font-size: 13px; color: var(--text-soft); line-height: 1.6; flex: 1; margin: 0; }
.prod-foot { padding: 0 1.5rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod-price { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--coral); }
.btn-buy { background: var(--coral); color: white; border: none; padding: 10px 20px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.btn-buy:hover { background: var(--coral-dark); transform: scale(1.05); }

/* Store Banner */
.store-banner { background: linear-gradient(135deg, #0D3D35 0%, #1a4f47 100%); border-radius: 12px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.store-banner-content h2 { font-family: var(--font-serif); font-size: 1.8rem; color: white; margin: 0 0 12px 0; line-height: 1.3; }
.store-banner-content p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; margin: 0; }
.btn-banner { background: var(--coral); color: white; padding: 12px 28px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; white-space: nowrap; display: inline-block; text-decoration: none; }
.btn-banner:hover { background: var(--coral-dark); transform: translateY(-2px); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: #1a5a54; padding: 4rem 0; }
.nl-inner { max-width: 560px; margin: 0 auto; text-align: center; padding: 0 var(--container-pad); }
.nl-inner h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; color: white; margin-bottom: 12px; }
.nl-inner p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.nl-form { display: flex; gap: 0; max-width: 400px; margin: 0 auto; background: white; border: 1.5px solid #ddd; border-radius: 50px; overflow: hidden; }
.nl-form input { flex: 1; padding: 12px 18px; border: none; outline: none; font-size: 14px; background: transparent; }
.nl-form button { background: var(--turquesa); color: white; border: none; padding: 12px 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s; text-transform: uppercase; }
.nl-form button:hover { background: var(--turquesa-dark); }
.nl-disc { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--noche); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: white; margin-bottom: 8px; }
.footer-logo { width: 120px; height: 120px; margin-bottom: 8px; }
.footer-logo svg { width: 100%; height: 100%; }
.footer-brand-desc { font-size: 13px; line-height: 1.65; margin-bottom: 12px; color: rgba(255,255,255,0.85); max-width: 200px; word-wrap: break-word; }
.footer-social { display: flex; gap: 16px; margin-top: 1rem; }
.social-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.15); border-radius: 50%; transition: all 0.2s; cursor: pointer; border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.social-icon img { width: 24px; height: 24px; object-fit: contain; }
.social-icon svg { width: 22px; height: 22px; }
.social-icon:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); transform: scale(1.1); }
.footer-col h4 { font-size: 12px; font-weight: 700; color: white; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; transition: color 0.2s; }
.footer-legal a:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-section: 36px; --space-title: 18px; --container-pad: 16px; }
  .nav-links { display: none; }
  .btn-tienda { display: none; }
  .hero { padding: 40px 0 36px; }
  .articles-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .nl-form { flex-direction: column; }
}

/* ============================================================
   PAGES
   ============================================================ */
.page-hero { background: var(--beige); padding: 3rem 0; }
.page-header { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.page-header h1 { margin: 0; }

.page-content { padding: var(--space-section) 0; }
.page-body { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.page-body h1, .page-body h2, .page-body h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--noche); }
.page-body p { margin-bottom: 1rem; line-height: 1.8; color: var(--grafito); }
.page-body ul, .page-body ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-featured-image { margin: 2rem 0; border-radius: var(--card-radius); overflow: hidden; }
.page-featured-image img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  .page-hero { padding: 2rem 0; }
  .page-body h1, .page-body h2, .page-body h3 { margin-top: 1.5rem; }
}
