/* JD Distribuciones — CSS puro (sin frameworks) */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(.25 .07 251);
  --primary: oklch(.26 .079 251);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(.87 .18 91);
  --secondary-foreground: oklch(.25 .07 251);
  --muted: oklch(.97 .002 250);
  --muted-foreground: oklch(.5 .018 250);
  --accent: oklch(.95 .035 90);
  --accent-foreground: oklch(.25 .07 251);
  --border: oklch(.9 .008 250);
  --destructive: oklch(.55 .2 28);
  --success: oklch(.57 .16 153);
  --hero-yellow: oklch(.88 .179 91);
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;
  --shadow: 0 8px 28px oklch(.25 .07 251 / .07);
}
*{box-sizing:border-box;border-color:var(--border);letter-spacing:0}
body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--font-body);font-size:15px;line-height:1.65}
h1,h2,h3,h4{font-family:var(--font-heading);line-height:1.18;margin:0;font-weight:800}
p{margin:0}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
img{display:block;max-width:100%;height:auto}
svg[hidden]{display:none!important}
/* Las imágenes dentro de flex/grid no deben imponer su alto intrínseco:
   sin min-height:0 el mínimo automático ignora aspect-ratio y las deforma */
.family-image,.product-card img,.category-photo img{min-width:0;min-height:0}

/* Botones (reemplazo puro del componente Button) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;border:1px solid transparent;padding:10px 20px;transition:background .2s,color .2s,transform .2s;text-decoration:none;line-height:20px}
.btn svg{width:16px;height:16px;flex-shrink:0}
.btn-primary{background:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow)}
.btn-primary:hover{filter:brightness(1.12)}
.btn-secondary{background:var(--secondary);color:var(--secondary-foreground);box-shadow:var(--shadow)}
.btn-secondary:hover{filter:brightness(.97)}
.btn-outline{background:transparent;border-color:var(--border);color:var(--foreground)}
.btn-outline:hover{background:var(--accent)}
.btn-link{background:none;border:0;color:var(--primary);padding:0;text-decoration:none;text-underline-offset:4px}
.btn-link:hover{text-decoration:underline}
.product-body .btn-link{display:flex;width:100%;justify-content:space-between;font-size:12px;font-weight:500}
.btn-lg{min-height:47px;padding:12px 28px;font-size:14px}
.btn-sm{min-height:32px;padding:6px 12px;font-size:12px}

/* Estructura */
.container{width:min(1180px,calc(100% - 80px));margin-inline:auto}
.topbar{background:var(--primary);color:var(--primary-foreground);font-size:12px}
.topbar .container{height:34px;display:flex;align-items:center;justify-content:space-between}
.topbar span,.topbar a{display:flex;align-items:center;gap:8px}
.topbar svg{width:13px;height:13px}
.site-header{background:var(--background);position:relative;z-index:20;border-bottom:1px solid var(--border)}
.header-inner{height:97px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:block;width:175px;flex-shrink:0}
.brand img{display:block;width:100%;height:77px;object-fit:contain}
.desktop-nav{display:flex;gap:31px;align-items:center}
.desktop-nav a{font-size:14px;font-weight:600;position:relative;padding:34px 0}
.desktop-nav a.active::after{content:'';height:3px;background:var(--secondary);position:absolute;bottom:23px;left:0;right:0}
.header-cta{min-height:41px}
.menu-toggle{display:none}
.mobile-nav{display:none}

