/*
Theme Name: Siagro Peru Fresa
Theme URI: https://www.siagroperu.com
Author: TecFreshYoomda
Author URI: https://www.tecfreshyoomda.com
Description: Tema one-page para SIAGRO PERU (insumos agricolas) basado en el diseno rojo fresa. Incluye home con hero, categorias, los mas vendidos y plantillas WooCommerce (shop, producto, carrito, checkout, mi cuenta).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siagro-peru-fresa
Tags: e-commerce, one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

:root{
  --rojo-oscuro:#b43042;
  --rojo:#e13c52;
  --rojo-claro:#ffffff;
  --gris-oscuro:#3a3b3c;
  --gris:#58595b;
  --gris-medio:#8a8c8e;
  --gris-claro:#f5f1ee;
  --acento:#f2a71b;
  --texto:#2b2b2b;
  --borde:#e8e2e0;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
html{overflow-x:hidden;}
body{font-family:'Segoe UI',Arial,sans-serif;color:var(--texto);background:#fff;line-height:1.5;}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
.container{max-width:1180px;margin:0 auto;padding:0 20px;}
svg{display:block;}

/* ===== LOGO ===== */
.logo-mark{display:inline-flex;align-items:center;gap:11px;}
.logo-mark .mark{width:auto;height:46px;flex:none;object-fit:contain;}
.logo-mark .word{display:flex;flex-direction:column;line-height:1;}
.logo-mark .word .t1{font-size:22px;font-weight:800;letter-spacing:1px;color:var(--rojo);}
.logo-mark .word .t2{font-size:22px;font-weight:800;letter-spacing:1px;color:var(--gris);}
.logo-mark .word .sub{font-size:9px;letter-spacing:3px;color:var(--gris-medio);font-weight:600;margin-top:3px;}

/* ===== SPLASH ===== */
#splash{
  position:fixed;inset:0;z-index:9999;
  background:#ffffff;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  animation:splashOut .8s ease-in-out 2.7s forwards;
}
.splash-logo-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:220px;height:220px;}
.ring{position:absolute;width:172px;height:172px;border-radius:50%;border:3px solid var(--rojo);border-top-color:transparent;border-bottom-color:transparent;animation:spin 1.6s linear infinite;opacity:.5;}
.ring2{position:absolute;width:206px;height:206px;border-radius:50%;border:1.5px dashed var(--acento);animation:spin 3.4s linear infinite reverse;opacity:.55;}
.splash-mark{width:130px;height:auto;position:relative;z-index:2;object-fit:contain;animation:logoPop 1s cubic-bezier(.34,1.56,.64,1) both, floaty 3s ease-in-out 1.1s infinite;filter:drop-shadow(0 8px 20px rgba(225,60,82,.28));}
.splash-word{margin-top:22px;font-size:26px;font-weight:800;letter-spacing:2px;opacity:0;animation:fadeUp .6s ease 1s forwards;}
.splash-word .r{color:var(--rojo);}
.splash-word .g{color:var(--gris);}
.splash-sub{font-size:11px;letter-spacing:4px;color:var(--gris-medio);font-weight:600;text-transform:uppercase;opacity:0;animation:fadeUp .6s ease 1.25s forwards;margin-top:4px;}
.dots{margin-top:16px;}
.dots span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--rojo);margin:0 3px;animation:bounce 1.2s ease-in-out infinite;}
.dots span:nth-child(2){animation-delay:.15s;background:var(--acento);}
.dots span:nth-child(3){animation-delay:.3s;background:var(--gris);}

@keyframes logoPop{0%{transform:scale(.3) rotate(-8deg);opacity:0;}60%{transform:scale(1.08) rotate(2deg);opacity:1;}100%{transform:scale(1) rotate(0deg);opacity:1;}}
@keyframes floaty{0%,100%{transform:translateY(0);}50%{transform:translateY(-7px);}}
@keyframes spin{to{transform:rotate(360deg);}}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
@keyframes bounce{0%,80%,100%{transform:translateY(0);opacity:.5;}40%{transform:translateY(-8px);opacity:1;}}
@keyframes splashOut{0%{opacity:1;visibility:visible;}100%{opacity:0;visibility:hidden;pointer-events:none;}}

#site{animation:siteIn .8s ease .3s both;}
@keyframes siteIn{from{opacity:0;}to{opacity:1;}}

