*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,sans-serif;background:#f5f8fc;color:#092b55}header{background:#075bc4;color:#fff}.mini{background:#06499f;padding:9px 4%;font-size:12px}.bar{min-height:96px;display:flex;align-items:center;gap:30px;padding:0 3%}.logo{display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;width:275px;height:78px;flex:0 0 275px;overflow:hidden}.logo img{max-width:100%;max-height:72px;width:auto;height:auto;object-fit:contain;filter:brightness(0) invert(1)}.logo span{font-size:52px;font-weight:800;font-style:italic}.logo small{font-size:13px;align-self:flex-start;margin-left:-75px;margin-top:4px}.search{display:flex;flex:1;max-width:700px}.search input{height:46px;flex:1;border:0;padding:12px;border-radius:2px 0 0 2px;font-size:14px}.search button{width:55px;background:#034b9e;color:#fff;border:0;font-size:25px}.icons{display:flex;gap:18px}.icons button,.icons a{background:none;border:0;color:#fff;font-size:23px;text-decoration:none;cursor:pointer}.icons small{display:block;font-size:10px}nav{min-height:54px;background:#0751aa;display:flex;gap:30px;align-items:center;padding:0 3%;overflow-x:auto;white-space:nowrap}nav b,nav a{font-size:17px}nav a{color:#fff;text-decoration:none}nav a:hover{text-decoration:underline}
.carousel{position:relative;overflow:hidden;background:#fff;width:100%;line-height:0}.hero .slide,.offer .offerSlide{display:none;width:100%;max-width:100%;height:auto;object-fit:contain;background:#fff;margin:0 auto}.hero .slide.active,.offer .offerSlide.active{display:block}.left,.right{position:absolute;top:50%;transform:translateY(-50%);border:0;border-radius:50%;width:42px;height:42px;background:rgba(255,255,255,.85);font-size:32px;color:#075bc4;cursor:pointer;z-index:2}.left{left:18px}.right{right:18px}.left:hover,.right:hover{background:#fff}.benefits{display:flex;justify-content:space-around;background:#fff;padding:20px 3%;box-shadow:0 2px 8px #0001}.benefits div,footer div{color:#0760ca;font-size:23px}.benefits b,.benefits small,footer b,footer small{display:block;margin-left:30px}.benefits b,footer b{font-size:13px;color:#123}.benefits small,footer small{font-size:10px;color:#777}.section{padding:24px 3%;max-width:1500px;margin:auto}.section h2{font-size:20px}.cats{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.cats button{background:#fff;border:1px solid #e6ebf2;border-radius:8px;padding:15px;cursor:pointer}.cats button:hover{box-shadow:0 4px 12px #0001}.cats span{display:block;font-size:35px}.cats b{font-size:11px}.offer{width:100%;height:auto;margin:0;border-radius:0;overflow:hidden}.sectionTitle{display:flex;align-items:center;justify-content:space-between}.productArrows{display:flex;gap:8px}.productArrows button{width:38px;height:38px;border:1px solid #d9e3ef;background:#fff;color:#075fc5;border-radius:50%;font-size:25px;cursor:pointer}.productsViewport{overflow:hidden;width:100%}.products{display:flex;gap:13px;overflow-x:auto;scroll-behavior:smooth;padding:4px 2px 12px;scrollbar-width:none}.products::-webkit-scrollbar{display:none}.product{background:#fff;border-radius:8px;padding:10px;border:1px solid #e4eaf2;flex:0 0 calc((100% - 65px)/6);min-width:190px}.pic{height:165px;position:relative}.pic img{width:100%;height:100%;object-fit:contain;background:#fff}.pic span{position:absolute;background:#e31d2b;color:#fff;font-size:9px;padding:4px;border-radius:4px;z-index:1}.pic button{position:absolute;right:0;background:none;border:0;color:#e31d45;font-size:22px;z-index:1;cursor:pointer}.product h3{font-size:12px;height:28px}.product small{color:#777}.price{font-weight:bold}.price del{font-size:10px;color:#999}.stars{color:#f4a900}.buy,.primary{background:#075fc5;color:#fff;border:0;border-radius:5px;padding:10px;width:100%;font-weight:bold;cursor:pointer}.buy:hover,.primary:hover{background:#064fa8}.infoSection{background:#fff;margin-bottom:18px;border-radius:8px}.pageContent{line-height:1.7;color:#334;white-space:normal}.modal{display:none;position:fixed;inset:0;background:#0008;align-items:center;justify-content:center;z-index:10}.modal>div{background:#fff;padding:25px;border-radius:10px;width:90%;max-width:600px}.login{min-height:100vh;display:grid;place-items:center;background:#edf5ff}.loginCard{background:#fff;padding:40px;border-radius:20px;width:min(650px,92%);text-align:center;box-shadow:0 10px 35px #0002}.loginLogo{background:#0860c4;color:#fff;padding:18px;height:120px;display:flex;align-items:center;justify-content:center;position:relative;border-radius:12px;overflow:hidden}.loginLogo img{max-width:90%;max-height:95px;object-fit:contain;filter:brightness(0) invert(1)}.loginLogo span{font-size:50px;font-weight:bold;font-style:italic}.loginLogo small{font-size:12px;position:absolute;right:15px;top:10px}.loginCard label,.card label{display:block;text-align:left;font-weight:bold;margin:14px 0 6px}.loginCard input,.card input,.card textarea,.card select{width:100%;padding:12px;border:1px solid #d4dfec;border-radius:6px}.loginCard .primary{margin:20px 0}.admin{background:#f3f7fc}.adminHead{min-height:70px;background:#075bc4;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 4%}.adminLogo{display:flex;align-items:center;height:60px}.adminLogo img{max-width:230px;max-height:55px;width:auto;height:auto;object-fit:contain;filter:brightness(0) invert(1)}.adminLogo b{font-size:24px}.adminHead a{background:#fff;color:#075bc4;padding:9px;border-radius:5px;text-decoration:none}.adminMain{padding:30px 4%;max-width:1400px;margin:auto}.adminGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:#fff;padding:20px;border-radius:10px}.full{grid-column:1/-1}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.row{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #ddd}.row img{width:60px;height:55px;object-fit:contain}.row span{flex:1}.row small{display:block;color:#777}.delete,.thumbs button{border:0;background:#e33;color:#fff;border-radius:4px;padding:6px;cursor:pointer}.thumbs{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}.thumbs>div{position:relative}.thumbs img{width:220px;height:120px;object-fit:contain;background:#f7f9fc;border-radius:6px}.thumbs form{position:absolute;right:3px;top:3px}.logoPreview{margin-top:15px;padding:20px;border:1px dashed #b7c8dc;text-align:center;border-radius:8px;background:#075bc4;color:#fff}.logoPreview img{display:block;margin:12px auto 0;max-width:350px;max-height:120px;width:auto;height:auto;object-fit:contain;filter:brightness(0) invert(1)}.menuList{margin-top:15px}.menuRow{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #ddd}.menuEdit{display:grid;grid-template-columns:1fr 1.3fr auto;gap:7px;flex:1}.menuEdit input{padding:8px!important}.save{border:0;background:#0a7d3b;color:#fff;border-radius:4px;padding:8px;cursor:pointer}.save:hover{background:#086b32}.pageAdminList{margin-top:18px}.pageAdminItem{padding:15px 0;border-top:1px solid #ddd}.pageAdminItem .delete{margin-top:8px}.flash{background:#ffe6a8;padding:10px;border-radius:6px;margin-bottom:15px}footer{display:flex;justify-content:space-around;background:#fff;padding:20px 3%;box-shadow:0 2px 8px #0001}
@media(max-width:1100px){.cats{grid-template-columns:repeat(4,1fr)}.product{flex-basis:calc((100% - 26px)/3)}.bar{gap:10px}.logo{width:190px;flex-basis:190px}.logo span{font-size:38px}}@media(max-width:700px){.search{display:none}.product{flex-basis:calc((100% - 13px)/2)}.benefits,footer{display:grid;grid-template-columns:1fr 1fr;gap:15px}.cats{grid-template-columns:repeat(2,1fr)}.adminGrid{grid-template-columns:1fr}.full{grid-column:auto}.menuEdit{grid-template-columns:1fr}.logo{width:150px;flex-basis:150px}.logo span{font-size:32px}.icons{gap:7px}.icons button,.icons a{font-size:18px}.adminLogo img{max-width:170px;max-height:45px}}

/* ===== CONTENIDO ADMINISTRABLE POR SECCION ===== */
.pageHero{width:100%;margin:10px 0 18px;text-align:center;background:#fff;border-radius:8px;overflow:hidden}
.pageHero img{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;margin:auto}
.pageContent{font-size:16px;line-height:1.7;color:#334b63;margin:10px 0 22px;white-space:normal}
.contentCards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.contentCard{background:#fff;border:1px solid #e3eaf2;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px #0000000d}
.contentCard img{width:100%;height:190px;object-fit:contain;background:#fff;display:block}
.contentCard>div{padding:16px}
.contentCard h3{margin:0 0 8px;color:#092b55}
.contentCard p{margin:0;color:#556b80;line-height:1.55}
.pageAdminItem{margin-top:18px;padding:18px;border:1px solid #dfe7f0;border-radius:10px;background:#f9fbfe}
.pageAdminItem h3{margin-top:0}
.adminPageImage{margin:12px 0;text-align:center;background:#fff;border-radius:8px;padding:8px}
.adminPageImage img{max-width:100%;max-height:220px;object-fit:contain}
.itemAdd{margin-top:18px;padding:16px;background:#fff;border:1px solid #dce5ef;border-radius:8px}
.itemAdd h4,.adminItems h4{margin-top:0;color:#092b55}
.adminItem{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid #ddd}
.adminItem>form:first-child{display:flex;gap:12px;flex:1;align-items:flex-start}
.adminItem img{width:130px;height:100px;object-fit:contain;background:#fff;border:1px solid #e2e8ef;border-radius:6px}
.itemFields{flex:1}
.itemFields label{margin-top:0}
.deleteSection{margin-top:14px}
.loginLogo img{max-width:80%;max-height:100px;width:auto;height:auto;object-fit:contain;filter:brightness(0) invert(1)}

@media(max-width:900px){.contentCards{grid-template-columns:repeat(2,1fr)}.adminItem>form:first-child{flex-direction:column}}
@media(max-width:600px){.contentCards{grid-template-columns:1fr}.pageHero img{max-height:350px}.contentCard img{height:170px}.adminItem{flex-direction:column}.adminItem>form:first-child{width:100%}}


/* ===== PRODUCTOS GRANDES + FICHA DEL PRODUCTO ===== */
.product{flex:0 0 calc((100% - 13px)/2);min-width:0;padding:16px;border-radius:10px}
.pic{height:330px}
.pic img{padding:8px}
.productLink{color:inherit;text-decoration:none;display:block}
.productInfoLink:hover h3{text-decoration:underline}
.product h3{font-size:18px;height:auto;min-height:42px;margin:10px 0 8px}
.product small{font-size:14px}
.price{font-size:22px;margin:8px 0}.price del{font-size:13px}.stars{font-size:18px;margin-bottom:10px}
.favBtn{z-index:3!important}
.productAdminRow{margin-top:10px}.productAdminRow .save{text-decoration:none;color:#fff}
.productEdit{background:#f6f9fd;border:1px solid #dce6f1;border-radius:8px;padding:15px;margin:8px 0 18px}
.productEdit form{display:block}.productEdit label{margin-top:10px}
.productDetailPage{max-width:1400px;margin:auto;padding:30px 4% 50px}.backLink{display:inline-block;color:#075bc4;text-decoration:none;font-weight:bold;margin-bottom:20px}.productDetail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:35px;background:#fff;border-radius:14px;padding:25px;box-shadow:0 4px 18px #0000000b}.detailMainImage{height:600px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5ebf2;border-radius:10px}.detailMainImage img{width:100%;height:100%;object-fit:contain;padding:20px}.detailThumbs{display:flex;gap:10px;overflow-x:auto;margin-top:12px}.detailThumb{width:95px;height:80px;background:#fff;border:2px solid #dce5ef;border-radius:8px;padding:4px;cursor:pointer}.detailThumb.active{border-color:#075bc4}.detailThumb img{width:100%;height:100%;object-fit:contain}.detailCategory{color:#687b8e;font-size:15px}.detailInfo h1{font-size:34px;line-height:1.15;margin:10px 0;color:#092b55}.detailStars{color:#f4a900;font-size:20px}.detailStars span{color:#6d7d8d;font-size:12px;margin-left:8px}.detailPrice{font-size:34px;font-weight:800;color:#075bc4;margin:18px 0}.detailPrice del{font-size:17px;color:#999;margin-left:8px}.detailShort{font-size:17px;line-height:1.6;color:#526679}.colorBox{margin:25px 0}.colorBox h3{margin-bottom:12px}.colorOptions{display:flex;flex-wrap:wrap;gap:10px}.colorOption{border:1px solid #d5dfeb;background:#fff;border-radius:20px;padding:7px 12px;display:flex;align-items:center;gap:7px;cursor:pointer}.colorOption.selected{border:2px solid #075bc4}.colorOption span{width:22px;height:22px;border-radius:50%;border:1px solid #aaa;display:inline-block}.stockBox{padding:12px;background:#eef8f1;color:#16733b;border-radius:7px;margin:20px 0;font-weight:bold}.detailBuy{width:100%;background:#075fc5;color:#fff;border:0;border-radius:7px;padding:16px;font-size:16px;font-weight:bold;cursor:pointer}.detailBuy:hover{background:#064fa8}.detailDescription{background:#fff;border-radius:14px;padding:28px;margin-top:25px;line-height:1.8;color:#43586b}.detailDescription h2{color:#092b55;margin-top:0}.detailDescription div{white-space:normal}
@media(max-width:1100px){.product{flex-basis:calc((100% - 13px)/2)}.pic{height:280px}.product h3{font-size:17px}}
@media(max-width:800px){.productDetail{grid-template-columns:1fr}.detailMainImage{height:430px}.detailInfo h1{font-size:28px}}
@media(max-width:600px){.product{flex-basis:100%}.pic{height:300px}.product h3{font-size:16px}.price{font-size:20px}.productDetailPage{padding:20px 3% 40px}.productDetail{padding:15px}.detailMainImage{height:350px}.detailInfo h1{font-size:25px}}


/* ===== TEMA AZUL + CATEGORIAS CON IMAGEN ===== */
body{background:#eef5ff;color:#082d5c}
header{background:#075fc5}
.mini{background:#043f91}
nav{background:#064da8}
.section h2{color:#064da8;font-weight:800}
.categoriesSection{background:#e8f1ff;border-radius:14px;margin-top:18px;margin-bottom:18px;padding-top:28px;padding-bottom:28px}
.cats{grid-template-columns:repeat(4,1fr);gap:18px}
.catCard{position:relative;min-height:180px;padding:0!important;overflow:hidden;border:0!important;background:#075fc5!important;color:#fff;border-radius:12px!important;box-shadow:0 5px 16px #075fc52b;display:flex;flex-direction:column;justify-content:flex-end;text-align:left}
.catCard img{width:100%;height:135px;object-fit:contain;background:#fff;display:block}
.catCard b{padding:13px 14px;background:#075fc5;font-size:15px}
.catPlaceholder{height:135px;display:grid;place-items:center;background:#dceaff;color:#075fc5;font-size:52px}
.catCard:hover{transform:translateY(-2px);box-shadow:0 8px 20px #075fc53d}
.product{border:2px solid #d7e6fa;box-shadow:0 4px 14px #075fc514}
.product h3,.detailInfo h1,.detailDescription h2{color:#073e83}
.productArrows button{color:#075fc5;border-color:#9fc2ef}
.productDetailPage{background:#eef5ff}
.detailFooter{background:#064da8;color:#fff;padding:28px 4%;display:flex;align-items:center;justify-content:center;gap:18px}
.detailFooter img{max-width:220px;max-height:60px;object-fit:contain;filter:brightness(0) invert(1)}
.detailFooter small{color:#fff}
.categoryAdminList{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:18px}
.categoryAdminRow{display:grid;grid-template-columns:130px 1fr auto;gap:12px;align-items:center;background:#f4f8ff;border:1px solid #d7e6fa;border-radius:10px;padding:10px}
.categoryAdminRow>img,.categoryNoImage{width:130px;height:95px;object-fit:contain;background:#fff;border-radius:7px}
.categoryNoImage{display:grid;place-items:center;color:#71839a;font-size:12px}
.categoryAdminRow form:nth-child(2){display:block}
@media(max-width:900px){.cats{grid-template-columns:repeat(2,1fr)}.categoryAdminList{grid-template-columns:1fr}}
@media(max-width:600px){.cats{grid-template-columns:1fr}.catCard{min-height:190px}.catCard img,.catPlaceholder{height:145px}.categoryAdminRow{grid-template-columns:1fr}.categoryAdminRow>img,.categoryNoImage{width:100%;height:150px}}