/* Hero */
.hero{position:relative;isolation:isolate;min-height:540px;background:var(--hero-yellow);overflow:hidden}
.hero-image{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center}
.hero .container{padding-top:62px;padding-bottom:62px}
.eyebrow{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;display:flex;align-items:center;gap:8px}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--foreground)}
.hero h1{font-size:55px;line-height:1.1;max-width:590px;margin-top:22px}
.hero h1 em{font-style:normal;display:inline-block;position:relative}
.hero h1 em::after{content:'';position:absolute;left:0;right:0;bottom:-8px;height:4px;background:var(--foreground);transform:rotate(-1deg);border-radius:50%}
.hero p{max-width:420px;font-size:16px;line-height:1.75;margin-top:26px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-outline{background:transparent;border-color:var(--foreground)}
.hero-note{display:flex;gap:7px;align-items:center;margin-top:25px;font-size:12px}
.hero-note svg{width:16px;height:16px}

/* Beneficios */
.benefits{border-bottom:1px solid var(--border);background:var(--background)}
.benefits-inner{display:grid;grid-template-columns:repeat(4,1fr);padding:25px 0}
.benefit{display:flex;gap:14px;align-items:center;padding:0 22px;border-right:1px solid var(--border)}
.benefit:first-child{padding-left:0}
.benefit:last-child{border:0}
.benefit-icon{width:41px;height:41px;display:grid;place-items:center;background:var(--accent);border-radius:50%;flex-shrink:0}
.benefit-icon svg{width:21px;height:21px}
.benefit strong{font-size:13px;display:block}
.benefit p{font-size:11px;color:var(--muted-foreground)}

/* Secciones */
.section{padding:64px 0}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.section-heading .eyebrow{color:var(--muted-foreground);margin-bottom:12px}
.section-heading h2{font-size:33px}
.section-heading p{color:var(--muted-foreground);margin-top:13px}
.text-link{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:13px;white-space:nowrap;color:inherit}
.text-link svg{width:16px;height:16px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.category-card{border:1px solid var(--border);border-radius:7px;overflow:hidden;transition:transform .2s,box-shadow .2s;display:block}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.category-photo{aspect-ratio:1.45;overflow:hidden;background:var(--muted)}
.category-photo img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.category-card:hover img{transform:scale(1.035)}
.category-body{padding:21px;position:relative}
.category-body h3{font-size:18px}
.category-body p{font-size:12px;color:var(--muted-foreground);margin-top:7px;padding-right:15px}
.category-arrow{position:absolute;right:20px;top:23px;width:17px;height:17px}

/* Banda familiar */
.family-band{background:var(--muted);padding:65px 0}
.family-inner{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.family-image{width:100%;aspect-ratio:1.55;object-fit:cover;border-radius:7px}
.family-copy h2{font-size:35px;margin:15px 0 18px}
.family-copy p{color:var(--muted-foreground);margin-bottom:22px}
.values{display:flex;flex-wrap:wrap;gap:16px;margin:22px 0}
.values span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}
.values svg{width:16px;height:16px;color:var(--success)}

/* CTA + footer */
.cta-band{background:var(--secondary);padding:39px 0}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.cta-inner h2{font-size:27px}
.cta-inner p{font-size:14px;margin-top:6px}
.footer{background:var(--primary);color:var(--primary-foreground);padding:48px 0 0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr;gap:45px}
.footer-brand{font-family:var(--font-heading);font-size:21px;font-weight:800}
.footer-brand span{color:var(--secondary)}
.footer p,.footer a{font-size:12px;opacity:.9}
.footer p{margin-top:12px;max-width:260px}
.footer h4{font-size:13px;margin:0 0 15px}
.footer-links{display:grid;gap:7px}
.footer-contact a,.footer-contact p{display:flex;gap:9px;align-items:flex-start;margin-top:9px}
.footer-contact svg{width:15px;height:15px;flex-shrink:0;margin-top:3px}
.footer-bottom{border-top:1px solid oklch(1 0 0 / .15);margin-top:35px;padding:19px 0;display:flex;justify-content:space-between;font-size:10px;opacity:.75}
.floating-contact{position:fixed;bottom:24px;right:24px;width:51px;height:51px;border-radius:50%;background:var(--success);color:#fff;display:grid;place-items:center;box-shadow:var(--shadow);z-index:30}
.floating-contact svg{width:25px;height:25px}

/* Páginas internas */
.page-intro{background:var(--accent);padding:48px 0 43px}
.breadcrumb{font-size:12px;color:var(--muted-foreground);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.breadcrumb svg{width:12px;height:12px}
.page-intro h1{font-size:43px;margin-bottom:14px}
.page-intro p{max-width:660px;color:var(--muted-foreground)}
.prose{max-width:800px;margin:auto}
.prose h2{font-size:29px;margin:35px 0 17px}
.prose h2:first-child{margin-top:0}
.prose p{margin-bottom:19px;color:var(--muted-foreground);line-height:1.85}
.statement-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-top:1px solid var(--border);padding-top:35px;margin-top:35px}
.statement-grid h2{margin-top:0}

/* Servicios */
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.service{border-bottom:3px solid var(--secondary);padding:0 0 26px}
.service svg{width:32px;height:32px;margin-bottom:24px}
.service h2{font-size:23px;margin-bottom:16px}
.service p{color:var(--muted-foreground);font-size:14px}
.service a{margin-top:22px}

/* Catálogo */
.catalog-toolbar{display:flex;justify-content:space-between;gap:20px;margin-bottom:30px;flex-wrap:wrap}
.filters{display:flex;flex-wrap:wrap;gap:7px}
.filters .btn.active{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}
.search-field{display:flex;align-items:center;border:1px solid var(--border);border-radius:6px;padding:0 13px;gap:9px;background:var(--background)}
.search-field svg{width:16px;height:16px;color:var(--muted-foreground)}
.search-field input{border:0;background:transparent;padding:9px 0;width:200px;color:var(--foreground);outline:none}
.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{border:1px solid var(--border);border-radius:7px;overflow:hidden;display:flex;flex-direction:column;background:var(--background)}
.product-card img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--muted)}
.product-body{padding:20px;display:flex;flex-direction:column;flex:1}
.product-label{font-size:10px;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
.product-body h2{font-size:18px}
.product-body p{font-size:12px;color:var(--muted-foreground);margin:12px 0 18px;flex:1}
.catalog-note{font-size:12px;color:var(--muted-foreground);margin-top:28px}
.empty-state{padding:55px 0;text-align:center}
.empty-state h2{font-size:24px;margin-bottom:8px}

/* Contacto */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:85px}
.contact-info h2,.contact-form h2{font-size:27px;margin-bottom:17px}
.contact-info>p{color:var(--muted-foreground);margin-bottom:29px}
.contact-detail{display:flex;gap:17px;padding:21px 0;border-bottom:1px solid var(--border)}
.contact-detail>svg{width:24px;height:24px;flex-shrink:0}
.contact-detail h3{font-size:14px;margin:0 0 7px}
.contact-detail p{font-size:14px;color:var(--muted-foreground)}
.contact-form{background:var(--muted);padding:30px;border-radius:7px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:19px}
.field label{font-size:12px;font-weight:700}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--border);border-radius:5px;padding:11px;background:var(--background);color:var(--foreground);font-size:13px}
.field textarea{min-height:120px;resize:vertical}
.contact-form>p{color:var(--muted-foreground);font-size:12px;margin-bottom:24px}
.form-footnote{font-size:11px;color:var(--muted-foreground);margin-top:15px}
.result-message{margin-top:15px;font-size:12px}
.result-message a{text-decoration:underline}

