/*
Theme Name: Agroinsur AGRS
Theme URI: https://agroinsur.example/
Author: OpenAI
Description: Tema WordPress para Agroinsumos Del Sur AGRS S.A. Optimizado para catálogo de agroinsumos y WooCommerce.
Version: 2.5.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: agroinsur-agrs
*/

:root{
  --ag-green:#39a844;
  --ag-green-dark:#247d32;
  --ag-green-deep:#155c29;
  --ag-green-soft:#edf8ee;
  --ag-orange:#ed6b2c;
  --ag-orange-soft:#fff0e9;
  --ag-ink:#1d2b20;
  --ag-muted:#657267;
  --ag-line:#dfe9e0;
  --ag-bg:#f6f9f5;
  --ag-white:#fff;
  --ag-radius:20px;
  --ag-shadow:0 14px 40px rgba(26,73,38,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ag-bg);color:var(--ag-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 34px));margin-inline:auto}

.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--ag-line)}
.header-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.site-brand{display:flex;align-items:center;gap:12px;min-width:240px}
.brand-logo-image{width:auto;height:62px;max-width:290px;object-fit:contain;background:transparent!important}
.agro-brand-copy{display:flex;flex-direction:column;line-height:1}
.agro-brand-copy strong{font-size:31px;line-height:.95;font-weight:900;letter-spacing:-.055em;color:var(--ag-green);text-shadow:0 1px 1px rgba(0,0,0,.08)}
.agro-brand-copy small{margin-top:7px;font-size:8.5px;font-weight:900;letter-spacing:.045em;color:#202720;white-space:nowrap}
.agro-brand-mark{position:relative;display:inline-block;width:55px;height:48px;flex:0 0 55px}
.agro-brand-mark .leaf{position:absolute;display:block;width:24px;height:34px;border-radius:80% 10% 80% 10%;box-shadow:0 2px 3px rgba(0,0,0,.15);border:2px solid rgba(27,116,48,.65)}
.agro-brand-mark .leaf-a{left:5px;top:10px;background:#3cab45;transform:rotate(-42deg)}
.agro-brand-mark .leaf-b{left:17px;top:0;background:#45b84e;transform:rotate(-4deg)}
.agro-brand-mark .leaf-c{right:2px;top:10px;background:var(--ag-orange);border-color:#d94d22;transform:rotate(39deg)}
.agro-brand-mark:after{content:"";position:absolute;width:30px;height:4px;background:var(--ag-green-dark);left:13px;bottom:2px;border-radius:50%;transform:rotate(-6deg)}
.main-nav ul{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}
.main-nav a{font-size:14px;font-weight:750;color:#304336;transition:.18s ease}
.main-nav a:hover{color:var(--ag-green)}
.header-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border-radius:999px;border:0;font-weight:800;cursor:pointer;transition:.18s ease;font-size:14px}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--ag-green);color:#fff;box-shadow:0 8px 22px rgba(57,168,68,.22)}
.btn-primary:hover{background:var(--ag-green-dark)}
.btn-outline{background:#fff;color:var(--ag-green-dark);border:1px solid #cfe0d1}
.btn-orange{background:var(--ag-orange);color:white}

.hero{position:relative;overflow:hidden;padding:88px 0 72px;background:radial-gradient(circle at 84% 8%,rgba(237,107,44,.15),transparent 28%),linear-gradient(135deg,#f4fbf4 0%,#ffffff 52%,#f8f5eb 100%)}
.hero:before{content:"";position:absolute;left:-110px;bottom:-180px;width:380px;height:380px;border-radius:50%;background:rgba(57,168,68,.08)}
.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:54px;align-items:center;position:relative}
.eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid #d8e7da;background:#fff;border-radius:999px;padding:8px 12px;color:var(--ag-green-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.eyebrow-dot{width:8px;height:8px;border-radius:50%;background:var(--ag-orange)}
.hero h1{font-size:clamp(42px,5.8vw,72px);line-height:1.02;letter-spacing:-.055em;margin:20px 0 18px;max-width:720px}
.hero h1 strong{color:var(--ag-green);font-weight:inherit}
.hero p{font-size:18px;color:var(--ag-muted);max-width:650px;margin:0 0 28px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-note{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;color:#546358;font-size:13px;font-weight:650}
.hero-note span:before{content:"✓";color:var(--ag-green);font-weight:900;margin-right:7px}
.hero-card{background:#fff;padding:16px;border:1px solid #e0eae1;border-radius:30px;box-shadow:var(--ag-shadow);transform:rotate(1deg)}
.hero-visual{position:relative;min-height:450px;border-radius:23px;overflow:hidden;background:url('assets/hero-agro.svg') center/cover no-repeat}
.hero-product{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:18px;border-radius:18px;display:flex;align-items:center;gap:14px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.hero-product-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--ag-orange-soft);display:grid;place-items:center;font-size:24px}
.hero-product strong{display:block;color:var(--ag-green-deep)}
.hero-product small{color:var(--ag-muted)}

.trust-bar{background:var(--ag-green-deep);color:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{padding:20px 18px;text-align:center;border-right:1px solid rgba(255,255,255,.14)}
.trust-item:last-child{border-right:0}
.trust-item strong{display:block;font-size:14px}
.trust-item span{font-size:12px;opacity:.72}

.section{padding:82px 0}
.section-white{background:#fff}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:32px}
.section-head h2{font-size:clamp(31px,4vw,46px);line-height:1.1;letter-spacing:-.045em;margin:10px 0 0}
.section-head p{max-width:580px;color:var(--ag-muted);margin:0}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category-card{background:#fff;border:1px solid var(--ag-line);border-radius:var(--ag-radius);padding:24px;min-height:225px;display:flex;flex-direction:column;justify-content:space-between;transition:.2s ease;position:relative;overflow:hidden}
.category-card:after{content:"";position:absolute;width:105px;height:105px;border-radius:50%;right:-45px;top:-45px;background:var(--ag-green-soft);transition:.2s}
.category-card:hover{transform:translateY(-5px);box-shadow:var(--ag-shadow);border-color:#cde2d0}
.category-card:hover:after{background:var(--ag-orange-soft)}
.category-icon{width:54px;height:54px;border-radius:16px;background:var(--ag-green-soft);display:grid;place-items:center;font-size:26px}
.category-card h3{margin:28px 0 6px;font-size:19px}
.category-card p{margin:0;color:var(--ag-muted);font-size:14px}
.category-link{margin-top:13px;color:var(--ag-green-dark);font-size:13px;font-weight:850}

.featured-wrap{background:linear-gradient(180deg,#fff,#f7faf7)}
.products-empty{border:1px dashed #bcd2c0;border-radius:20px;padding:38px;text-align:center;color:var(--ag-muted);background:#fff}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:20px;margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--ag-line);border-radius:20px;padding:14px;transition:.2s ease;box-shadow:0 3px 14px rgba(29,43,32,.03)}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--ag-shadow)}
.woocommerce ul.products li.product img{border-radius:15px;margin-bottom:13px!important;aspect-ratio:1/1;object-fit:cover;background:#f4f6f3}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;color:var(--ag-ink);padding:0!important;margin:3px 0 6px!important}
.woocommerce ul.products li.product .price{color:var(--ag-green-dark)!important;font-weight:900!important;font-size:15px!important}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--ag-green)!important;color:#fff!important;border-radius:999px!important;padding:12px 16px!important;font-weight:800!important}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ag-green-dark)!important}
.product-inquiry-btn{display:inline-flex;margin-top:10px}

.benefits-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.benefit{background:#fff;border:1px solid var(--ag-line);border-radius:20px;padding:26px}
.benefit-icon{width:52px;height:52px;border-radius:15px;background:var(--ag-orange-soft);display:grid;place-items:center;font-size:25px}
.benefit h3{margin:16px 0 7px}
.benefit p{margin:0;color:var(--ag-muted)}

.about-panel{display:grid;grid-template-columns:.92fr 1.08fr;gap:44px;background:var(--ag-green-deep);color:#fff;border-radius:30px;padding:50px;position:relative;overflow:hidden}
.about-panel:after{content:"";position:absolute;right:-120px;top:-130px;width:360px;height:360px;border-radius:50%;background:rgba(237,107,44,.18)}
.about-panel h2{font-size:clamp(34px,4vw,48px);line-height:1.08;letter-spacing:-.045em;margin:12px 0 0;position:relative;z-index:1}
.about-copy{position:relative;z-index:1}
.about-copy p{opacity:.82;margin-top:0}
.about-points{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;margin:20px 0 24px;font-size:14px}
.about-points span:before{content:"✓";color:#8be197;margin-right:7px;font-weight:900}

.contact-band{padding:0 0 76px}
.contact-card{background:linear-gradient(135deg,#fff0e9 0%,#fff 46%,#eff9f0 100%);border:1px solid #e9e2d8;border-radius:28px;padding:44px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.contact-card h2{font-size:clamp(30px,4vw,42px);letter-spacing:-.04em;margin:0 0 5px}
.contact-card p{margin:0;color:var(--ag-muted)}

.content-area{padding:58px 0}.entry-content{background:#fff;border:1px solid var(--ag-line);border-radius:20px;padding:30px}.entry-content h1{margin-top:0}
.site-footer{background:#102d1a;color:#fff;padding:58px 0 24px}.footer-grid{display:grid;grid-template-columns:1.35fr .8fr .8fr;gap:48px}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand .brand-logo-image{height:64px}.footer-brand-copy strong{color:#63c66a}.footer-brand-copy small{color:rgba(255,255,255,.72)}.site-footer p,.site-footer li,.site-footer a{color:rgba(255,255,255,.70)}.site-footer ul{list-style:none;padding:0;margin:12px 0 0}.site-footer li{margin:7px 0}.site-footer strong{font-size:14px}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:36px;padding-top:20px;color:rgba(255,255,255,.52);font-size:13px}
.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:90;width:60px;height:60px;border-radius:50%;background:#25D366;color:white;display:grid;place-items:center;font-size:27px;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.notice-catalog{background:var(--ag-green-soft);border-left:4px solid var(--ag-green);padding:12px 16px;border-radius:10px;color:#31583a;font-size:14px;margin-bottom:20px}

@media(max-width:940px){.hero-grid,.about-panel,.footer-grid{grid-template-columns:1fr}.category-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.benefits-grid{grid-template-columns:1fr}.main-nav{display:none}.hero-card{transform:none}.hero{padding-top:62px}.hero-visual{min-height:360px}}
@media(max-width:620px){.container{width:min(100% - 24px,1180px)}.category-grid,.woocommerce ul.products,.trust-grid{grid-template-columns:1fr!important}.trust-item{border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}.section{padding:60px 0}.section-head,.contact-card{align-items:flex-start;flex-direction:column}.header-actions .btn-outline{display:none}.hero h1{font-size:44px}.hero-visual{min-height:300px}.about-panel{padding:30px}.about-points{grid-template-columns:1fr}.brand-logo-image{height:52px}.agro-brand-copy strong{font-size:26px}.agro-brand-copy small{font-size:7px}.agro-brand-mark{transform:scale(.88);transform-origin:left center}}


/* ===== Agroinsur v1.2 - identidad basada en la web original ===== */
.agrs-top{background:#fff;padding:18px 0 16px}.agrs-top-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;min-height:112px}.agrs-contact{font-size:14px;color:#6c746f}.agrs-contact a{display:flex;align-items:center;gap:8px;margin:4px 0;font-weight:700}.agrs-contact .contact-icon{color:var(--g2);width:22px;text-align:center}.site-brand-centered{display:flex;align-items:center;justify-content:center}.site-brand-centered .brand-logo-image{display:block;width:min(310px,32vw);max-height:105px;object-fit:contain}.agrs-social{display:flex;justify-content:flex-end;gap:12px}.agrs-social a{width:44px;height:44px;border-radius:50%;background:#f5f0e9;display:grid;place-items:center;color:#78807b;font-weight:900;transition:.2s}.agrs-social a:hover{background:var(--g);color:#fff;transform:translateY(-2px)}
.site-header{position:sticky;top:0;z-index:50;background:#f7f1ea;border-bottom:1px solid #eee4da;box-shadow:0 4px 14px rgba(24,44,30,.04)}.header-row{min-height:72px}.main-nav{margin:auto}.main-nav ul{gap:34px}.main-nav a{color:#6c746f;font-size:15px}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--g)}.nav-search,.nav-cart{width:42px;height:42px;display:grid;place-items:center;color:#667069}.nav-edge{display:flex;align-items:center;gap:8px;min-width:120px}.nav-edge.right{justify-content:flex-end}.cart-count{font-size:11px;background:var(--g2);color:#fff;border-radius:99px;min-width:18px;height:18px;display:grid;place-items:center;font-weight:800;position:relative;left:-8px;top:-9px}
.hero-original{position:relative;min-height:570px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(20,52,31,.72),rgba(20,52,31,.25)),url('assets/agro-portada.png') center/cover no-repeat;color:#fff}.hero-original:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.19))}.hero-original .container{position:relative;z-index:2}.hero-original-content{max-width:760px}.hero-original .hero-kicker{font-size:13px;letter-spacing:.25em;text-transform:uppercase;font-weight:800;margin-bottom:10px}.hero-original h1{font-size:clamp(45px,6.7vw,82px);line-height:1.02;letter-spacing:-.045em;margin:0 0 18px}.hero-original h1 strong{color:#dff3d9}.hero-original p{font-size:18px;max-width:650px;margin:0 0 26px;color:rgba(255,255,255,.9)}.hero-original .btn-outline{background:rgba(255,255,255,.95);border-color:#fff}.hero-original .btn-outline:hover{background:#fff}
.home-intro{background:#fff;padding:48px 0}.home-intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.home-intro-card{border:1px solid #e6ebe6;border-radius:18px;padding:24px;background:#fff}.home-intro-card b{display:block;color:var(--g);font-size:16px;margin-bottom:4px}.home-intro-card span{color:var(--muted);font-size:14px}
.resources-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.resource-card{border-radius:22px;padding:30px;background:#fff;border:1px solid #e2e8e3;display:flex;justify-content:space-between;align-items:center;gap:24px}.resource-card h3{margin:0 0 7px;font-size:24px}.resource-card p{margin:0;color:var(--muted)}.resource-icon{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:#eef6ec;font-size:27px;flex:0 0 auto}
@media(max-width:900px){.agrs-top-grid{grid-template-columns:1fr auto}.agrs-contact{display:none}.agrs-social{justify-content:flex-end}.site-brand-centered{justify-content:flex-start}.site-brand-centered .brand-logo-image{width:230px}.nav-edge{display:none}.main-nav{overflow-x:auto;width:100%}.main-nav ul{gap:22px;white-space:nowrap;justify-content:flex-start}.hero-original{min-height:500px}.resources-grid{grid-template-columns:1fr}.home-intro-grid{grid-template-columns:1fr}}
@media(max-width:560px){.agrs-top{padding:10px 0}.agrs-top-grid{min-height:80px;grid-template-columns:1fr auto;gap:10px}.site-brand-centered .brand-logo-image{width:190px;max-height:75px}.agrs-social a{width:38px;height:38px}.agrs-social a:nth-child(n+3){display:none}.header-row{min-height:58px}.main-nav ul{gap:18px}.main-nav a{font-size:14px}.hero-original{min-height:450px}.hero-original h1{font-size:47px}.hero-original p{font-size:16px}}


/* ===== Agroinsur v1.3 - material recuperado de la web anterior ===== */
.legacy-story{background:#fff}.legacy-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:34px;align-items:stretch}.legacy-copy{padding:34px 6px 34px 0;display:flex;flex-direction:column;justify-content:center}.legacy-copy h2{font-size:clamp(34px,4vw,48px);line-height:1.08;letter-spacing:-.04em;margin:12px 0 14px}.legacy-copy p{color:var(--ag-muted);font-size:16px;margin:0 0 18px}.legacy-list{display:grid;gap:11px;margin:7px 0 24px}.legacy-list span{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#425147}.legacy-list span:before{content:"✓";color:var(--ag-green);font-weight:900}.legacy-photo{border-radius:26px;overflow:hidden;min-height:390px;box-shadow:var(--ag-shadow);border:1px solid var(--ag-line)}.legacy-photo img{width:100%;height:100%;object-fit:cover;display:block}
.visual-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.visual-card{position:relative;min-height:355px;border-radius:24px;overflow:hidden;color:#fff;display:flex;align-items:flex-end;box-shadow:var(--ag-shadow)}.visual-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.visual-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,46,24,.03),rgba(13,46,24,.78))}.visual-card-content{position:relative;z-index:2;padding:28px}.visual-card h3{font-size:27px;line-height:1.1;margin:0 0 7px}.visual-card p{margin:0;color:rgba(255,255,255,.86);max-width:470px}
.hero-original{background-position:center center}.hero-original-content{background:rgba(15,51,26,.19);padding:30px 32px;border-radius:22px;backdrop-filter:blur(2px)}
@media(max-width:900px){.legacy-grid,.visual-cards{grid-template-columns:1fr}.legacy-copy{padding-right:0}.legacy-photo{min-height:320px}.visual-card{min-height:320px}}
@media(max-width:560px){.hero-original-content{padding:22px}.legacy-photo{min-height:260px}.visual-card{min-height:280px}.visual-card-content{padding:22px}}


/* ===== Agroinsur v1.4 - buscador visible de productos ===== */
.search-edge{min-width:250px;flex:0 1 300px}
.agrs-search-form{width:100%;height:42px;display:flex;align-items:center;background:#fff;border:1px solid #ded7cf;border-radius:999px;padding:0 5px 0 13px;box-shadow:0 2px 8px rgba(24,44,30,.035);transition:.2s}
.agrs-search-form:focus-within{border-color:var(--g2);box-shadow:0 0 0 3px rgba(78,166,73,.12)}
.agrs-search-icon{font-size:20px;line-height:1;color:#707a73;margin-right:7px;transform:translateY(-1px)}
.agrs-search-input{min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;padding:8px 4px!important;margin:0!important;font:inherit;font-size:13px;color:#334039;box-shadow:none!important}
.agrs-search-input::placeholder{color:#929992;opacity:1}
.agrs-search-button{border:0;background:var(--g);color:#fff;height:32px;padding:0 13px;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer;transition:.2s}
.agrs-search-button:hover{background:var(--g2)}
@media(max-width:1100px){.search-edge{min-width:205px;flex-basis:230px}.agrs-search-button{display:none}.main-nav ul{gap:22px}}
@media(max-width:900px){.nav-edge.search-edge{display:flex;min-width:0;flex:1 1 100%;order:2}.header-row{display:flex;flex-wrap:wrap;padding:10px 0}.main-nav{order:1;flex:1 1 100%}.nav-edge.right{display:flex;position:absolute;right:18px}.agrs-search-form{max-width:none}.site-header{position:relative}}
@media(max-width:560px){.agrs-search-input{font-size:14px}.agrs-search-form{height:44px}.agrs-search-button{display:block}}


/* ===== Agroinsur v1.5 - navegación móvil y ficha de producto ===== */
.mobile-menu-toggle{display:none;width:44px;height:44px;border:1px solid #d8ded8;background:#fff;border-radius:14px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;padding:0;flex:0 0 44px}
.mobile-menu-toggle span{display:block;width:20px;height:2px;background:var(--ag-ink);border-radius:99px;transition:.2s ease}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.agroinsur-product-facts{display:grid;gap:9px;margin:18px 0 12px;padding:16px 18px;border:1px solid #dfe9e0;border-radius:16px;background:#f8fbf7}
.agroinsur-product-fact{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:#405047}
.agroinsur-product-fact strong{min-width:108px;color:var(--ag-ink)}
.agroinsur-tech-sheet{display:inline-flex;margin-top:2px;color:var(--ag-green-dark);font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* La imagen fuente puede ser grande, pero en la ficha limitamos su altura visual. */
.single-product div.product .woocommerce-product-gallery{display:flex;align-items:flex-start;justify-content:center}
.single-product div.product .woocommerce-product-gallery__wrapper{width:100%}
.single-product div.product .woocommerce-product-gallery__image a{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:18px;overflow:hidden}
.single-product div.product .woocommerce-product-gallery__image img{width:auto!important;max-width:100%!important;height:auto!important;max-height:620px!important;object-fit:contain!important;margin:auto!important}

@media(max-width:900px){
  .mobile-menu-toggle{display:flex;order:2}
  .header-row{position:relative;gap:10px}
  .nav-edge.search-edge{order:1;flex:1 1 calc(100% - 112px)}
  .nav-edge.right{display:flex!important;position:static!important;order:2;min-width:auto!important;width:auto!important;flex:0 0 auto;align-items:center}
  .main-nav{display:none!important;order:3;flex:1 1 100%;width:100%;overflow:visible!important;padding:8px 0 3px}
  .main-nav.is-open{display:block!important}
  .main-nav ul{display:flex!important;flex-direction:column;align-items:stretch;gap:0!important;white-space:normal!important;background:#fff;border:1px solid #e2e8e3;border-radius:16px;padding:7px!important;box-shadow:0 12px 30px rgba(26,73,38,.09)}
  .main-nav li{width:100%}
  .main-nav a{display:block;padding:12px 14px;border-radius:10px;font-size:15px!important}
  .main-nav a:hover{background:var(--ag-green-soft)}
  .single-product div.product .woocommerce-product-gallery__image img{max-height:460px!important}
}
@media(max-width:560px){
  .header-row{padding:10px 0 12px}
  .nav-edge.search-edge{flex-basis:calc(100% - 104px)}
  .agrs-search-button{display:none!important}
  .mobile-menu-toggle{width:42px;height:42px;flex-basis:42px}
  .single-product div.product .woocommerce-product-gallery{margin-bottom:18px!important}
  .single-product div.product .woocommerce-product-gallery__image img{max-height:390px!important;max-width:88%!important}
  .single-product div.product .summary{margin-top:0!important}
  .agroinsur-product-fact{display:grid;grid-template-columns:1fr;gap:1px}
  .agroinsur-product-fact strong{min-width:0}
}


/* ===== Agroinsur v1.6 - catálogo sin carrito + imágenes más compactas ===== */
/* En modo catálogo no reservamos espacio visible para carrito. */
.catalog-spacer{visibility:hidden;pointer-events:none}

/* Tarjetas de la tienda: imagen más compacta y sin recortar el envase. */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img{
  width:100%!important;
  height:230px!important;
  max-height:230px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f8f6!important;
  padding:8px!important;
}
.woocommerce ul.products li.product{padding:12px!important}

/* Ficha individual en escritorio: que la imagen acompañe, no domine la pantalla. */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product div.images{
  min-height:0!important;
}
.single-product div.product .woocommerce-product-gallery__image a{
  min-height:0!important;
  height:auto!important;
}
.single-product div.product .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery__image img.wp-post-image,
.single-product div.product div.images img{
  display:block!important;
  width:100%!important;
  height:430px!important;
  max-height:430px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
}

@media(max-width:900px){
  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img{
    height:260px!important;
    max-height:260px!important;
  }
  .single-product div.product .woocommerce-product-gallery__image img,
  .single-product div.product .woocommerce-product-gallery__image img.wp-post-image,
  .single-product div.product div.images img{
    height:360px!important;
    max-height:360px!important;
    max-width:100%!important;
  }
}
@media(max-width:560px){
  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img{
    height:250px!important;
    max-height:250px!important;
  }
  .single-product div.product .woocommerce-product-gallery__image img,
  .single-product div.product .woocommerce-product-gallery__image img.wp-post-image,
  .single-product div.product div.images img{
    height:330px!important;
    max-height:330px!important;
    max-width:92%!important;
  }
}


/* WhatsApp flotante v1.7: botón real, limpio y sin imágenes externas */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:999;
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  box-shadow:0 10px 26px rgba(0,0,0,.20);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  overflow:hidden;
  padding:0;
  line-height:1;
}
.whatsapp-float:hover{
  background:#20bd5a;
  transform:translateY(-2px) scale(1.04);
  box-shadow:0 14px 30px rgba(0,0,0,.24);
}
.whatsapp-float:focus-visible{
  outline:3px solid rgba(37,211,102,.35);
  outline-offset:4px;
}
.whatsapp-float .whatsapp-icon{
  width:31px;
  height:31px;
  display:block;
  fill:#fff;
  flex:0 0 auto;
}
@media(max-width:560px){
  .whatsapp-float{
    width:56px;
    height:56px;
    right:16px;
    bottom:18px;
  }
  .whatsapp-float .whatsapp-icon{
    width:30px;
    height:30px;
  }
}


/* v1.8 - tarjetas principales de soluciones como enlaces */
.visual-card-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.visual-card-link:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(17,45,28,.16);
  filter:brightness(1.03);
}
.visual-card-link:focus-visible{
  outline:3px solid rgba(40,167,69,.35);
  outline-offset:4px;
}


/* v2.0 - Carrusel editable de portada */
.hero-carousel{position:relative;overflow:hidden;background:#153921}
.hero-carousel-track{position:relative;min-height:560px}
.hero-slide{position:absolute;inset:0;min-height:560px;background-size:cover;background-position:center;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility .55s ease}
.hero-slide.is-active{position:relative;opacity:1;visibility:visible}
.hero-slide-inner{min-height:560px;display:flex;align-items:center;padding-top:58px;padding-bottom:58px}
.hero-slide-content{width:min(720px,62%);padding:38px 40px;border-radius:24px;background:rgba(20,63,37,.46);backdrop-filter:blur(2px)}
.hero-slide-eyebrow{margin-bottom:14px;color:#fff;font-size:13px;line-height:1.3;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.hero-slide h1{margin:0 0 22px;color:#fff;font-size:clamp(46px,5.3vw,78px);line-height:.98;letter-spacing:-.05em}
.hero-slide p{max-width:700px;margin:0 0 28px;color:rgba(255,255,255,.93);font-size:18px;line-height:1.55}
.hero-slide-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-carousel-arrow{position:absolute;top:50%;z-index:5;width:48px;height:48px;margin-top:-24px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(14,48,27,.45);color:#fff;font-size:34px;line-height:1;cursor:pointer}
.hero-carousel-prev{left:22px}.hero-carousel-next{right:22px}
.hero-carousel-dots{position:absolute;z-index:6;left:50%;bottom:18px;display:flex;gap:9px;transform:translateX(-50%)}
.hero-carousel-dot{width:11px;height:11px;padding:0;border:2px solid #fff;border-radius:50%;background:transparent;cursor:pointer}.hero-carousel-dot.is-active{background:#fff}
@media(max-width:900px){.hero-carousel-track,.hero-slide,.hero-slide-inner{min-height:520px}.hero-slide-content{width:min(680px,82%)}}
@media(max-width:560px){.hero-carousel-track,.hero-slide,.hero-slide-inner{min-height:575px}.hero-slide-inner{align-items:flex-end;padding-top:36px;padding-bottom:54px}.hero-slide-content{width:100%;padding:28px 22px;border-radius:22px;background:rgba(20,63,37,.62)}.hero-slide h1{font-size:clamp(40px,12vw,58px)}.hero-slide p{font-size:17px}.hero-carousel-arrow{width:42px;height:42px;font-size:30px}.hero-carousel-prev{left:10px}.hero-carousel-next{right:10px}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}


/* ============================================================
   v2.1 - Texto fijo + carrusel de imágenes de fondo
   ============================================================ */
.hero-bg-slider{
  position:relative;
  min-height:560px;
  overflow:hidden;
  background:#153921;
}
.hero-bg-layers,
.hero-bg-layer,
.hero-bg-overlay{
  position:absolute;
  inset:0;
}
.hero-bg-layer{
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity .65s ease;
}
.hero-bg-layer.is-active{opacity:1}
.hero-bg-overlay{
  z-index:1;
  background:linear-gradient(90deg,rgba(9,45,23,.72) 0%,rgba(9,45,23,.50) 50%,rgba(9,45,23,.14) 100%);
}
.hero-bg-inner{
  position:relative;
  z-index:2;
  min-height:560px;
  display:flex;
  align-items:center;
  padding-top:58px;
  padding-bottom:58px;
}
.hero-bg-content{
  width:min(720px,62%);
  padding:38px 40px;
  border-radius:24px;
  background:rgba(18,62,35,.48);
  backdrop-filter:blur(2px);
}
.hero-bg-content h1{
  margin:0 0 22px;
  color:#fff;
  font-size:clamp(46px,5.2vw,76px);
  line-height:.98;
  letter-spacing:-.05em;
}
.hero-bg-content p{
  max-width:680px;
  margin:0 0 28px;
  color:rgba(255,255,255,.93);
  font-size:18px;
  line-height:1.55;
}
.hero-bg-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  width:46px;
  height:46px;
  margin-top:-23px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(10,42,23,.48);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.hero-bg-prev{left:18px}
.hero-bg-next{right:18px}
.hero-bg-dots{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:18px;
  display:flex;
  gap:9px;
  transform:translateX(-50%);
}
.hero-bg-dot{
  width:11px;
  height:11px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}
.hero-bg-dot.is-active{background:#fff}

@media(max-width:900px){
  .hero-bg-slider,.hero-bg-inner{min-height:520px}
  .hero-bg-content{width:min(680px,82%)}
}
@media(max-width:560px){
  .hero-bg-slider,.hero-bg-inner{min-height:575px}
  .hero-bg-inner{
    align-items:flex-end;
    padding-top:36px;
    padding-bottom:54px;
  }
  .hero-bg-content{
    width:100%;
    padding:28px 22px;
    border-radius:22px;
    background:rgba(18,62,35,.60);
  }
  .hero-bg-content h1{font-size:clamp(40px,12vw,58px)}
  .hero-bg-content p{font-size:17px}
  .hero-bg-arrow{
    width:42px;height:42px;font-size:29px;
  }
  .hero-bg-prev{left:9px}
  .hero-bg-next{right:9px}
}
@media(prefers-reduced-motion:reduce){
  .hero-bg-layer{transition:none}
}




/* ============================================================
   v2.3 - Logo definitivo y uniforme
   El logo pertenece a .agrs-top, no a .site-header.
   ============================================================ */
.agrs-top .site-brand-centered{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:190px !important;
  max-width:190px !important;
  min-width:190px !important;
  height:90px !important;
  flex:0 0 190px !important;
  overflow:visible !important;
}

.agrs-top .site-brand-centered .brand-logo-image{
  display:block !important;
  width:190px !important;
  max-width:190px !important;
  min-width:190px !important;
  height:auto !important;
  max-height:90px !important;
  object-fit:contain !important;
  transform:none !important;
  margin:0 auto !important;
}

/* También gana a las reglas viejas del tema y al Personalizador */
.customize-support .agrs-top .site-brand-centered .brand-logo-image,
.wp-customizer .agrs-top .site-brand-centered .brand-logo-image{
  width:190px !important;
  max-width:190px !important;
  min-width:190px !important;
  height:auto !important;
  max-height:90px !important;
}

/* Tablet */
@media (max-width:900px) and (min-width:561px){
  .agrs-top .site-brand-centered{
    width:170px !important;
    max-width:170px !important;
    min-width:170px !important;
    height:82px !important;
    flex-basis:170px !important;
  }
  .agrs-top .site-brand-centered .brand-logo-image,
  .customize-support .agrs-top .site-brand-centered .brand-logo-image{
    width:170px !important;
    max-width:170px !important;
    min-width:170px !important;
    max-height:82px !important;
  }
}

/* Móvil */
@media (max-width:560px){
  .agrs-top .site-brand-centered{
    width:155px !important;
    max-width:155px !important;
    min-width:155px !important;
    height:72px !important;
    flex-basis:155px !important;
  }
  .agrs-top .site-brand-centered .brand-logo-image,
  .customize-support .agrs-top .site-brand-centered .brand-logo-image{
    width:155px !important;
    max-width:155px !important;
    min-width:155px !important;
    max-height:72px !important;
  }
}


/* ============================================================
   v2.5 - Portada con texto fijo y diapositivas ilimitadas
   ============================================================ */
.agro-hero-slider{
  position:relative;
  min-height:560px;
  overflow:hidden;
  background:#123b22;
}
.agro-hero-backgrounds,
.agro-hero-bg,
.agro-hero-shade{
  position:absolute;
  inset:0;
}
.agro-hero-bg{
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity .7s ease;
  will-change:opacity;
}
.agro-hero-bg.is-active{opacity:1}
.agro-hero-shade{
  z-index:1;
  background:linear-gradient(90deg,rgba(9,45,23,.74) 0%,rgba(9,45,23,.50) 50%,rgba(9,45,23,.15) 100%);
}
.agro-hero-inner{
  position:relative;
  z-index:2;
  min-height:560px;
  display:flex;
  align-items:center;
  padding-top:58px;
  padding-bottom:58px;
}
.agro-hero-copy{
  width:min(720px,62%);
  padding:38px 40px;
  border-radius:24px;
  background:rgba(16,61,34,.50);
  backdrop-filter:blur(2px);
}
.agro-hero-eyebrow{
  margin-bottom:14px;
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.agro-hero-copy h1{
  margin:0 0 22px;
  color:#fff;
  font-size:clamp(46px,5.2vw,76px);
  line-height:.98;
  letter-spacing:-.05em;
}
.agro-hero-copy p{
  max-width:680px;
  margin:0 0 28px;
  color:rgba(255,255,255,.94);
  font-size:18px;
  line-height:1.55;
}
.agro-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.agro-hero-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  width:46px;
  height:46px;
  margin-top:-23px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:rgba(9,45,23,.52);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.agro-hero-prev{left:18px}
.agro-hero-next{right:18px}
.agro-hero-dots{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  max-width:min(70%,700px);
  transform:translateX(-50%);
}
.agro-hero-dot{
  width:11px;
  height:11px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}
.agro-hero-dot.is-active{background:#fff}

@media(max-width:900px){
  .agro-hero-slider,.agro-hero-inner{min-height:520px}
  .agro-hero-copy{width:min(680px,82%)}
}
@media(max-width:560px){
  .agro-hero-slider,.agro-hero-inner{min-height:575px}
  .agro-hero-inner{
    align-items:flex-end;
    padding-top:36px;
    padding-bottom:54px;
  }
  .agro-hero-copy{
    width:100%;
    padding:28px 22px;
    border-radius:22px;
    background:rgba(16,61,34,.62);
  }
  .agro-hero-copy h1{font-size:clamp(40px,12vw,58px)}
  .agro-hero-copy p{font-size:17px}
  .agro-hero-arrow{
    width:42px;
    height:42px;
    font-size:29px;
  }
  .agro-hero-prev{left:9px}
  .agro-hero-next{right:9px}
}
@media(prefers-reduced-motion:reduce){
  .agro-hero-bg{transition:none}
}
