@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-dark: #152a44;
  --text: #1a2d42;
  --text-muted: #5a7088;
  --mint: #2d8f85;
  --mint-dark: #237870;
  --rust: #c45c4a;
  --rust-dark: #a84a3a;
  --ice: #dce8f2;
  --gold: #c9a227;
  --border: #cdd9e5;
  --font: 'Work Sans', system-ui, sans-serif;
  --display: 'DM Serif Display', Georgia, serif;
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.55;
  background: linear-gradient(160deg, rgba(220,232,242,0.7) 0%, transparent 55%),
              linear-gradient(340deg, rgba(45,143,133,0.05) 0%, transparent 50%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; position: relative; }

.site-header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--nav-h);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-size: 1.35rem; color: var(--bg-dark); letter-spacing: -0.01em; }
.logo strong { color: var(--mint); font-weight: 400; }
.main-nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--mint); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.cart-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--mint); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer;
}
.cart-btn:hover { background: var(--mint-dark); }
.cart-count {
  background: var(--rust); color: #fff; min-width: 20px; height: 20px; border-radius: 999px;
  font-size: 11px; display: none; align-items: center; justify-content: center; font-weight: 700;
}
.cart-count.show { display: flex; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--text-muted);
}

.btn {
  display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--mint-dark); }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); }
.btn-outline { background: transparent; border: 2px solid var(--mint); color: var(--mint); }

.hero-clinica {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px 0; min-height: 420px;
}
.hero-clinica-text .etiq {
  display: inline-block; background: var(--ice); color: var(--mint-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px; margin-bottom: 14px;
}
.hero-clinica-text h1 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12; margin: 0 0 14px; color: var(--bg-dark);
}
.hero-clinica-text p { color: var(--text-muted); font-size: 16px; max-width: 440px; margin: 0 0 26px; }
.hero-clinica-img img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 20px 40px rgba(21,42,68,0.12);
}

.info-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 44px;
}
.info-band div {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; text-align: center;
}
.info-band strong { font-family: var(--display); font-size: 1.4rem; color: var(--rust); display: block; }
.info-band span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.section-title { font-family: var(--display); font-size: 1.75rem; margin: 0 0 24px; color: var(--bg-dark); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 48px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(21,42,68,0.08); }
.product-card .tag {
  position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--bg-dark); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 4px; text-transform: uppercase;
}
.product-card .img-wrap { position: relative; }
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-card-body { padding: 14px 15px 16px; }
.product-card h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.product-card .price { font-size: 15px; color: var(--mint); font-weight: 700; margin-bottom: 10px; }
.product-card .btns { display: flex; gap: 6px; }
.product-card .btn { flex: 1; padding: 7px 6px; font-size: 11px; text-align: center; }
.shop-grid .product-card.hidden { display: none; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.chip {
  padding: 7px 15px; border: 1px solid var(--border); background: var(--bg-card);
  font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; color: var(--text-muted);
}
.chip.active, .chip:hover { background: var(--mint); border-color: var(--mint); color: #fff; }

.page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.page-head .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 8px; }
.page-head .lead { color: var(--text-muted); margin: 0; font-size: 15px; }

.article-layout { display: grid; grid-template-columns: 1fr 270px; gap: 32px; padding-bottom: 64px; }
.article-content img.hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.article-content p { color: var(--text-muted); font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
.article-content h2 { font-family: var(--display); font-size: 1.15rem; margin: 24px 0 8px; color: var(--bg-dark); }

.purchase-box {
  background: var(--bg-dark); color: #fff; padding: 20px; border-radius: 10px;
  position: sticky; top: calc(var(--nav-h) + 12px); border-left: 4px solid var(--mint);
}
.purchase-box img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.purchase-box h3 { font-size: 1rem; margin: 0 0 8px; }
.purchase-box .price { font-family: var(--display); font-size: 1.4rem; color: var(--gold); margin-bottom: 4px; }
.purchase-box .note { font-size: 11px; opacity: 0.75; margin-bottom: 12px; }
.purchase-box .btn { width: 100%; margin-bottom: 8px; }
.purchase-box .added { font-size: 11px; color: var(--gold); display: none; text-align: center; margin-top: 6px; }
.purchase-box .added.show { display: block; }

.cart-page { padding: 36px 0 64px; }
.cart-empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--border); border-radius: 10px; background: var(--bg-card); }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr 108px 72px 48px; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-row h4 { font-size: 13px; margin: 0 0 4px; font-weight: 600; }
.cart-row a { font-size: 11px; color: var(--mint); font-weight: 600; }
.qty-ctrl { display: flex; gap: 4px; align-items: center; }
.qty-ctrl button { width: 26px; height: 26px; border: 1px solid var(--border); background: var(--bg); border-radius: 4px; cursor: pointer; font-weight: 700; }
.qty-ctrl span { min-width: 16px; text-align: center; font-weight: 600; font-size: 13px; }
.cart-summary { max-width: 320px; margin-left: auto; margin-top: 22px; background: var(--mint); color: #fff; padding: 20px; border-radius: 10px; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.cart-summary .total { font-family: var(--display); font-size: 1.2rem; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 8px; margin-top: 8px; }
.cart-summary .btn { width: 100%; margin-top: 12px; background: var(--rust); color: #fff; }
.cart-remove { background: none; border: none; color: var(--rust); font-size: 11px; cursor: pointer; text-decoration: underline; }

.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; padding: 14px 16px; background: none; border: none; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 16px 12px; color: var(--text-muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0 64px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); margin-bottom: 10px; }
.contact-form textarea { min-height: 110px; resize: vertical; }

.modal-overlay { position: fixed; inset: 0; background: rgba(21,42,68,0.55); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 64px 20px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--bg-card); border-radius: 10px; padding: 24px; width: min(440px,100%); position: relative; }
.modal-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 22px; cursor: pointer; }
.search-input { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; font-family: var(--font); }
.search-results a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

#cookieBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000; background: var(--bg-dark); color: #fff; padding: 14px 20px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13px; flex: 1; }
.cookie-inner a { color: var(--gold); }
.cookie-btns button { padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; border-radius: 6px; margin-left: 8px; }
#cookieAccept { background: var(--rust); color: #fff; }
#cookieDecline { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; }

#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 2500; }
.toast { background: var(--bg-dark); color: #fff; padding: 12px 18px; font-size: 13px; border-radius: 8px; margin-top: 8px; }

.site-footer { background: var(--bg-dark); color: #9eb0c0; padding: 40px 0 20px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.footer-col h4 { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { font-size: 13px; color: #9eb0c0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; font-size: 12px; }

@media (max-width: 992px) {
  .hero-clinica, .article-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .info-band { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 56px 1fr; gap: 8px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .product-grid, .info-band { grid-template-columns: 1fr; }
}