/* Top bar */
.topbar{background:var(--gris-oscuro);color:#fff;font-size:13px;}
.topbar .container{display:flex;justify-content:space-between;align-items:center;height:34px;flex-wrap:wrap;gap:6px;position:relative;}
.topbar span{opacity:.9;display:inline-flex;align-items:center;gap:6px;}
.topbar span.tb-mail{position:absolute;left:50%;transform:translateX(-50%);gap:18px;margin:0;}
.topbar .tb-mail .tb-mail-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}

/* Header */
header.site-header{border-bottom:1px solid var(--borde);position:sticky;top:0;background:#fff;z-index:50;}
.header-row{display:flex;align-items:center;justify-content:space-between;height:80px;gap:24px;}
.search{flex:1;max-width:480px;display:flex;border:1px solid var(--borde);border-radius:6px;position:relative;overflow:visible;}
.search form{display:flex;flex:1;margin:0;border-radius:6px;overflow:hidden;}
.search input{border:none;flex:1;padding:10px 14px;font-size:14px;outline:none;}
.search button{background:var(--rojo);color:#fff;border:none;padding:0 16px;cursor:pointer;display:flex;align-items:center;}
.header-actions{display:flex;align-items:center;gap:16px;font-size:14px;color:var(--gris);}
.header-actions .act{display:inline-flex;align-items:center;gap:6px;}
.header-actions .act a{display:inline-flex;align-items:center;gap:6px;color:var(--gris);}
.header-actions .act a:hover{color:var(--rojo);}
.cart-btn{display:flex;align-items:center;gap:6px;background:var(--rojo-claro);padding:8px 14px;border-radius:6px;color:var(--rojo-oscuro);font-weight:600;}
.cart-btn a{display:inline-flex;align-items:center;gap:6px;color:var(--rojo-oscuro);}
.cart-btn .count{background:var(--rojo);color:#fff;border-radius:50%;font-size:11px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;}

/* Nav */
nav.main-nav{background:var(--rojo);}
nav.main-nav ul{list-style:none;display:flex;flex-wrap:wrap;}
nav.main-nav ul li a{display:block;color:#fff;padding:12px 18px;font-size:14px;font-weight:600;white-space:nowrap;}
nav.main-nav ul li a:hover,nav.main-nav ul li.current-menu-item a{background:var(--rojo-oscuro);}
nav.main-nav ul li ul.sub-menu{position:absolute;background:var(--rojo-oscuro);min-width:200px;display:none;z-index:60;}
nav.main-nav ul li:hover ul.sub-menu{display:block;}
nav.main-nav ul li ul.sub-menu a{padding:10px 16px;}
.nav-wrap{position:relative;}

/* Hero */
.hero{background:linear-gradient(120deg,var(--rojo-claro) 55%,#fff 55%);}
.hero .container{display:flex;align-items:center;gap:40px;padding:60px 20px;}
.hero-text{flex:1;}
.hero-text .tag{color:var(--rojo);font-weight:700;font-size:14px;text-transform:uppercase;letter-spacing:.5px;}
.hero-text h1{font-size:36px;color:var(--gris-oscuro);margin:12px 0 16px;line-height:1.2;}
.hero-text p{color:var(--gris-medio);font-size:15px;margin-bottom:24px;max-width:460px;}
.btn-primary{display:inline-block;background:var(--rojo);color:#fff;font-weight:700;padding:13px 26px;border-radius:6px;font-size:15px;transition:.2s;}
.btn-primary:hover{background:var(--rojo-oscuro);}
.hero-art{flex:1;display:flex;align-items:center;justify-content:center;}
.hero-scene{position:relative;width:360px;height:360px;max-width:100%;}
.hero-scene .halo{position:absolute;inset:24px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#ffffff,#f6f7f9);}
.hero-scene .halo-ring{position:absolute;inset:6px;border-radius:50%;border:2px dashed rgba(200,200,205,.45);animation:spin 26s linear infinite;}
.hero-scene .center-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.hero-scene .center-art svg{width:210px;height:210px;filter:drop-shadow(0 12px 22px rgba(180,48,66,.18));}
.hero-bubble{position:absolute;width:64px;height:64px;border-radius:50%;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.1);display:flex;align-items:center;justify-content:center;animation:floaty 4s ease-in-out infinite;}
.hero-bubble svg{width:30px;height:30px;color:var(--rojo);}
.hero-bubble.b1{top:6px;left:38px;animation-delay:0s;}
.hero-bubble.b2{top:30px;right:6px;animation-delay:.8s;background:var(--rojo);}
.hero-bubble.b2 svg{color:#fff;}
.hero-bubble.b3{bottom:40px;left:0;animation-delay:1.4s;}
.hero-bubble.b4{bottom:8px;right:44px;animation-delay:2s;background:var(--acento);}
.hero-bubble.b4 svg{color:#fff;}

/* Section */
section{padding:50px 0;}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;}
.section-title h2{font-size:24px;color:var(--gris-oscuro);border-left:4px solid var(--rojo);padding-left:12px;}
.section-title a{color:var(--rojo);font-weight:600;font-size:14px;}
.section-title a:hover{color:var(--rojo-oscuro);}

/* Category chips */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;}
.cat-card{border:1px solid var(--borde);border-radius:12px;padding:22px 12px;text-align:center;transition:.2s;cursor:pointer;background:#fff;display:block;}
.cat-card:hover{border-color:var(--rojo);box-shadow:0 6px 16px rgba(225,60,82,.14);transform:translateY(-3px);}
.cat-card .ico{width:40px;height:40px;margin:0 auto 12px;color:var(--rojo);}
.cat-card .thumb-img{width:56px;height:56px;border-radius:50%;object-fit:cover;margin:0 auto 12px;border:2px solid var(--rojo-claro);}
.cat-card span{font-size:13px;font-weight:600;color:var(--texto);display:block;}

/* Products */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.product-card{border:1px solid var(--borde);border-radius:12px;overflow:hidden;background:#fff;transition:.2s;position:relative;}
.product-card:hover{box-shadow:0 8px 22px rgba(0,0,0,.09);transform:translateY(-3px);}
.product-card .thumb{aspect-ratio:1/1;background:var(--rojo-claro);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;}
.product-card .thumb svg{width:64px;height:64px;color:var(--rojo);}
.product-card .info{padding:14px;}
.product-card .name{font-size:14px;font-weight:600;min-height:40px;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.product-card .price{color:var(--rojo);font-weight:700;font-size:15px;margin-bottom:10px;}
.product-card .price del{color:var(--gris-medio);font-weight:400;font-size:13px;margin-right:6px;}
.product-card .add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;background:var(--gris-claro);color:var(--gris-oscuro);border:none;padding:9px;border-radius:6px;font-weight:600;font-size:13px;cursor:pointer;transition:.2s;font-family:inherit;}
.product-card .add:hover{background:var(--rojo);color:#fff;}
.product-card .add svg{width:15px;height:15px;}
.product-card .add.added{background:#27ae60;color:#fff;}

.band{background:var(--gris-claro);}

/* Trust bar */
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.trust .item{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--borde);border-radius:12px;background:#fff;}
.trust .item svg{width:34px;height:34px;color:var(--rojo);flex:none;}
.trust .item b{display:block;font-size:14px;color:var(--gris-oscuro);}
.trust .item small{color:var(--gris-medio);font-size:12px;}

/* Content / pages */
.entry-content{padding:40px 0;}
.entry-content h1,.entry-content h2,.entry-content h3{margin:20px 0 12px;color:var(--gris-oscuro);}
.entry-content h1{font-size:28px;}
.entry-content h2{font-size:22px;border-left:4px solid var(--rojo);padding-left:10px;}
.entry-content p{margin-bottom:14px;}
.entry-content ul,.entry-content ol{margin:0 0 14px 22px;}
.entry-content li{margin-bottom:6px;}

/* Footer */
footer{background:var(--gris-oscuro);color:#efefef;padding:50px 0 20px;font-size:14px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:30px;margin-bottom:30px;}
footer h3{color:#fff;font-size:16px;margin-bottom:16px;border-bottom:2px solid var(--rojo);display:inline-block;padding-bottom:6px;}
footer ul{list-style:none;}
footer li{margin-bottom:8px;opacity:.85;display:flex;align-items:center;gap:8px;}
footer li a:hover{text-decoration:underline;color:var(--acento);}
footer li svg{width:15px;height:15px;flex:none;opacity:.8;}
footer .social{display:flex;gap:10px;margin-top:14px;}
footer .social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:.2s;}
footer .social a:hover{background:var(--rojo);}
footer .social svg{width:16px;height:16px;color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:18px;text-align:center;opacity:.75;font-size:13px;}

/* Whatsapp floating */
.wa-float{position:fixed;bottom:22px;right:22px;background:#25D366;color:#fff;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);z-index:100;animation:fadeUp .6s ease 3s both;}
.wa-float svg{width:30px;height:30px;color:#fff;}

/* ===== WOOCOMMERCE GENERAL ===== */
.woocommerce .products ul,.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;list-style:none;margin:0;padding:0;}
.woocommerce ul.products li.product{border:1px solid var(--borde);border-radius:12px;overflow:hidden;background:#fff;transition:.2s;text-align:center;position:relative;padding:0;width:auto;float:none;margin:0;}
.woocommerce ul.products li.product:hover{box-shadow:0 8px 22px rgba(0,0,0,.09);transform:translateY(-3px);}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:cover;margin:0;background:var(--rojo-claro);}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title{font-size:14px;font-weight:600;padding:14px 14px 6px;min-height:40px;color:var(--texto);line-height:1.35;}
.woocommerce ul.products li.product .price{color:var(--rojo);font-weight:700;font-size:15px;padding:0 14px 10px;}
.woocommerce ul.products li.product .button{background:var(--gris-claro);color:var(--gris-oscuro);border-radius:0;padding:9px 12px;font-weight:600;font-size:13px;display:block;text-align:center;transition:.2s;width:100%;}
.woocommerce ul.products li.product .button:hover{background:var(--rojo);color:#fff;}
.woocommerce ul.products li.product .add_to_cart_button.added{background:#27ae60;color:#fff;}
.woocommerce ul.products li.product .onsale{background:var(--acento);color:#fff;border-radius:0 0 0 10px;padding:4px 12px;position:absolute;top:0;right:0;z-index:2;font-weight:700;font-size:12px;line-height:1.6;min-height:0;margin:0;}

.woocommerce .products-header{padding:24px 0 10px;}
.woocommerce .woocommerce-result-count{color:var(--gris-medio);font-size:13px;margin-bottom:16px;}
.woocommerce .woocommerce-ordering select{padding:8px 12px;border:1px solid var(--borde);border-radius:6px;font-size:14px;}
.woocommerce .woocommerce-pagination{margin:30px 0 10px;text-align:center;}
.woocommerce .woocommerce-pagination .page-numbers{display:inline-flex;gap:6px;list-style:none;}
.woocommerce .woocommerce-pagination .page-numbers li a,.woocommerce .woocommerce-pagination .page-numbers li span{border:1px solid var(--borde);padding:6px 12px;border-radius:6px;color:var(--gris);}
.woocommerce .woocommerce-pagination .page-numbers li span.current,.woocommerce .woocommerce-pagination .page-numbers li a:hover{background:var(--rojo);color:#fff;border-color:var(--rojo);}

/* Single product */
.woocommerce div.product .product_title{font-size:26px;color:var(--gris-oscuro);margin-bottom:12px;}
.woocommerce div.product .price{color:var(--rojo);font-size:22px;font-weight:700;margin:10px 0;}
.woocommerce div.product p.price del,.woocommerce div.product span.price del{color:var(--gris-medio);font-weight:400;}
.woocommerce div.product .single_add_to_cart_button{background:var(--rojo);color:#fff;padding:13px 26px;border:none;border-radius:6px;font-weight:700;font-size:15px;cursor:pointer;transition:.2s;}
.woocommerce div.product .single_add_to_cart_button:hover{background:var(--rojo-oscuro);}
.woocommerce div.product form.cart .wa-order-button.single_add_to_cart_button,.woocommerce div.product .cart .wa-order-button.single_add_to_cart_button{background:var(--rojo) !important;color:#fff !important;}
.woocommerce div.product form.cart .wa-order-button.single_add_to_cart_button:hover,.woocommerce div.product .cart .wa-order-button.single_add_to_cart_button:hover{background:var(--rojo-oscuro) !important;}
.woocommerce div.product button.single_add_to_cart_button.alt{background:var(--rojo);color:#fff;}
.woocommerce div.product button.single_add_to_cart_button.alt:hover{background:var(--rojo-oscuro);}
.woocommerce div.product form.cart{margin:16px 0;}
.woocommerce div.product form.cart .quantity input{width:70px;padding:10px;border:1px solid var(--borde);border-radius:6px;font-size:15px;}
.woocommerce div.product div.woocommerce-product-gallery{margin-bottom:20px;}
.woocommerce div.product .woocommerce-tabs ul.tabs{margin:0 0 20px;list-style:none;display:flex;gap:6px;border-bottom:2px solid var(--borde);padding:0;}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:10px 18px;color:var(--gris);font-weight:600;}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--rojo);border-bottom:2px solid var(--rojo);margin-bottom:-2px;}
.woocommerce div.product .woocommerce-tabs .panel{border:1px solid var(--borde);padding:20px;border-radius:0 0 10px 10px;}
.woocommerce div.product .related.products{margin-top:40px;}
.woocommerce div.product .related.products>h2{font-size:22px;color:var(--gris-oscuro);border-left:4px solid var(--rojo);padding-left:12px;margin-bottom:20px;}

/* Cart */
.woocommerce table.shop_table{border:1px solid var(--borde);border-collapse:collapse;width:100%;margin-bottom:20px;}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border:1px solid var(--borde);padding:12px;text-align:left;}
.woocommerce table.shop_table thead th{background:var(--gris-claro);font-weight:600;}
.woocommerce table.shop_table a{color:var(--rojo);}
.woocommerce table.shop_table a:hover{color:var(--rojo-oscuro);}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--rojo);color:#fff;padding:12px 22px;border:none;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;transition:.2s;}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--rojo-oscuro);color:#fff;}
.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--gris-oscuro);}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--gris);}
.woocommerce .cart_totals h2{font-size:20px;color:var(--gris-oscuro);margin-bottom:12px;}
.woocommerce .cart-empty{font-size:16px;color:var(--gris);padding:40px 0;text-align:center;}

/* Checkout & forms */
.woocommerce form.checkout h3{font-size:18px;color:var(--gris-oscuro);margin:20px 0 10px;}
.woocommerce form .form-row{margin-bottom:14px;}
.woocommerce form .form-row label{display:block;margin-bottom:4px;font-weight:600;font-size:14px;color:var(--gris-oscuro);}
.woocommerce form .form-row input,.woocommerce form .form-row textarea,.woocommerce form .form-row select{width:100%;padding:10px 12px;border:1px solid var(--borde);border-radius:6px;font-size:14px;font-family:inherit;}
.woocommerce form .form-row input:focus{outline:none;border-color:var(--rojo);}
.woocommerce-info,.woocommerce-message,.woocommerce-error{border-top-color:var(--rojo);padding:14px 16px;margin-bottom:16px;background:var(--rojo-claro);color:var(--gris-oscuro);}
.woocommerce-info a,.woocommerce-message a{color:var(--rojo);font-weight:600;}
.woocommerce-error{background:#fff;border-top-color:var(--rojo-oscuro);}
.woocommerce-notice{list-style:none;padding-left:18px;margin:0;}

/* My account */
.woocommerce-account .woocommerce{max-width:520px;margin:40px auto;}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:8px 16px;background:var(--gris-claro);border-radius:6px;color:var(--gris);font-size:14px;}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--rojo);color:#fff;}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb{margin:14px 0;color:var(--gris-medio);font-size:13px;}
.woocommerce .woocommerce-breadcrumb a{color:var(--rojo);}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--rojo-oscuro);}

/* ---- Tablet ---- */
@media(max-width:900px){
  .header-row{flex-wrap:wrap;height:auto;padding:14px 0;gap:14px;}
  .logo-mark{order:1;}
  .header-actions{order:2;margin-left:auto;}
  .search{order:3;max-width:100%;flex-basis:100%;}
  .hero{background:var(--rojo-claro);}
  .hero .container{flex-direction:column;text-align:center;padding:44px 20px;}
  .hero-text p{margin-left:auto;margin-right:auto;}
  .cat-grid{grid-template-columns:repeat(3,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr);}
  .woocommerce ul.products li.product{width:100% !important;max-width:100% !important;float:none !important;margin:0 !important;}
  .trust{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

/* ---- Phone ---- */
@media(max-width:560px){
  .container{padding:0 14px;}
  section{padding:34px 0;}
  .topbar{font-size:11px;}
  .topbar .container{height:auto;padding:7px 14px;flex-direction:column;align-items:flex-start;gap:3px;}
  .topbar span:last-child{display:none;}
  .topbar span.tb-mail{position:static;transform:none;align-self:center;gap:14px;}
  .header-row{padding:12px 0;gap:10px;}
  .logo-mark .mark{height:38px;}
  .logo-mark .word .t1,.logo-mark .word .t2{font-size:18px;}
  .logo-mark .word .sub{font-size:8px;letter-spacing:2px;}
  .header-actions{gap:12px;font-size:0;}
  .cart-btn{font-size:12px;padding:8px 10px;}
  .search input{padding:9px 12px;font-size:13px;}
  nav.main-nav ul{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  nav.main-nav ul::-webkit-scrollbar{display:none;}
  nav.main-nav a{padding:11px 14px;font-size:13px;}
  .hero-text h1{font-size:27px;}
  .hero-text p{font-size:14px;}
  .btn-primary{width:100%;text-align:center;}
  .hero-scene{width:250px;height:250px;margin:0 auto;}
  .hero-scene .center-art svg{width:150px;height:150px;}
  .hero-bubble{width:50px;height:50px;}
  .hero-bubble svg{width:24px;height:24px;}
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .cat-card{padding:18px 10px;}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:14px;}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:14px;}
  .woocommerce ul.products li.product{width:100% !important;max-width:100% !important;float:none !important;margin:0 !important;}
  .product-card .name{font-size:13px;min-height:36px;}
  .trust{grid-template-columns:1fr;}
  .section-title h2{font-size:20px;}
  .footer-grid{grid-template-columns:1fr;gap:24px;}
  .splash-logo-wrap{width:180px;height:180px;}
  .splash-mark{width:104px;}
  .ring{width:140px;height:140px;}
  .ring2{width:168px;height:168px;}
  .splash-word{font-size:22px;}
  .wa-float{width:50px;height:50px;bottom:16px;right:16px;}
  .wa-float svg{width:26px;height:26px;}
}

/* Contacto: centrar icono circular (fix emoticono descentrado) */
.c-icon{display:grid !important;place-items:center !important;line-height:1;text-align:center;}
.c-icon img{vertical-align:middle;}

/* Contacto: grid de logos de marcas (reemplaza chips de texto) */
.brand-grid{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:34px;align-items:center;}
.brand-grid .brand-item{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--borde);border-radius:12px;padding:12px 16px;height:64px;min-width:110px;flex:0 0 auto;box-sizing:border-box;}
.brand-grid .brand-item img{max-height:38px;max-width:120px;width:auto;height:auto;object-fit:contain;}
@media(max-width:768px){.brand-grid{gap:8px;}.brand-grid .brand-item{padding:10px 12px;height:56px;min-width:96px;}.brand-grid .brand-item img{max-height:30px;max-width:96px;}}
/* Contacto: stats grid responsive (2 col en movil) */
.stats-grid{grid-template-columns:repeat(4,1fr);}
@media(max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr) !important;gap:12px !important;}}

/* ===== MEJORAS VISUALES PROFESIONALES (07-Ago-2026) ===== */
/* D - Tipografia Inter (cargada via functions.php) */
body{font-family:'Inter','Segoe UI',Arial,sans-serif;}

/* C - Header con sombra al scrollear + barra de progreso */
header.site-header{transition:box-shadow .3s ease;}
header.site-header.scrolled{box-shadow:0 6px 22px rgba(0,0,0,.1);}
#scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--rojo),var(--acento));z-index:5000;transition:width .12s linear;}

/* B - Reveal on scroll (solo con JS activo, clase .js en <html>) */
.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease;}
.js .reveal.in{opacity:1;transform:none;}

/* A - Micro-interacciones */
/* 1. Zoom de imagen en cards */
.product-card .thumb img,
.woocommerce ul.products li.product a img{transition:transform .45s ease;}
.product-card:hover .thumb img,
.woocommerce ul.products li.product:hover a img{transform:scale(1.07);}
/* 2. Lift + sombra en botones */
.btn-primary,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce div.product .single_add_to_cart_button{
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  box-shadow:0 4px 12px rgba(225,60,82,.18);
}
.btn-primary:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce div.product .single_add_to_cart_button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(225,60,82,.32);
}
/* 3. Pop al agregar al carrito */
.add_to_cart_button.added,.product-card .add.added{animation:addedPop .45s ease;}
@keyframes addedPop{0%{transform:scale(1);}40%{transform:scale(1.1);}100%{transform:scale(1);}}
/* 4. Subrayado animado en nav */
nav.main-nav ul li a{position:relative;}
nav.main-nav ul li a::after{content:'';position:absolute;left:18px;right:18px;bottom:6px;height:2px;background:#fff;transform:scaleX(0);transform-origin:left;transition:transform .28s ease;}
nav.main-nav ul li a:hover::after,
nav.main-nav ul li.current-menu-item a::after{transform:scaleX(1);}

/* ============================================================
   FORMULARIO DE CONTACTO (CF7) - TEMA PROFESIONAL
   ============================================================ */
.theme-contact-form{max-width:100%;}
.theme-contact-form .cf-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;}
.theme-contact-form p{margin:0 0 20px;}
.theme-contact-form label{display:block;font-size:13.5px;font-weight:600;color:#3a3b3c;letter-spacing:.01em;margin-bottom:7px;}
.theme-contact-form .wpcf7-form-control-wrap{display:block;}
.theme-contact-form input[type="text"],
.theme-contact-form input[type="email"],
.theme-contact-form input[type="tel"],
.theme-contact-form select,
.theme-contact-form textarea{
  width:100%;box-sizing:border-box;border:1.5px solid #dde2ea;border-radius:10px;
  padding:12px 14px;font-family:'Inter',sans-serif;font-size:14.5px;color:#2a2b2c;
  background:#fff;transition:border-color .2s, box-shadow .2s;outline:none;
}
.theme-contact-form textarea{resize:vertical;min-height:140px;line-height:1.55;}
.theme-contact-form input::placeholder,
.theme-contact-form textarea::placeholder{color:#9aa3af;}
.theme-contact-form select{appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239aa3af' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;cursor:pointer;}
.theme-contact-form input:focus,
.theme-contact-form select:focus,
.theme-contact-form textarea:focus{
  border-color:#e13c52;box-shadow:0 0 0 3px rgba(225,60,82,.14);background:#fff;
}
.theme-contact-form .cf-submit{margin-top:6px;}
.theme-contact-form input.wpcf7-submit,
.theme-contact-form .wpcf7-submit{
  background:#e13c52;color:#fff;border:none;border-radius:10px;cursor:pointer;
  font-family:'Inter',sans-serif;font-size:15px;font-weight:700;letter-spacing:.02em;
  padding:13px 34px;transition:background .2s, transform .15s, box-shadow .2s;
  box-shadow:0 4px 12px rgba(225,60,82,.25);width:auto;height:auto;
}
.theme-contact-form input.wpcf7-submit:hover{background:#b43042;transform:translateY(-2px);box-shadow:0 8px 18px rgba(225,60,82,.3);}
.theme-contact-form input.wpcf7-submit:active{transform:translateY(0);}
.theme-contact-form .wpcf7-response-output{margin:16px 0 0;padding:12px 16px;border-radius:10px;border:1.5px solid;font-size:14px;}
.theme-contact-form .wpcf7-form.invalid .wpcf7-response-output{border-color:#e13c52;color:#c0392b;background:#fff5f5;}
.theme-contact-form .wpcf7-form.sent .wpcf7-response-output{border-color:#27ae60;color:#1e7e46;background:#f0faf2;}
.theme-contact-form span.wpcf7-not-valid-tip{color:#d93025;font-size:12.5px;margin-top:5px;display:block;}
.theme-contact-form .wpcf7-form-control.wpcf7-not-valid{border-color:#d93025;}
.theme-contact-form .wpcf7-spinner{position:relative;top:5px;left:12px;vertical-align:middle;}
@media(max-width:640px){.theme-contact-form .cf-grid-2{grid-template-columns:1fr;gap:0;}}

/* Contacto: colapsar grid 2 col en movil (inline style override) */
@media(max-width:820px){
  div[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr !important;}
  .theme-contact-form .cf-grid-2{grid-template-columns:1fr;}
}

/* Busqueda: "¿Quisiste decir...?" */
.siagro-suggest-box{margin:18px 0 30px;padding:20px;border:1.5px dashed rgba(225,60,82,.45);border-radius:14px;background:var(--rojo-claro,#fff);}
.siagro-suggest-title{margin:0 0 12px;font-weight:700;font-size:16px;color:var(--gris-oscuro,#3a3b3c);}
.siagro-suggest-chips{display:flex;flex-wrap:wrap;gap:10px;}
.siagro-suggest-chip{display:inline-block;padding:8px 14px;border-radius:999px;background:var(--rojo,#e13c52);color:#fff !important;text-decoration:none !important;font-size:13.5px;font-weight:600;transition:background .18s,transform .18s;}
.siagro-suggest-chip:hover{background:var(--rojo-oscuro,#b43042);transform:translateY(-1px);}
.siagro-suggest-subtitle{margin:16px 0 10px;font-weight:700;font-size:14px;color:var(--gris-oscuro,#3a3b3c);}
.siagro-suggest-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.siagro-suggest-card{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid var(--borde,#e5e5e5);border-radius:10px;padding:10px;background:#fff;text-decoration:none !important;transition:.18s;}
.siagro-suggest-card:hover{box-shadow:0 6px 16px rgba(0,0,0,.1);transform:translateY(-2px);}
.siagro-suggest-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;background:var(--rojo-claro,#fff);}
.siagro-suggest-name{font-size:12.5px;font-weight:600;color:var(--texto,#3a3b3c);margin-top:8px;line-height:1.3;min-height:32px;}
.siagro-suggest-pr{font-size:13.5px;font-weight:700;color:var(--rojo,#e13c52);margin-top:4px;}
@media(max-width:900px){.siagro-suggest-cards{grid-template-columns:repeat(2,1fr);}}
@media(max-width:480px){.siagro-suggest-cards{grid-template-columns:repeat(2,1fr);gap:8px;}}

/* ===== AUTOCOMPLETE 09-Ago: dropdown bajo el buscador del header ===== */
.siagro-ac-box{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--borde);border-radius:8px;box-shadow:0 14px 34px rgba(0,0,0,.16);z-index:9999;overflow:hidden;max-height:420px;overflow-y:auto;}
.siagro-ac-row{display:flex;align-items:center;gap:10px;padding:8px 12px;text-decoration:none;color:var(--gris-oscuro);border-bottom:1px solid rgba(0,0,0,.06);transition:background .15s;}
.siagro-ac-row:last-child{border-bottom:0;}
.siagro-ac-row:hover,.siagro-ac-sel{background:var(--rojo-claro);}
.siagro-ac-row img{width:42px;height:42px;object-fit:contain;border-radius:6px;background:#fff;border:1px solid var(--borde);flex:0 0 42px;}
.siagro-ac-name{flex:1;font-size:13px;line-height:1.35;}
.siagro-ac-price{font-weight:700;color:var(--rojo);font-size:13px;white-space:nowrap;}
.siagro-ac-dym{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:var(--rojo-claro);border-bottom:1px solid rgba(0,0,0,.06);text-decoration:none;}
.siagro-ac-dym-label{font-size:13px;color:var(--gris-oscuro);}
.siagro-ac-dym-label b{color:var(--rojo);}
.siagro-ac-dym-go{font-size:12px;color:var(--rojo);font-weight:600;white-space:nowrap;}
.siagro-ac-dym:hover{background:var(--rojo-claro);}

/* ============ MEJORAS VISUALES V5 ============ */

/* --- BADGES --- */
.badge{display:inline-block;padding:3px 8px;border-radius:4px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;line-height:1}
.badge-new{background:#2b7de9;color:#fff}
.badge-offer{background:var(--rojo);color:#fff}
.badge-stock{background:#22c55e;color:#fff}
.product-card .badge-row,.woocommerce ul.products li.product .badge-row{display:flex;gap:4px;margin-bottom:6px;flex-wrap:wrap}

/* --- BACK TO TOP --- */
#back-to-top{position:fixed;bottom:90px;right:20px;width:44px;height:44px;background:var(--rojo);color:#fff;border:none;border-radius:50%;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(20px);transition:all .3s ease;z-index:999;display:flex;align-items:center;justify-content:center;font-size:1.2rem;box-shadow:0 2px 8px rgba(0,0,0,.15)}
#back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
#back-to-top:hover{background:var(--rojo-oscuro);transform:translateY(-2px)}

/* --- RESPONSIVE SPECS TABLES --- */
.woocommerce table.specs-table,.specs-table{width:100%;border-collapse:collapse;margin:1rem 0}
.specs-table td,.specs-table th{padding:8px 12px;border:1px solid var(--borde,#ddd);text-align:left}
.specs-table th{background:var(--rojo-claro);font-weight:600;width:40%}
@media(max-width:600px){
  .specs-table,.specs-table tbody,.specs-table tr,.specs-table td,.specs-table th{display:block;width:100%}
  .specs-table tr{margin-bottom:8px;border:1px solid var(--borde,#ddd);border-radius:6px}
  .specs-table td{padding:6px 12px;border:none;border-bottom:1px solid #eee}
  .specs-table td:last-child{border-bottom:none}
  .specs-table th{background:var(--rojo);color:#fff;padding:8px 12px;border-radius:6px 6px 0 0}
  .specs-table td::before{content:attr(data-label);font-weight:600;display:block;color:var(--rojo);font-size:.75rem;margin-bottom:2px;text-transform:uppercase}
}
/* ===== BOTON COTIZAR ===== */
.siagro-cotizar-btn{display:inline-block;margin:10px 0 0 0;padding:12px 22px;background:#25d366;color:#fff;border-radius:8px;font-weight:600;text-decoration:none;transition:all .2s}
.siagro-cotizar-btn:hover{background:#1eb858;transform:translateY(-1px);box-shadow:0 4px 14px rgba(37,211,102,.35);color:#fff}
