/* =========================================================
   Limpavio — hoja de estilos principal
   Fuentes autoalojadas (sin CDN externo), rutas relativas
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

:root{
  --green:#2F9E44;
  --green-dark:#1F7A37;
  --green-pale:#EAF7ED;
  --border:#DCEDE1;
  --border-2:#EFF5F1;
  --bg:#FBFDFB;
  --ink:#1B2420;
  --ink-2:#12201A;
  --text:#3E4A44;
  --muted:#5B6B63;
  --muted-2:#93A69B;
  --muted-3:#7D9188;
  --footer-border:#253A2E;
  --footer-text:#C9D8CD;
  --gold:#E8A33D;
  --red:#B0413E;
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  --radius-xl:20px;
  --shadow-drawer:-8px 0 30px rgba(0,0,0,.12);
  --max:1200px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',-apple-system,'Segoe UI',Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--green); text-decoration:none; }
a:hover{ color:var(--green-dark); text-decoration:underline; }
button{ font-family:inherit; }
input,textarea,select{ font-family:'Inter',sans-serif; }
h1,h2,h3,h4,h5{ font-family:'Poppins',-apple-system,'Segoe UI',Arial,sans-serif; margin:0; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.container{ max-width:var(--max); margin:0 auto; padding:0 24px; }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }
.fade-up{ animation:fadeUp .6s ease; }

/* Skip link for a11y */
.skip-link{
  position:absolute; left:-999px; top:0; background:#fff; color:var(--ink);
  padding:10px 16px; border-radius:0 0 8px 0; z-index:200;
}
.skip-link:focus{ left:0; }

/* ===== Layout shell ===== */
.page{ min-height:100vh; display:flex; flex-direction:column; }
main{ flex:1; width:100%; }