/* Responsive */
@media(min-width:1500px){.hero{min-height:590px}.hero .container{padding-top:80px}.hero-image{object-position:center 55%}}
@media(max-width:1050px){
  .container{width:calc(100% - 48px)}
  .desktop-nav{gap:20px}
  .hero h1{font-size:47px;max-width:470px}
  .hero-image{object-position:43% center}
  .hero p{max-width:360px}
  .benefit{padding-inline:13px;gap:9px}
  .benefit strong{font-size:12px}
  .category-body{padding:17px}
  .category-body h3{font-size:16px}
  .category-arrow{right:13px;top:20px}
  .category-grid,.catalog-grid{gap:14px}
  .family-inner{gap:35px}
  .footer-grid{gap:24px}
  .contact-grid{gap:40px}
}
@media(max-width:760px){
  .container{width:calc(100% - 36px)}
  .topbar .container{justify-content:center;height:30px}
  .topbar .top-location{display:none}
  .header-inner{height:79px;gap:12px}
  .brand{width:143px}
  .brand img{height:65px}
  .desktop-nav,.header-cta{display:none}
  .menu-toggle{display:inline-flex}
  .mobile-nav{display:flex;flex-direction:column;padding:8px 18px 18px;border-top:1px solid var(--border);gap:2px;background:var(--background)}
  .mobile-nav[hidden]{display:none}
  .mobile-nav a{padding:12px 0;font-weight:600;min-height:44px;display:flex;align-items:center}
  .mobile-nav a.active{color:var(--success)}
  .hero{min-height:690px}
  .hero .container{padding-top:35px;padding-bottom:290px}
  .hero-image{object-position:72% bottom;height:340px;top:auto;bottom:0;object-fit:cover}
  .hero h1{font-size:40px;max-width:420px;margin-top:17px}
  .hero p{font-size:14px;max-width:350px;margin-top:23px}
  .hero-actions{margin-top:22px;gap:8px}
  .hero-actions .btn{padding-inline:15px;font-size:12px;min-height:43px}
  .hero-note{font-size:10px;margin-top:17px}
  .benefits-inner{grid-template-columns:1fr 1fr;gap:20px;padding:23px 0}
  .benefit{padding:0;border:0;gap:10px}
  .benefit-icon{width:33px;height:33px}
  .benefit-icon svg{width:18px;height:18px}
  .benefit strong{font-size:11px}
  .benefit p{font-size:10px}
  .section{padding:43px 0}
  .section-heading{align-items:flex-start;gap:16px}
  .section-heading h2{font-size:27px}
  .section-heading p{font-size:13px}
  .section-heading>.text-link{font-size:0;margin-top:26px;min-width:44px;min-height:44px;justify-content:center}
  .section-heading>.text-link svg{width:22px;height:22px}
  .text-link{min-height:44px}
  .footer-links{gap:0}
  .footer-links a{display:flex;align-items:center;min-height:36px}
  .breadcrumb a{display:inline-flex;align-items:center;min-height:32px}
  .field input,.field select,.field textarea{font-size:16px}
  .search-field input{font-size:16px}
  .category-grid,.catalog-grid{grid-template-columns:repeat(2,1fr);gap:13px}
  .category-photo{aspect-ratio:1.1}
  .category-body{padding:15px 12px}
  .category-body h3{font-size:15px}
  .category-body p{font-size:11px}
  .category-arrow{display:none}
  .family-band{padding:40px 0}
  .family-inner{grid-template-columns:1fr;gap:25px}
  .family-copy h2{font-size:28px}
  .family-copy p{font-size:14px}
  .cta-inner{align-items:flex-start;flex-direction:column;gap:20px}
  .cta-inner h2{font-size:25px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .footer-grid>div:first-child{grid-column:1/-1}
  .footer-contact{grid-column:1/-1}
  .footer-bottom{gap:15px;flex-wrap:wrap}
  .floating-contact{right:16px;bottom:17px;width:47px;height:47px}
  .page-intro{padding:30px 0}
  .page-intro h1{font-size:34px}
  .page-intro p{font-size:14px}
  .statement-grid{grid-template-columns:1fr;gap:15px}
  .service-grid{grid-template-columns:1fr;gap:35px}
  .contact-grid{grid-template-columns:1fr;gap:35px}
  .contact-form{padding:22px}
  .form-row{grid-template-columns:1fr;gap:0}
  .product-body{padding:14px}
  .product-body h2{font-size:15px}
  .product-body p{font-size:11px}
  .search-field{width:100%}
  .search-field input{width:100%}
  .filters .btn{font-size:11px;padding:8px 12px}
  .eyebrow{font-size:10px}
  .prose p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){*{transition:none;scroll-behavior:auto}}
