/* ============================================================
   SUR GLASS — estilos del tema de bloques
   Colores via theme.json; aquí van componentes a medida.
   ============================================================ */
:root{
  --sg-verde:#00763F; --sg-verde-d:#015C32; --sg-verde-claro:#EAF3DE;
  --sg-amarillo:#F0EA00; --sg-amarillo2:#F2B705;
  --sg-negro:#1A1A1A; --sg-blanco-roto:#F8F9FA; --sg-gris:#D1D1D1; --sg-gris-texto:#5F5E5A;
  --sg-sombra:0 10px 30px rgba(0,0,0,.08); --sg-sombra-lg:0 18px 50px rgba(0,0,0,.12);
}

body{font-family:'Poppins',sans-serif;}
.sg-wrap{max-width:1200px; margin-inline:auto; padding-inline:24px;}

/* Placeholder de imagen elegante (para usar mientras no hay foto) */
.sg-ph{position:relative; border-radius:18px; min-height:160px;
  background:radial-gradient(120% 120% at 20% 10%, rgba(0,118,63,.10), transparent 55%),
  linear-gradient(135deg,#eef1ee 0%,#f7f8f7 55%,#eef3ef 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#9aa39c; overflow:hidden;}
.sg-ph i{font-size:30px; opacity:.55;}
.sg-ph span{font-size:12px; font-weight:600;}

/* ============================================================
   HEADER
   ============================================================ */
.sg-header{position:sticky; top:0; z-index:100; background:var(--sg-verde);}
.sg-topbar{display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:1320px; margin-inline:auto;}
.sg-brand{display:flex; align-items:center; gap:12px;}
.sg-brand img{max-height:50px; width:auto;}
.sg-logo-box{width:50px; height:50px; border:2px dashed rgba(255,255,255,.5); border-radius:10px; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.85); font-size:9px; text-align:center; line-height:1.1;}
.sg-brand-name{color:#fff; font-weight:800; font-size:14px; line-height:1.05;}
.sg-brand-name b{font-size:19px; font-weight:900; display:block;}

/* Botón cotizar del header */
.sg-cta-btn{background:var(--sg-amarillo2); color:var(--sg-negro)!important; padding:9px 20px!important; border-radius:40px; font-weight:600!important; box-shadow:0 6px 16px rgba(242,183,5,.35);}
.sg-cta-btn::after{display:none!important;}

.sg-hamb{display:none; background:none; border:none; color:#fff; font-size:24px; cursor:pointer;}

/* ---------- Menú de navegación (bloque nativo WP) — ESCRITORIO ---------- */
.sg-header .sg-nav .wp-block-navigation-item__content{color:#fff; font-size:13.5px; font-weight:500;}
.sg-header .sg-nav .wp-block-navigation-item__content:hover{color:var(--sg-amarillo);}
.sg-header .sg-nav .current-menu-item > .wp-block-navigation-item__content{color:var(--sg-amarillo);}

/* Submenú desplegable de Productos (fondo blanco, texto verde) */
.sg-header .sg-nav .wp-block-navigation__submenu-container{
  background-color:#fff !important;
  border-radius:0 0 12px 12px;
  box-shadow:var(--sg-sombra);
  border-top:3px solid var(--sg-amarillo);
  padding:8px 0;
  min-width:210px;
}
.sg-header .sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
  color:var(--sg-verde) !important;
  font-weight:600;
  padding:10px 20px;
}
.sg-header .sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{
  background:var(--sg-verde-claro);
  color:var(--sg-verde-d) !important;
}

/* ---------- Barra amarilla secundaria ---------- */
.sg-subbar{background:var(--sg-amarillo);}
.sg-subbar-inner{display:flex; align-items:center; justify-content:space-between; padding:9px 24px; max-width:1320px; margin-inline:auto;}
.sg-subbar-links{display:flex; gap:26px;}
.sg-subbar-links a{color:#3a3700; font-size:12.5px; font-weight:500; text-decoration:none; display:flex; align-items:center; gap:6px;}
.sg-subbar-links a:hover{opacity:.65;}
.sg-subbar-links .solo-desktop{display:flex;}
.sg-social{display:flex; gap:16px;}
.sg-social a{color:var(--sg-verde-d); font-size:15px; text-decoration:none; transition:transform .2s;}
.sg-social a:hover{transform:translateY(-2px);}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.sg-hero{position:relative; background:var(--sg-verde); overflow:hidden;}
.sg-slide-inner{display:flex; align-items:center; gap:48px; padding:60px 0 100px; min-height:540px; max-width:1200px; margin-inline:auto; padding-inline:24px;}
.sg-slide-text{flex:1.05;}
.sg-badge{display:inline-block; background:rgba(255,255,255,.14); color:var(--sg-amarillo); font-size:11px; font-weight:600; padding:7px 16px; border-radius:30px; margin-bottom:20px; letter-spacing:.5px;}
.sg-slide-text h2{font-size:44px; font-weight:800; color:#fff; line-height:1.1; margin:0 0 18px;}
.sg-slide-text h2 .hl{color:var(--sg-amarillo);}
.sg-slide-text p{font-size:15px; color:#cfe8db; line-height:1.75; margin:0 0 30px; max-width:400px;}
.sg-slide-actions{display:flex; gap:14px; flex-wrap:wrap;}
.sg-btn{display:inline-flex; align-items:center; gap:8px; font-weight:600; border-radius:40px; padding:15px 28px; font-size:14px; text-decoration:none; transition:transform .2s, box-shadow .2s; cursor:pointer; border:none;}
.sg-btn:hover{transform:translateY(-2px);}
.sg-btn-amarillo{background:var(--sg-amarillo2); color:var(--sg-negro); box-shadow:0 8px 20px rgba(242,183,5,.35);}
.sg-btn-verde{background:var(--sg-verde); color:#fff; box-shadow:0 8px 20px rgba(0,118,63,.3);}
.sg-btn-outline{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.55);}
.sg-btn-outline:hover{background:rgba(255,255,255,.12);}
.sg-btn-outline-verde{background:transparent; color:var(--sg-verde); border:1.5px solid var(--sg-verde);}
.sg-btn-sm{padding:10px 22px; font-size:12px;}
.sg-slide-img{flex:1; height:360px;}
.sg-hero .swiper-pagination{bottom:46px!important; left:24px!important; text-align:left; width:auto!important;}
.sg-hero .swiper-pagination-bullet{width:8px; height:8px; background:rgba(255,255,255,.5); opacity:1; transition:width .3s;}
.sg-hero .swiper-pagination-bullet-active{width:26px; border-radius:5px; background:var(--sg-amarillo);}
.sg-hero-nav{position:absolute; top:42%; z-index:10; width:46px; height:46px; border-radius:50%; border:none; background:rgba(255,255,255,.16); color:#fff; cursor:pointer; font-size:15px; display:flex; align-items:center; justify-content:center; transition:background .2s;}
.sg-hero-nav:hover{background:rgba(255,255,255,.3);}
.sg-hero-prev{left:18px;} .sg-hero-next{right:18px;}
.sg-curve{position:absolute; bottom:-1px; left:0; width:100%; height:80px; display:block; z-index:5; pointer-events:none;}

/* ============================================================
   BANNER DE TÍTULO (páginas internas)
   ============================================================ */
.sg-banner{position:relative; background:var(--sg-verde); overflow:hidden; text-align:center; padding:64px 24px 80px;}
.sg-banner h1{color:#fff; font-size:40px; font-weight:800; margin:0 0 10px;}
.sg-banner .bc{font-size:13px; color:#cfe8db;}
.sg-banner .bc a{color:var(--sg-amarillo); text-decoration:none;}

/* ============================================================
   SECCIONES
   ============================================================ */
.sg-eyebrow{font-size:12px; font-weight:700; color:var(--sg-amarillo2); letter-spacing:2px; text-transform:uppercase; margin-bottom:10px;}
.sg-title{font-size:32px; font-weight:800; margin:0 0 12px;}
.sg-lead{color:#777; font-size:15px; max-width:560px; margin-inline:auto; line-height:1.7;}

/* Quiénes somos */
.sg-about{display:flex; align-items:center; gap:60px;}
.sg-about-img{flex:1; position:relative;}
.sg-about-img .sg-ph{height:360px;}
.sg-seal{position:absolute; right:-18px; bottom:-22px; width:130px; height:130px; background:var(--sg-verde); border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; box-shadow:0 14px 34px rgba(0,118,63,.4); border:5px solid #fff;}
.sg-seal .n{font-size:36px; font-weight:900; color:var(--sg-amarillo); line-height:1;}
.sg-seal .l{font-size:11px; font-weight:600; letter-spacing:1px;}
.sg-about-text{flex:1.15;}
.sg-about-text h2{font-size:34px; font-weight:800; line-height:1.18; margin:0 0 18px;}
.sg-about-text h2 .hl{color:var(--sg-verde);}
.sg-about-text p{font-size:14.5px; color:var(--sg-gris-texto); line-height:1.8; margin:0 0 22px;}
.sg-checks{list-style:none; margin:0 0 30px; padding:0;}
.sg-checks li{display:flex; align-items:center; gap:14px; font-size:14.5px; font-weight:500; margin-bottom:14px;}
.sg-checks li .ico{width:30px; height:30px; background:var(--sg-verde-claro); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--sg-verde); font-size:12px; flex-shrink:0;}

/* Grids de tarjetas */
.sg-grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:26px;}
.sg-card{background:#fff; border-radius:20px; overflow:hidden; box-shadow:var(--sg-sombra); transition:transform .28s, box-shadow .28s;}
.sg-card:hover{transform:translateY(-8px); box-shadow:var(--sg-sombra-lg);}
.sg-card .cimg{height:150px;}
.sg-card .cimg .sg-ph{border-radius:0; height:100%;}
.sg-card .body{padding:22px 18px; text-align:center;}
.sg-card .body h3{font-size:17px; font-weight:700; margin:0 0 6px;}
.sg-card .body p{font-size:12px; color:#999; margin:0 0 16px;}

/* Pasos */
.sg-steps{background:var(--sg-verde);}
.sg-grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:30px;}
.sg-step{text-align:center;}
.sg-step .circ{width:74px; height:74px; margin:0 auto 18px; background:rgba(255,255,255,.1); border:1.5px solid rgba(240,234,0,.45); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--sg-amarillo); font-size:27px;}
.sg-step h3{font-size:17px; font-weight:700; color:#fff; margin:0 0 8px;}
.sg-step p{font-size:13px; color:#cfe8db; line-height:1.6;}

/* Features */
.sg-feats{display:grid; grid-template-columns:repeat(4,1fr); gap:30px;}
.sg-feat{text-align:center;}
.sg-feat .circ{width:62px; height:62px; margin:0 auto 14px; background:var(--sg-verde-claro); border-radius:18px; display:flex; align-items:center; justify-content:center; color:var(--sg-verde); font-size:24px;}
.sg-feat h3{font-size:15px; font-weight:700; margin:0 0 6px;}
.sg-feat p{font-size:12.5px; color:#888;}

/* Marcas */
.sg-brands{display:flex; gap:24px; justify-content:center; flex-wrap:wrap;}
.sg-brand-logo{flex:1; min-width:150px; max-width:180px; height:72px; border-radius:14px; background:#fff; box-shadow:var(--sg-sombra); display:flex; align-items:center; justify-content:center; color:#c2c2c2; font-size:12px; font-weight:600; transition:transform .2s;}
.sg-brand-logo:hover{transform:translateY(-4px);}

/* Catálogos */
.sg-catgrid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
.sg-catcard{background:#fff; border-radius:18px; padding:28px 20px; text-align:center; box-shadow:var(--sg-sombra); transition:transform .25s;}
.sg-catcard:hover{transform:translateY(-6px);}
.sg-catcard .ico{width:58px; height:58px; margin:0 auto 16px; background:var(--sg-verde-claro); border-radius:16px; display:flex; align-items:center; justify-content:center; color:var(--sg-verde); font-size:23px;}
.sg-catcard h3{font-size:15px; font-weight:700; margin:0 0 16px;}

/* CTA */
.sg-cta{background:linear-gradient(120deg, var(--sg-verde) 0%, var(--sg-verde-d) 100%); text-align:center; padding:70px 24px;}
.sg-cta h2{font-size:32px; font-weight:800; color:#fff; margin:0 0 12px;}
.sg-cta p{font-size:15px; color:#cfe8db; margin:0 0 30px;}

/* Bloques de producto */
.sg-prod-row{display:flex; align-items:center; gap:54px; margin-bottom:30px;}
.sg-prod-row.reverse{flex-direction:row-reverse;}
.sg-prod-row .col{flex:1;}
.sg-prod-row .col .sg-ph{height:320px;}
.sg-prod-row h2{font-size:28px; font-weight:800; line-height:1.2; margin:0 0 16px;}
.sg-prod-row h2 .hl{color:var(--sg-verde);}
.sg-prod-row p{font-size:14px; color:var(--sg-gris-texto); line-height:1.8; margin:0 0 14px;}
.sg-label{font-size:11px; font-weight:700; color:var(--sg-amarillo2); letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px;}
.sg-flist{list-style:none; margin:0 0 20px; padding:0;}
.sg-flist li{display:flex; gap:10px; font-size:13.5px; color:#444; margin-bottom:10px; line-height:1.5;}
.sg-flist li i{color:var(--sg-verde); margin-top:3px;}
.sg-dual{display:flex; gap:40px;}
.sg-dual .c{flex:1;}
.sg-dual .c h3{font-size:22px; font-weight:700; color:var(--sg-verde); margin:0 0 12px;}
.sg-dual .c p{font-size:13.5px; color:var(--sg-gris-texto); line-height:1.8;}

/* Tabla técnica */
.sg-tbl{overflow-x:auto; border-radius:14px; box-shadow:var(--sg-sombra); background:#fff;}
.sg-tbl table{width:100%; border-collapse:collapse; min-width:520px;}
.sg-tbl thead th{background:var(--sg-verde); color:#fff; font-size:13px; font-weight:600; padding:14px 16px; text-align:left;}
.sg-tbl tbody td{padding:12px 16px; font-size:13px; color:#444; border-bottom:1px solid #eee;}
.sg-tbl tbody tr:nth-child(even){background:#f7f9f7;}
.sg-tbl tbody td i.fa-check{color:var(--sg-verde);}

/* Acordeón */
.sg-acc{border-radius:12px; overflow:hidden; box-shadow:var(--sg-sombra); background:#fff; margin-bottom:18px;}
.sg-acc-head{background:#fff; padding:18px 22px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-size:15px; font-weight:600; color:var(--sg-negro);}
.sg-acc-head:hover{background:#f6f8f6;}
.sg-acc-head.active{background:var(--sg-verde); color:#fff;}
.sg-acc-head i{transition:transform .3s; font-size:13px;}
.sg-acc-head.active i{transform:rotate(180deg);}
.sg-acc-body{max-height:0; overflow:hidden; transition:max-height .35s ease; background:#fff;}
.sg-acc-body ul{list-style:none; padding:6px 22px 18px; margin:0;}
.sg-acc-body li{font-size:13.5px; color:#555; padding:8px 0; border-bottom:1px solid #f0f0f0; display:flex; align-items:center; gap:10px;}
.sg-acc-body li i{color:var(--sg-amarillo2);}

/* Contacto */
.sg-contact{display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:start;}
.sg-cinfo{display:flex; gap:16px; margin-bottom:22px; align-items:flex-start;}
.sg-cinfo .ico{width:46px; height:46px; flex-shrink:0; background:var(--sg-verde-claro); border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--sg-verde); font-size:18px;}
.sg-cinfo h4{font-size:13px; font-weight:700; color:var(--sg-amarillo2); text-transform:uppercase; letter-spacing:1px; margin:0 0 4px;}
.sg-cinfo p{font-size:14px; color:#444; line-height:1.6; margin:0;}

/* ============================================================
   FOOTER
   ============================================================ */
.sg-footer{background:var(--sg-negro); padding:60px 0 28px;}
.sg-fgrid{display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:36px;}
.sg-fcol h4{font-size:15px; font-weight:700; color:var(--sg-amarillo); margin:0 0 18px;}
.sg-fcol p, .sg-fcol a{font-size:13px; color:#a8a8a8; line-height:2.1; text-decoration:none;}
.sg-fcol a:hover{color:#fff;}
.sg-fsocial{display:flex; gap:14px; margin-top:16px;}
.sg-fsocial a{width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; transition:background .2s;}
.sg-fsocial a:hover{background:var(--sg-verde);}
.sg-recl{border:2px dashed rgba(255,255,255,.25); border-radius:12px; padding:18px; text-align:center; color:#a8a8a8; font-size:11px;}
.sg-recl i{font-size:22px; display:block; margin-bottom:8px; color:#fff;}
.sg-copy{text-align:center; color:#777; font-size:12px; margin-top:40px; padding-top:24px; border-top:1px solid #333;}

/* ============================================================
   ELIMINAR ESPACIOS FANTASMA ENTRE BLOQUES
   ============================================================ */
.wp-site-blocks > *{ margin-block:0 !important; }
.wp-site-blocks > * + *{ margin-block-start:0 !important; }
.wp-block-group.sg-header, .sg-header > *{ margin-block:0 !important; }
.sg-subbar{ margin:0 !important; }
.sg-hero, .sg-banner, .sg-cta, .sg-footer{ margin:0 !important; }

/* ============================================================
   RESPONSIVE (TABLET / MÓVIL)
   ============================================================ */
@media(max-width:900px){
  .sg-subbar .solo-desktop, .sg-subbar-links .solo-desktop{display:none;}
  .sg-hamb{display:block;}
  .sg-cta-btn{display:none;}
  .sg-slide-inner{flex-direction:column; gap:30px; padding:44px 24px 84px; text-align:center; min-height:0;}
  .sg-slide-text h2{font-size:32px;} .sg-slide-text p{max-width:none; margin-inline:auto;}
  .sg-slide-actions{justify-content:center;} .sg-slide-img{width:100%; height:230px;}
  .sg-about{flex-direction:column; gap:50px;}
  .sg-grid4, .sg-catgrid, .sg-feats{grid-template-columns:repeat(2,1fr);}
  .sg-grid3, .sg-dual{grid-template-columns:1fr; flex-direction:column; gap:36px;}
  .sg-fgrid{grid-template-columns:1fr 1fr;}
  .sg-hero-nav{display:none;}
  .sg-prod-row, .sg-prod-row.reverse{flex-direction:column; gap:28px;}
  .sg-contact{grid-template-columns:1fr; gap:36px;}
  .sg-banner h1{font-size:30px;}
  .sg-title, .sg-about-text h2, .sg-cta h2{font-size:26px;}
}
@media(max-width:520px){
  .sg-grid4, .sg-catgrid, .sg-feats, .sg-fgrid{grid-template-columns:1fr;}
  .sg-slide-actions .sg-btn{width:100%; justify-content:center;}
}

/* ============================================================
   MENÚ MÓVIL (overlay del bloque de navegación)
   Centrado · línea sutil · activo y hover en amarillo
   ============================================================ */
@media(max-width:900px){

  /* Fondo verde del overlay y contenido centrado vertical + horizontal */
  .sg-header .sg-nav .wp-block-navigation__responsive-container.is-menu-open{
    background-color:var(--sg-verde) !important;
  }
  .sg-header .sg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
    width:100%;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .sg-header .sg-nav .is-menu-open .wp-block-navigation__container{
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    width:100%;
    max-width:360px;
  }

  /* Cada ítem: ancho completo, centrado, con línea sutil */
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item{
    width:100% !important;
    justify-content:center !important;
    border-bottom:1px solid rgba(255,255,255,.14);
    background:transparent !important;
    background-color:transparent !important;
  }
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content{
    width:100% !important;
    text-align:center !important;
    justify-content:center !important;
    color:#ffffff !important;
    background:transparent !important;
    background-color:transparent !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:16px 0 !important;
    font-size:18px !important;
    font-weight:600 !important;
  }

  /* Submenú dentro del overlay: ordenado debajo, centrado, sin recuadro */
  .sg-header .sg-nav .is-menu-open .wp-block-navigation__submenu-container{
    position:static !important;
    background:transparent !important;
    background-color:transparent !important;
    border:none !important;
    border-top:none !important;
    box-shadow:none !important;
    padding:0 !important;
    min-width:0 !important;
    width:100%;
    align-items:center !important;
  }
  .sg-header .sg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
    color:#d4ecdf !important;
    font-size:15px !important;
    font-weight:500 !important;
    padding:12px 0 !important;
  }

  /* Página ACTIVA: amarillo permanente */
  .sg-header .sg-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content{
    color:var(--sg-amarillo) !important;
  }

  /* Al pasar el dedo / presionar / enfocar: amarillo, sin fondo */
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item:hover,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item:focus-within,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:hover,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:focus,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:active{
    background:transparent !important;
    background-color:transparent !important;
  }
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:hover,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:focus,
  .sg-header .sg-nav .is-menu-open .wp-block-navigation-item__content:active{
    color:var(--sg-amarillo) !important;
  }

  /* Botón cerrar (X) */
  .sg-header .sg-nav .wp-block-navigation__responsive-container-close{
    top:24px !important; right:24px !important; color:#fff !important;
  }
}