/* ===== Header ===== */
.site-header{ position:sticky; top:0; z-index:60; background:#fff; border-bottom:1px solid var(--border); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:14px 24px; }
.brand{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.brand-mark{
  width:38px; height:38px; border-radius:50%; background:var(--green); color:#fff;
  font-family:'Poppins',sans-serif; font-weight:700; font-size:18px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-name{ font-family:'Poppins',sans-serif; font-weight:700; font-size:20px; color:var(--ink); line-height:1; }
.brand-sub{ font-size:10px; letter-spacing:1.5px; color:var(--muted); }

.nav-toggle{
  display:none; background:none; border:1px solid var(--border); border-radius:8px;
  width:40px; height:40px; cursor:pointer; align-items:center; justify-content:center; color:var(--ink);
}
.main-nav{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.nav-link{
  background:none; border:none; cursor:pointer; font-size:14.5px; padding:8px 10px;
  border-radius:8px; color:var(--ink); font-weight:500; font-family:'Inter',sans-serif;
}
.nav-link:hover{ background:var(--green-pale); text-decoration:none; }
.nav-link.active{ color:var(--green); font-weight:700; }

.cart-btn{
  position:relative; background:var(--green-pale); border:1px solid var(--border); border-radius:10px;
  padding:10px 16px; cursor:pointer; font-weight:600; font-size:14px; color:var(--green-dark);
  display:flex; align-items:center; gap:8px;
}
.cart-count{
  background:var(--green); color:#fff; border-radius:50%; min-width:20px; height:20px; font-size:12px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}
.cart-count[hidden]{ display:none; }

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .main-nav{
    display:none; width:100%; order:3; flex-direction:column; align-items:stretch;
    border-top:1px solid var(--border); padding-top:10px; margin-top:8px;
  }
  .main-nav.open{ display:flex; }
  .nav-link{ text-align:left; padding:12px 10px; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:10px; font-weight:700; font-size:15px; cursor:pointer;
  font-family:'Inter',sans-serif; border:none; padding:14px 26px; text-decoration:none;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background:var(--green); color:#fff; }
.btn-primary:hover{ background:var(--green-dark); color:#fff; }
.btn-outline{ background:#fff; color:var(--green-dark); border:1px solid var(--green); }
.btn-outline:hover{ background:var(--green-pale); color:var(--green-dark); }
.btn-dark{ background:var(--ink-2); color:#fff; }
.btn-dark:hover{ background:#0a140f; color:#fff; }
.btn-white{ background:#fff; color:var(--ink-2); }
.btn-white:hover{ background:#eef4f0; color:var(--ink-2); }
.btn-block{ width:100%; }
.btn-sm{ padding:11px; font-size:13.5px; border-radius:9px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ===== Hero ===== */
.hero{ background:linear-gradient(180deg,var(--green-pale) 0%,var(--bg) 100%); padding:64px 24px 56px; }
.hero-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:40px; align-items:center; max-width:var(--max); margin:0 auto; }
.eyebrow{
  display:inline-block; background:#fff; border:1px solid var(--border); color:var(--green-dark);
  font-size:13px; font-weight:600; padding:6px 14px; border-radius:20px; margin-bottom:18px;
}
.hero h1{ font-weight:800; font-size:44px; line-height:1.1; margin:0 0 18px; color:var(--ink-2); }
.hero p.lead{ font-size:17px; line-height:1.6; color:var(--text); margin:0 0 28px; max-width:480px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.media{ width:100%; border-radius:20px; object-fit:cover; display:block; background:var(--border); }
.media.h-340{ height:340px; }
.media.h-260{ height:260px; }
.media.h-220{ height:220px; }
.media.h-180{ height:180px; }
.media.h-150{ height:150px; border-radius:0; }
.media.round-18{ border-radius:18px; }
.media.round-14{ border-radius:14px; }

/* ===== Trust bar ===== */
.trust-bar{ background:#fff; border-bottom:1px solid var(--border); padding:22px 24px; }
.trust-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; text-align:center; max-width:var(--max); margin:0 auto; }
.trust-item{ font-size:14px; color:var(--text); font-weight:600; }

/* ===== Section headings ===== */
.section{ padding:64px 24px; }
.section-head{ text-align:center; margin:0 0 40px; }
.section h2{ font-weight:700; font-size:28px; margin:0 0 8px; }
.section-sub{ text-align:center; color:var(--muted); margin:0 0 40px; font-size:15px; }

/* ===== Category cards ===== */
.grid-4{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:24px; }
.cat-card{ border:1px solid var(--border); border-radius:16px; overflow:hidden; background:#fff; }
.cat-card .body{ padding:18px; }
.cat-card h3{ font-size:17px; margin:0 0 6px; color:var(--ink-2); }
.cat-card p{ font-size:13.5px; color:var(--muted); margin:0 0 14px; line-height:1.5; }
.link-arrow{ background:none; border:none; color:var(--green); font-weight:700; font-size:14px; cursor:pointer; padding:0; font-family:'Inter',sans-serif; }
.link-arrow:hover{ text-decoration:underline; }

/* ===== Product grid & card ===== */
.product-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.product-card{ border:1px solid var(--border); border-radius:14px; background:#fff; overflow:hidden; display:flex; flex-direction:column; height:100%; }
.product-media{ position:relative; }
.product-badge{ position:absolute; top:10px; left:10px; color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:20px; }
.product-body{ padding:16px; display:flex; flex-direction:column; flex:1; }
.product-body h4{ font-size:14.5px; margin:0 0 6px; color:var(--ink-2); line-height:1.3; }
.product-body .desc{ font-size:12.5px; color:var(--muted); line-height:1.5; margin:0 0 10px; flex:1; }
.product-price-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.product-price{ font-family:'Poppins',sans-serif; font-weight:700; font-size:17px; color:var(--green-dark); }
.product-unit{ font-size:11.5px; color:var(--muted-2); }
.qty-stepper{ display:flex; align-items:center; justify-content:center; gap:14px; background:var(--green-pale); border-radius:10px; padding:8px; }
.qty-stepper button{ width:26px; height:26px; border-radius:7px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:14px; }
.qty-stepper span{ font-size:14px; font-weight:700; min-width:16px; text-align:center; }

/* ===== Value props ===== */
.grid-values{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:24px; }
.value-item{ text-align:center; padding:0 12px; }
.value-dot{ width:52px; height:52px; border-radius:50%; background:var(--green); margin:0 auto 16px; }
.value-item h4{ font-size:16px; margin:0 0 8px; }
.value-item p{ font-size:13.5px; color:var(--muted); line-height:1.5; }

/* ===== Testimonials ===== */
.grid-testi{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.testi-card{ background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:24px; }
.stars{ color:var(--gold); font-size:15px; margin-bottom:10px; }
.testi-card p{ font-size:14.5px; line-height:1.6; color:var(--text); margin:0 0 14px; }
.testi-name{ font-weight:700; font-size:13.5px; }
.testi-city{ color:var(--muted); font-weight:500; }

/* ===== Tips teaser / list ===== */
.grid-tips{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.tip-teaser{ cursor:pointer; border:1px solid var(--border); border-radius:14px; padding:22px; background:#fff; }
.tip-teaser h4{ font-size:15.5px; margin:0 0 8px; color:var(--ink-2); }
.tip-teaser p{ font-size:13.5px; color:var(--muted); line-height:1.5; }

.tips-list{ display:flex; flex-direction:column; gap:16px; }
.tip-article{ border:1px solid var(--border); border-radius:14px; padding:24px; background:#fff; }
.tip-article h3{ font-size:18px; margin:0 0 10px; color:var(--ink-2); }
.tip-article p{ font-size:14.5px; line-height:1.65; color:var(--text); }
.tip-toggle{ background:none; border:none; color:var(--green); font-weight:700; font-size:13.5px; cursor:pointer; padding:10px 0 0; font-family:'Inter',sans-serif; }

/* ===== Newsletter ===== */
.newsletter{ background:var(--green-pale); padding:44px 24px; }
.newsletter-inner{ max-width:760px; margin:0 auto; text-align:center; }
.newsletter h3{ font-size:22px; margin:0 0 10px; }
.newsletter p{ color:var(--text); font-size:14px; margin:0 0 20px; }
.newsletter-form{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.newsletter-form input[type=email]{ padding:13px 16px; border-radius:10px; border:1px solid var(--border); font-size:14px; width:260px; }
.form-msg{ font-size:13.5px; margin-top:14px; color:var(--green-dark); font-weight:600; }
.form-msg.error{ color:var(--red); }
.form-msg[hidden]{ display:none; }

/* ===== CTA banner ===== */
.cta-wrap{ max-width:var(--max); margin:24px auto 64px; padding:0 24px; }
.cta-box{ background:var(--ink-2); border-radius:20px; padding:48px 32px; text-align:center; }
.cta-box h3{ color:#fff; font-size:26px; margin:0 0 10px; }
.cta-box p{ color:var(--footer-text); font-size:14.5px; margin:0 0 22px; }

/* ===== Shop page ===== */
.shop-head{ margin:0 0 8px; font-weight:700; font-size:32px; }
.shop-sub{ color:var(--muted); font-size:15px; margin:0 0 28px; }
.shop-toolbar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; align-items:center; justify-content:space-between; }
.filter-row{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-chip{ border-radius:20px; padding:9px 16px; font-size:13.5px; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; border:1px solid var(--border); background:#fff; color:var(--text); }
.filter-chip.active{ background:var(--green); color:#fff; border-color:var(--green); }
.search-input{ padding:10px 14px; border-radius:10px; border:1px solid var(--border); font-size:14px; min-width:200px; }
.empty-msg{ color:var(--muted); text-align:center; padding:40px 0; }

/* ===== Category page ===== */
.cat-hero{ background:var(--green-pale); padding:48px 24px; }
.cat-hero-grid{ max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:32px; align-items:center; }
.cat-hero h1{ font-weight:800; font-size:32px; margin:0 0 12px; }
.cat-hero p{ font-size:15px; line-height:1.6; color:var(--text); margin:0 0 10px; }
.tip-box{ background:#fff; border:1px solid var(--border); border-radius:14px; padding:22px 26px; }
.tip-box h4{ font-size:15px; margin:0 0 10px; color:var(--green-dark); }
.tip-box-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; }
.tip-box-item{ font-size:13.5px; color:var(--text); line-height:1.5; display:flex; gap:8px; }
.tip-box-item .check{ color:var(--green); }

/* ===== About page ===== */
.about-hero-grid{ max-width:var(--max); margin:0 auto; padding:56px 24px; display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:40px; align-items:center; }
.about-hero-grid h1{ font-weight:800; font-size:32px; margin:0 0 16px; }
.about-hero-grid p{ font-size:15px; line-height:1.7; color:var(--text); margin:0 0 14px; }
.milestones{ background:var(--green-pale); padding:48px 24px; }
.milestones-grid{ max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; text-align:center; }
.milestone-num{ font-family:'Poppins',sans-serif; font-weight:800; font-size:30px; color:var(--green-dark); }
.milestone-label{ font-size:13.5px; color:var(--text); margin-top:4px; }
.values-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; }
.value-card{ border:1px solid var(--border); border-radius:14px; padding:22px; }
.value-card h4{ font-size:15.5px; margin:0 0 8px; color:var(--green-dark); }
.value-card p{ font-size:13.5px; color:var(--muted); line-height:1.5; }
.team-grid{ max-width:var(--max); margin:0 auto; padding:0 24px 64px; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:32px; align-items:center; }
.team-grid h3{ font-size:20px; margin:0 0 10px; }
.team-grid p{ font-size:14.5px; line-height:1.7; color:var(--text); }

/* ===== Contact page ===== */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:32px; }
.contact-card{ border:1px solid var(--border); border-radius:16px; padding:28px; background:#fff; }
.contact-info{ border:1px solid var(--border); border-radius:16px; padding:26px; background:#fff; margin-bottom:20px; }
.contact-info h4{ font-size:15.5px; margin:0 0 16px; }
.contact-info p{ font-size:14px; color:var(--text); margin:0 0 10px; }
.contact-photo{ margin-bottom:20px; }
.map-frame{ width:100%; height:220px; border:1px solid var(--border); border-radius:14px; }
.form-field{ padding:12px 14px; border-radius:10px; border:1px solid var(--border); font-size:14px; width:100%; }
textarea.form-field{ resize:vertical; }
.form-stack{ display:flex; flex-direction:column; gap:14px; }
.success-block{ text-align:center; padding:40px 0; }
.success-check{ font-size:36px; margin-bottom:10px; color:var(--green); }
.success-block h3{ margin:0 0 8px; }
.success-block p{ color:var(--muted); font-size:14px; }

/* ===== FAQ ===== */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--border); border-radius:12px; padding:18px 20px; background:#fff; }
.faq-q{ cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; background:none; border:none; width:100%; text-align:left; padding:0; font-family:inherit; }
.faq-q h4{ font-size:15px; margin:0; color:var(--ink-2); }
.faq-icon{ color:var(--green); font-size:18px; flex-shrink:0; }
.faq-answer{ font-size:14px; color:var(--muted); line-height:1.6; margin:12px 0 0; }
.faq-answer[hidden]{ display:none; }

/* ===== Legal pages ===== */
.legal-updated{ color:var(--muted); font-size:13px; margin:0 0 30px; }
.legal-section{ margin-bottom:24px; }
.legal-section h3{ font-size:16.5px; margin:0 0 8px; color:var(--ink-2); }
.legal-section p{ font-size:14px; line-height:1.7; color:var(--text); }

/* ===== Narrow page wrapper ===== */
.page-wrap{ max-width:var(--max); margin:0 auto; padding:48px 24px 72px; width:100%; }
.page-wrap.narrow{ max-width:900px; }
.page-wrap.narrower{ max-width:800px; }
.page-title{ font-weight:700; font-size:32px; margin:0 0 8px; }
.page-title-lg{ font-weight:800; font-size:32px; margin:0 0 8px; }
.page-sub{ color:var(--muted); font-size:15px; margin:0 0 32px; }

/* ===== Footer ===== */
.site-footer{ background:var(--ink-2); color:var(--footer-text); padding:52px 24px 24px; margin-top:auto; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:32px; margin-bottom:36px; }
.footer-brand{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.footer-mark{ width:30px; height:30px; border-radius:50%; background:var(--green); color:#fff; font-family:'Poppins',sans-serif; font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; }
.footer-brand-name{ font-family:'Poppins',sans-serif; font-weight:700; color:#fff; font-size:17px; }
.footer-desc{ font-size:13px; line-height:1.6; color:var(--muted-3); }
.footer-col h5{ color:#fff; font-size:13.5px; margin:0 0 14px; font-family:'Poppins',sans-serif; }
.footer-links{ display:flex; flex-direction:column; gap:10px; }
.footer-links a{ color:var(--footer-text); font-size:13.5px; cursor:pointer; }
.footer-contact p{ font-size:13.5px; color:var(--footer-text); margin:0 0 8px; }
.footer-bottom{ border-top:1px solid var(--footer-border); padding-top:18px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-bottom span{ font-size:12.5px; color:var(--muted-3); }

/* ===== Cart overlay + drawer ===== */
.cart-overlay{ position:fixed; inset:0; background:rgba(18,32,26,.4); z-index:90; }
.cart-overlay[hidden]{ display:none; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:400px; max-width:100vw; background:#fff; z-index:91;
  box-shadow:var(--shadow-drawer); display:flex; flex-direction:column; transform:translateX(0); transition:transform .2s ease;
}
.cart-drawer[hidden]{ display:none; }
.cart-drawer-head{ padding:20px 22px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.cart-drawer-head h3{ font-size:18px; margin:0; }
.cart-close{ background:none; border:none; font-size:20px; cursor:pointer; color:var(--muted); }
.cart-drawer-body{ flex:1; overflow-y:auto; padding:16px 22px; }
.cart-empty{ text-align:center; color:var(--muted); padding:60px 0; font-size:14px; }
.cart-line{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border-2); align-items:center; }
.cart-line img{ width:56px; height:56px; flex-shrink:0; border-radius:8px; object-fit:cover; }
.cart-line-info{ flex:1; }
.cart-line-name{ font-size:13.5px; font-weight:600; color:var(--ink-2); }
.cart-line-price{ font-size:12.5px; color:var(--muted); }
.cart-line-qty{ display:flex; align-items:center; gap:10px; margin-top:6px; }
.cart-line-qty button{ width:22px; height:22px; border-radius:6px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:13px; }
.cart-line-total{ text-align:right; }
.cart-line-total .amt{ font-size:13.5px; font-weight:700; }
.cart-remove{ background:none; border:none; color:var(--red); font-size:11.5px; cursor:pointer; padding:4px 0; }
.cart-drawer-foot{ border-top:1px solid var(--border); padding:18px 22px; }
.cart-summary-row{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--muted); margin-bottom:6px; }
.cart-total-row{ display:flex; justify-content:space-between; font-size:16px; font-weight:700; margin:10px 0 4px; }
.free-ship-note{ font-size:12px; color:var(--green-dark); margin:0 0 12px; }
.checkout-actions{ display:flex; gap:10px; }
.checkout-actions .btn{ flex:1; }
.checkout-actions .btn.primary-2{ flex:2; }
.order-ref{ color:var(--muted); font-size:13.5px; margin:0 0 6px; }

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

@media (max-width: 640px){
  .hero h1{ font-size:32px; }
  .section{ padding:44px 20px; }
  .cta-box{ padding:36px 22px; }
  .cart-drawer{ width:100%; }
}
