/*
Theme Name: EnPacks
Theme URI: https://enpacks.com/
Author: EnPacks
Description: Tema WordPress clásico basado en el prototipo HTML aprobado (diseño 4). Home responsive, categorías, fichas ilustrativas y secciones para particulares y empresas. Compatible con EnPacks Core 1.0: catálogo y proveedores reales cuando se activa el plugin.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: enpacks
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, blog, one-column
*/

:root{--ink:#0b2543;--muted:#627791;--blue:#1677bb;--line:#e9edf2;--shadow:0 9px 26px rgba(12,35,62,.055);--cream:#faf7f2;--w:1200px;--rad:15px}
    *,*::before,*::after{box-sizing:border-box}
    html{scroll-behavior:smooth;scroll-padding-top:90px}
    body{margin:0;background:#fff;color:var(--ink);font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
    a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}
    img{max-width:100%;display:block}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3b92de;outline-offset:3px}
    .container{width:min(var(--w),calc(100% - 64px));margin:0 auto}
    .site-header{position:sticky;z-index:30;top:0;background:rgba(255,255,255,.96);border-bottom:1px solid #edf0f5;backdrop-filter:blur(20px)}
    .head-inner{display:flex;align-items:center;min-height:76px;gap:26px}
    .logo{font-size:33px;letter-spacing:-2.2px;font-weight:850;line-height:1;color:var(--ink);white-space:nowrap}
    .main-nav{display:flex;align-items:center;gap:24px;margin-left:18px;white-space:nowrap;font-size:13px;font-weight:610}
    .main-nav a:hover,.head-actions a:hover,.section-link:hover{color:var(--blue)}
    .head-actions{display:flex;align-items:center;gap:21px;margin-left:auto;white-space:nowrap;font-size:13px;font-weight:650}
    .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:999px;padding:13px 21px;font-size:13px;font-weight:730;line-height:1.2;transition:transform .18s,box-shadow .18s,background .18s;text-align:center;white-space:nowrap}
    .btn:hover{transform:translateY(-2px);box-shadow:0 7px 20px #0b25432a}
    .btn-primary{background:#071f37;color:#fff}.btn-primary:hover{background:#16466b;color:#fff}
    .btn-outline{border-color:#cedae6;background:#fff;color:var(--ink)}.btn-blue{background:var(--blue);color:#fff}
    .btn.sm{padding:10px 17px}.menu-toggle{display:none;border:0;background:transparent;color:var(--ink);padding:7px}
    .hero{overflow:hidden;position:relative;background:radial-gradient(circle at 67% 15%,#faf4eb 0%,#fff 40%,#faf9f7 100%);border-radius:0 0 21px 21px}
    .hero-grid{min-height:445px;display:grid;grid-template-columns:56% 44%;position:relative}
    .hero-copy{position:relative;z-index:2;align-self:center;padding:45px 0 42px}
    .overline{font-size:11px;font-weight:850;letter-spacing:2.3px;color:#42617d;text-transform:uppercase}
    h1{font-size:clamp(44px,5.4vw,70px);line-height:1.05;letter-spacing:-3.5px;margin:13px 0 15px;font-weight:850;max-width:650px}
    .hero-lede{font-size:18px;line-height:1.52;color:#526c89;max-width:490px;margin:0 0 23px}
    .hero-visual{position:relative;overflow:visible;z-index:1;align-self:stretch}
    .hero-visual::before{content:"";position:absolute;inset:0 auto 0 -135px;width:220px;z-index:2;background:linear-gradient(90deg,#fcfaf8 4%,transparent 100%);pointer-events:none}
    .hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center;min-width:0;filter:saturate(.97)}
    .hero .hero-grid::after{content:"";position:absolute;bottom:0;left:20%;width:38%;height:27px;background:#d7c7b218;filter:blur(18px);pointer-events:none}
    .search-form{display:flex;align-items:center;max-width:720px;width:min(720px,calc(100% + 120px));background:#fff;border:1px solid #e7eaf0;padding:8px;gap:6px;border-radius:99px;box-shadow:0 8px 26px #12294315;position:relative;z-index:4}
    .search-icon{padding-left:18px;display:flex;align-items:center;color:#466782}
    .search-form input{flex:1;min-width:100px;border:0;outline:0;padding:12px 6px;color:var(--ink);background:transparent;font-size:13px}
    .search-form select{max-width:196px;width:175px;background:#fff;border:0;border-left:1px solid #edf0f5;padding:12px 9px;color:#415873;outline:0;font-size:12px}
    .search-form .btn{min-width:117px;padding:13px 22px}
    .features{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:27px 0 17px}
    .feature{display:flex;gap:14px;align-items:center}.feature h3{font-size:13px;line-height:1.35;margin:0 0 3px;font-weight:800}.feature p{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
    .feature-icon{flex:none;display:grid;place-items:center;border-radius:50%;width:65px;height:65px;color:#0072d2;background:#e4f3ff}
    .feature:nth-child(2) .feature-icon{background:#fff0dd;color:#e87b11}.feature:nth-child(3) .feature-icon{background:#ddf9ef;color:#009e87}.feature:nth-child(4) .feature-icon{background:#ece9ff;color:#5144ed}
    .section{padding:29px 0 17px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:19px}
    .section h2,.steps h2{font-size:clamp(25px,2.4vw,34px);font-weight:830;letter-spacing:-1.15px;line-height:1.16;margin:0}
    .section-sub{margin:7px 0 0;font-size:14px;color:var(--muted)}
    .section-link{font-size:13px;color:#0378c7;font-weight:730;white-space:nowrap;padding:7px 0}
    .categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
    .category{overflow:hidden;display:flex;flex-direction:column;border:1px solid #eef0f2;border-radius:var(--rad);box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;background:#fff;text-align:left;width:100%;padding:0}
    .category:hover,.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 35px #102f511a}
    .category img{width:100%;height:182px;object-fit:cover}.category span{display:block;padding:13px 15px 15px;font-size:14px;font-weight:760}
    .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
    .product-card{border:1px solid #e8edf2;border-radius:var(--rad);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;background:#fff;min-width:0}
    .product-card .product-image{position:relative;aspect-ratio:1.3;overflow:hidden;background:#f6f2ea}
    .product-image img{width:100%;height:100%;object-fit:cover}
    .demo-label{position:absolute;left:12px;top:12px;border-radius:999px;background:#ffffffea;color:#48657e;padding:4px 9px;font-size:10px;font-weight:800}
    .product-text{padding:14px 14px 15px}
    .product-text h3{font-size:15px;line-height:1.3;letter-spacing:-.15px;margin:0 0 6px;font-weight:800}
    .product-desc{font-size:12px;line-height:1.4;color:var(--muted);min-height:33px;margin:0 0 13px}
    .product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}
    .price{font-size:20px;letter-spacing:-.6px;font-weight:850;line-height:1.1}
    .price.from{font-size:15px;letter-spacing:-.1px}
    .round-arrow{width:34px;height:34px;border:1px solid #c0d3e5;border-radius:50%;background:#fff;color:var(--ink);display:grid;place-items:center;font-size:20px;line-height:1;flex:none}
    .round-arrow:hover{background:#e6f4ff}
    .steps{margin-top:32px;background:linear-gradient(125deg,#faf7f4,#f8f4ee);border-radius:22px;padding:32px 40px 29px;text-align:center}
    .steps h2{margin:8px 0 16px}.steps-row{display:grid;grid-template-columns:repeat(3,1fr);gap:55px;text-align:left;max-width:1040px;margin:0 auto}
    .step{display:flex;gap:14px;align-items:flex-start}.step-no{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:#d9efff;color:#0876bd;font-size:23px;font-weight:850;flex:none}.step:nth-child(2) .step-no{background:#ffdfc0;color:#965016}.step:nth-child(3) .step-no{background:#c8f3e4;color:#00877a}
    .step-symbol{height:56px;width:56px;display:grid;place-items:center;margin-bottom:6px;background:#fff;border-radius:50%;color:var(--ink)}.step h3{font-size:16px;margin:0 0 4px;line-height:1.25}.step p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
    .banners{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:20px}
    .banner{background:#faf7f4;border-radius:18px;min-height:260px;position:relative;overflow:hidden;display:flex;align-items:center}.banner::after{content:"";position:absolute;inset:0 0 0 41%;background:linear-gradient(90deg,#faf7f4 0%,transparent 40%);pointer-events:none}
    .banner.business{background:#f3f6f8}.banner.business::after{background:linear-gradient(90deg,#f3f6f8 0%,transparent 44%)}
    .banner img{position:absolute;right:0;top:0;height:100%;width:55%;object-fit:cover;object-position:center;z-index:0}
    .banner-copy{z-index:2;position:relative;padding:25px 25px 25px 27px;max-width:64%}
    .banner .overline{font-size:9px;letter-spacing:1.4px}.banner h2{font-size:clamp(22px,2.1vw,28px);line-height:1.13;letter-spacing:-.8px;margin:10px 0}.banner p{font-size:12px;color:#52667c;line-height:1.5;margin:0 0 14px}
    .brands{padding:34px 0;text-align:center}.brands .overline{letter-spacing:1.8px;font-size:10px}.brand-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:25px 0 0;color:#8995a8;font-family:Georgia,serif;font-size:24px}.brand-row span{opacity:.77}
    .newsletter{background:linear-gradient(110deg,#f2ebe5,#fbfaf7 30%,#f9f5ef 72%,#eee5da);border-radius:19px;padding:31px 45px;display:flex;align-items:center;justify-content:space-between;gap:26px;margin:0 auto 38px;position:relative;overflow:hidden}
    .newsletter:before{content:"";position:absolute;left:-35px;bottom:-60px;width:145px;height:150px;background:url('assets/images/newsletter-left.webp') center/cover;opacity:.27}
    .newsletter:after{content:"";position:absolute;right:-15px;bottom:-52px;width:120px;height:160px;background:url('assets/images/newsletter-right.webp') center/cover;opacity:.27}
    .newsletter h2{font-size:24px;letter-spacing:-.6px;line-height:1.16;margin:0 0 5px}.newsletter p{font-size:13px;color:var(--muted);margin:0}
    .newsletter-form{display:flex;background:#fff;border-radius:99px;border:1px solid #eff1f5;padding:6px;gap:5px;min-width:380px;position:relative;z-index:2}
    .newsletter-form input{flex:1;min-width:100px;outline:0;border:0;padding:9px 13px;font-size:12px}
    .footer{border-top:1px solid #eef0f4;padding:36px 0 0}.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.28fr;gap:30px}.footer-logo{font-size:28px}
    .footer p,.footer a{font-size:12px;line-height:1.7;color:var(--muted)}.footer h3{font-size:13px;margin:2px 0 14px}.footer-col a{display:block;margin:7px 0}.footer a:hover{color:var(--blue)}.footer .footer-blurb{max-width:220px;margin:11px 0}
    .socials{display:flex;gap:8px;margin-top:18px}.socials span{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#f1f4f7;color:var(--ink);font-size:12px;font-weight:800}
    .footer-cta{background:#faf7f4;border-radius:14px;padding:20px}.footer-cta p{margin:5px 0 14px}.footer-cta .btn{font-size:12px}
    .footer-bottom{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0 25px;margin-top:30px;font-size:11px;color:#8898aa}
    .demo-note{font-size:12px;color:#7b8b9c;margin-top:16px}
    .toast{position:fixed;right:22px;bottom:22px;max-width:360px;box-shadow:0 18px 55px #10294335;border:1px solid #dfecf8;border-radius:14px;padding:16px 20px;background:#fff;z-index:100;font-size:14px;display:none}.toast.show{display:block}
    dialog{border:none;border-radius:19px;padding:0;max-width:min(510px,calc(100% - 28px));width:100%;box-shadow:0 28px 100px #051e36a8;color:var(--ink)}dialog::backdrop{background:#031525a6;backdrop-filter:blur(3px)}.dialog-body{padding:30px}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font-size:25px;line-height:1.15;margin:0 0 8px}.close-modal{background:#f1f4f6;border:0;border-radius:50%;width:34px;height:34px;font-size:23px;display:grid;place-items:center}.form-stack{display:grid;gap:12px;margin-top:18px}.form-stack label{font-size:12px;font-weight:750;display:grid;gap:5px}.form-stack input,.form-stack select,.form-stack textarea{border:1px solid #d9e1ea;border-radius:10px;padding:11px 12px;color:var(--ink);background:#fff;font-size:14px}.form-stack textarea{resize:vertical;min-height:90px}.form-stack .btn{margin-top:4px}.form-footnote{color:#6d8196;font-size:12px;line-height:1.5}
    .hidden-card{display:none!important}.results-message{font-size:13px;color:#4d6b82;background:#edf7fd;border-radius:10px;padding:11px 15px;margin:13px 0;display:none}.results-message.visible{display:block}
    @media(max-width:1070px){.main-nav{gap:14px;margin-left:2px}.head-inner{gap:15px}.head-actions{gap:12px}.logo{font-size:29px}.container{width:min(var(--w),calc(100% - 44px))}.hero-grid{grid-template-columns:53% 47%}.search-form{width:min(630px,calc(100% + 55px))}.categories{gap:10px}.category img{height:150px}.feature-icon{width:54px;height:54px}.feature{gap:8px}.banners{gap:14px}}
    @media(max-width:820px){.head-inner{min-height:68px}.menu-toggle{display:block;margin-left:auto}.head-actions{margin-left:0}.head-actions .signin{display:none}.main-nav{display:none;position:absolute;left:0;right:0;top:68px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 20px 24px #10294318;flex-direction:column;align-items:stretch;padding:16px 24px;gap:0}.main-nav.open{display:flex}.main-nav a{padding:11px 0;font-size:15px}.hero-grid{grid-template-columns:58% 42%;min-height:380px}.hero-copy{padding:26px 0}.hero h1{font-size:clamp(35px,5vw,52px);letter-spacing:-2px}.hero-lede{font-size:15px}.search-form{width:min(550px,calc(100% + 15px))}.search-form select{width:138px}.search-form .btn{min-width:90px}.features{grid-template-columns:repeat(2,1fr);row-gap:20px}.categories{grid-template-columns:repeat(3,1fr);gap:12px}.category img{height:160px}.products{grid-template-columns:repeat(2,1fr)}.steps-row{gap:20px}.banners{grid-template-columns:1fr}.banner{min-height:230px}.footer-grid{grid-template-columns:1.3fr 1fr 1fr;row-gap:23px}.newsletter{padding:25px}.newsletter-form{min-width:280px}}
    @media(max-width:560px){.container{width:calc(100% - 32px)}.head-inner{gap:10px;min-height:64px}.main-nav{top:64px}.logo{font-size:28px}.head-actions .btn{font-size:11px;padding:10px 11px}.hero-grid{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:32px 0 20px}.hero h1{font-size:44px;line-height:1.04;letter-spacing:-2.5px;margin:10px 0 15px;max-width:450px}.hero-lede{font-size:15px;max-width:400px}.hero-visual{height:225px;margin:0 -16px}.hero-visual::before{display:none}.hero-visual img{object-position:center 52%}.search-form{width:100%;gap:1px}.search-icon{padding-left:6px}.search-form input{font-size:11px;width:45%;min-width:40px;padding:10px 2px}.search-form select{font-size:10px;width:105px;padding:9px 3px}.search-form .btn{min-width:72px;padding:12px 10px;font-size:11px}.features{padding-top:23px;gap:19px 12px}.feature-icon{width:45px;height:45px}.feature-icon svg{width:22px}.feature h3{font-size:12px}.feature p{font-size:11px}.section{padding:25px 0 10px}.section-head{align-items:flex-start}.section h2,.steps h2{font-size:25px}.section-sub{font-size:12px}.section-link{font-size:11px;padding-top:4px;white-space:normal;text-align:right}.categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.category img{height:112px}.category span{font-size:12px;padding:9px 10px 10px}.products{gap:11px}.product-card .product-image{aspect-ratio:1.13}.product-text{padding:10px}.product-text h3{font-size:12px}.product-desc{font-size:11px;min-height:45px}.price{font-size:17px}.price.from{font-size:12px}.round-arrow{width:29px;height:29px}.steps{margin-top:23px;padding:24px 19px}.steps-row{grid-template-columns:1fr;gap:18px}.step{align-items:center}.step-symbol{display:none}.steps h2{margin-bottom:18px}.step-no{width:45px;height:45px}.banners{gap:12px;padding-top:16px}.banner{min-height:226px}.banner-copy{max-width:68%;padding:18px}.banner h2{font-size:23px}.banner img{width:54%}.brands{padding:27px 0}.brand-row{justify-content:center;gap:15px 20px;font-size:20px}.newsletter{padding:25px 19px;flex-direction:column;align-items:stretch;gap:15px;margin-bottom:23px}.newsletter h2{font-size:23px}.newsletter-form{min-width:0}.newsletter-form .btn{padding:12px 16px}.footer-grid{grid-template-columns:1fr 1fr;gap:19px}.footer-grid>:first-child{grid-column:1/-1}.footer-grid>:last-child{grid-column:1/-1}.footer-bottom{flex-direction:column;text-align:center}.footer-cta{max-width:none}}
    @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.category,.product-card{transition:none}}

/* WordPress integration. These rules do not affect the approved homepage. */
.logo .custom-logo { width:auto; height:35px; max-width:190px; object-fit:contain; }
.main-nav ul { list-style:none; padding:0; margin:0; display:flex; align-items:center; gap:24px; }
.main-nav li { margin:0; padding:0; }
.generic-page { padding:50px 0 90px; min-height:55vh; max-width:900px; }
.generic-page h1 { font-size:clamp(35px,4vw,54px); letter-spacing:-1.6px; margin:0 0 28px; }
.generic-page h2 { font-size:clamp(24px,3vw,32px); letter-spacing:-.8px; }
.generic-page a:not(.btn) { color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.generic-page img { height:auto; border-radius:12px; }
.generic-page .post-meta { color:var(--muted); font-size:13px; margin-bottom:16px; }
.generic-page .post-item { margin:0 0 30px; padding-bottom:28px; border-bottom:1px solid var(--line); }
.generic-page .post-item h2 { margin-bottom:8px; }
.generic-page .pagination { margin:28px 0; }
.generic-page input:not([type=submit]),.generic-page textarea,.generic-page select { width:100%; padding:12px; max-width:100%; border:1px solid var(--line); border-radius:8px; }
.alignwide { max-width:1200px; margin-left:auto; margin-right:auto; }
.alignfull { width:100%; }
@media(max-width:1050px) { .main-nav ul { gap:14px; } }
@media(max-width:820px) { .main-nav.open ul { display:flex; flex-direction:column; align-items:flex-start; gap:0; width:100%; } .main-nav ul li { width:100%; } }
