/*
Theme Name: Astriva Mining
Theme URI: https://astrivamining.com/
Author: Astriva Mining
Description: Tema corporativo para Astriva Mining, diseñado para presentar suministros mineros y recibir solicitudes de cotización.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: astriva-mining
*/
:root{--navy:#07131d;--navy2:#102333;--yellow:#ffc400;--ink:#111d28;--muted:#52606d;--light:#f6f8fa;--white:#fff;--radius:10px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.55}a{color:inherit;text-decoration:none}.container{width:min(1180px,92%);margin:auto}.site-header{background:#06111a;color:white;position:sticky;top:0;z-index:20;border-bottom:1px solid #253440}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.5px;line-height:1;flex:0 0 auto}.brand-logo{display:block;width:220px;height:66px;object-fit:contain;object-position:left center}.footer-brand .brand-logo{width:180px;height:58px}.main-nav{display:flex;align-items:center;gap:25px;font-size:14px}.main-nav a:hover{color:var(--yellow)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--yellow);color:#101820;padding:13px 19px;border-radius:6px;font-weight:800;border:2px solid var(--yellow);transition:.2s;cursor:pointer}.btn:hover{background:#ffda45;border-color:#ffda45;transform:translateY(-1px)}.btn-outline{background:transparent;color:white;border-color:white}.btn-outline:hover{color:#111;background:white}.hero{color:white;background:#08121a url('assets/images/hero-mina.jpg') center/cover no-repeat;position:relative}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,10,15,.96) 0%,rgba(3,10,15,.83) 40%,rgba(3,10,15,.12) 100%)}.hero-inner{position:relative;min-height:350px;display:flex;align-items:center;padding:52px 0}.hero-copy{max-width:570px}.eyebrow{color:#d99f00;font-size:12px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase}.hero h1{font-size:clamp(34px,4.2vw,52px);line-height:1.08;margin:10px 0 16px;color:white;letter-spacing:-1.2px}.hero h1 span,.accent{color:var(--yellow)}.hero p{max-width:500px;font-size:17px;color:#f0f3f5;margin-bottom:24px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.benefits{background:#fff;padding:25px 0}.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr)}.benefit{padding:8px 18px;text-align:center;border-right:1px solid #d6dce1}.benefit:last-child{border:0}.benefit .icon{font-size:31px;color:#101d29}.benefit h3{font-size:16px;margin:8px 0 4px}.benefit p{font-size:13px;color:var(--muted);margin:0}.section{padding:48px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h2,.about h2,.quote h2{font-size:clamp(26px,3vw,36px);line-height:1.13;margin:5px 0;color:var(--ink);letter-spacing:-.6px}.catalog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.product-card{border-radius:7px;overflow:hidden;background:var(--navy);color:white;box-shadow:0 3px 12px #06111a20}.product-card img{display:block;width:100%;height:125px;object-fit:contain;object-position:center;background:#f1f3f4}.product-card a{display:block;padding:12px 13px;font-size:14px;font-weight:700;min-height:67px}.product-card a span{float:right;color:var(--yellow)}.about{background:var(--navy);color:white;padding:44px 0}.about-grid{display:grid;grid-template-columns: .95fr 1.2fr;align-items:center;gap:42px}.about img{width:100%;height:270px;object-fit:cover;border-radius:4px}.about h2{color:white}.about p{color:#e0e6eb}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-top:20px;font-size:14px}.check-grid span:before{content:'✓';color:var(--yellow);font-weight:900;margin-right:9px}.quote{background:#f7f8f9;padding:48px 0}.quote-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:36px;align-items:center}.phone{font-size:21px;font-weight:800;margin-top:16px}.quote-form{background:white;border:1px solid #e1e5e8;padding:18px;border-radius:8px;box-shadow:0 5px 18px #0b1b2910}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quote-form input,.quote-form textarea{width:100%;border:1px solid #d6dce1;border-radius:5px;padding:12px;font:inherit;font-size:14px}.quote-form textarea{min-height:100px;resize:vertical;margin-top:12px}.quote-form .btn{width:100%;margin-top:12px}.notice{padding:12px;margin-bottom:12px;border-radius:5px;background:#e9f8ec;color:#135b24}.site-footer{background:#06111a;color:white;padding:25px 0 15px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-nav{display:flex;gap:20px;font-size:13px}.footer-bottom{border-top:1px solid #9c7900;margin-top:20px;padding-top:12px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#d4dbe0}.menu-toggle{display:none;background:transparent;color:white;border:1px solid #52606d;padding:8px;border-radius:5px}.small-note{font-size:12px;color:#697782}.wp-block-button__link{background:var(--yellow);color:#111}.alignwide{max-width:1180px}.entry-content{padding:30px 0}
@media(max-width:900px){.main-nav{gap:13px}.header-cta{display:none}.catalog-grid{grid-template-columns:repeat(3,1fr)}.about-grid{gap:25px}.benefit{padding:8px}}
@media(max-width:650px){.header-inner{min-height:68px}.brand-logo{width:165px;height:56px}.footer-brand .brand-logo{width:155px;height:48px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;top:68px;left:0;right:0;background:#06111a;padding:18px 4%;flex-direction:column;align-items:flex-start}.main-nav.is-open{display:flex}.hero-inner{min-height:390px;padding:40px 0}.hero:before{background:linear-gradient(90deg,rgba(3,10,15,.94),rgba(3,10,15,.68))}.hero h1{font-size:36px}.hero p{font-size:15px}.benefit-grid{grid-template-columns:1fr 1fr;row-gap:18px}.benefit:nth-child(2){border-right:0}.catalog-grid{grid-template-columns:repeat(2,1fr);gap:11px}.product-card img{height:115px;object-fit:contain;object-position:center;background:#f1f3f4}.section{padding:35px 0}.section-heading{align-items:start;flex-direction:column}.about-grid,.quote-grid{grid-template-columns:1fr}.about img{height:220px}.check-grid{font-size:13px}.form-grid{grid-template-columns:1fr}.footer-top,.footer-bottom{align-items:flex-start;flex-direction:column}.footer-nav{flex-wrap:wrap}.quote{padding:35px 0}}

/* Ajustes solicitados: hero sin texto incrustado en el fondo y carrusel independiente */
.hero{background:linear-gradient(115deg,#030a0f 0%,#10202b 100%);overflow:hidden}
.hero:before{display:none}
.hero-inner{min-height:350px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:32px;padding:34px 0}
.hero-copy{max-width:100%;position:relative;z-index:1}
.hero h1{overflow-wrap:normal;}
.hero-carousel{position:relative;width:100%;height:auto;aspect-ratio:1400/620;border:1px solid #53606a;border-radius:8px;overflow:hidden;background:#02070b;box-shadow:0 8px 24px #0005}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-slide img{display:block;width:100%;height:100%;object-fit:contain;background:#081018}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border:1px solid #fff9;border-radius:50%;background:#07131dcc;color:#fff;font-size:27px;line-height:1;cursor:pointer}
.carousel-prev{left:12px}.carousel-next{right:12px}
.carousel-dots{position:absolute;z-index:2;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:9px}
.carousel-dots button{width:10px;height:10px;padding:0;border:1px solid white;border-radius:50%;background:#ffffff80;cursor:pointer}
.carousel-dots button.is-active{background:var(--yellow);border-color:var(--yellow)}
.social-links{display:flex;align-items:center;gap:12px}.social-links a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.22);border-radius:7px;color:#fff;transition:background .2s,border-color .2s}.social-links a:hover{color:var(--yellow);border-color:var(--yellow);background:rgba(255,190,0,.08)}.social-links svg{display:block;width:21px;height:21px;fill:currentColor}
@media(max-width:900px){.hero-inner{grid-template-columns:1fr;gap:24px}.hero-carousel{height:auto;aspect-ratio:1400/620}.hero-copy{max-width:650px}}
@media(max-width:650px){.hero-inner{padding:35px 0;gap:22px}.hero-carousel{height:auto;aspect-ratio:1400/620}.hero h1{font-size:36px}.social-links{flex-wrap:wrap}}

/* Catálogo ampliado a seis categorías, incluida Bombas y válvulas */
@media(min-width:901px){.catalog-grid{grid-template-columns:repeat(7,minmax(0,1fr));}}

/* Carrusel: mostrar exclusivamente las fotografías, sin textos superpuestos */
.hero-carousel .hero-slide::before,.hero-carousel .hero-slide::after{display:none!important;content:none!important}
.hero-carousel .hero-slide figcaption,.hero-carousel .hero-slide .caption,.hero-carousel .hero-slide .slide-title,.hero-carousel .hero-slide p,.hero-carousel .hero-slide h1,.hero-carousel .hero-slide h2,.hero-carousel .hero-slide h3{display:none!important}

/* Carrusel: imágenes ajustadas al marco completo sin recorte ni deformación */
.hero-carousel .hero-slide{position:absolute;inset:0;width:100%;height:100%}
.hero-carousel .hero-slide img{width:100%;height:100%;object-fit:contain;object-position:center;background:#081018}

/* Corrección definitiva del carrusel: foto y marco con la misma proporción 1400:620. */
.hero-carousel{width:100%!important;height:auto!important;aspect-ratio:1400/620!important;overflow:hidden!important;padding:0!important}
.hero-carousel .hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.hero-carousel .hero-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;object-position:center!important}
@media(max-width:900px){.hero-carousel{width:100%!important;height:auto!important;aspect-ratio:1400/620!important}}
@media(max-width:650px){.hero-carousel{width:100%!important;height:auto!important;aspect-ratio:1400/620!important}}

/* Carrusel corregido: las nuevas fotografías son panorámicas 1400x620 y llenan el marco. */
.hero-carousel{position:relative!important;width:100%!important;aspect-ratio:1400/620!important;height:auto!important;overflow:hidden!important;padding:0!important;background:#081018!important}
.hero-carousel .hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.hero-carousel .hero-slide img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center!important;background:transparent!important}
@media(max-width:900px){.hero-carousel{width:100%!important;height:auto!important;aspect-ratio:1400/620!important}}
@media(max-width:650px){.hero-carousel{width:100%!important;height:auto!important;aspect-ratio:1400/620!important}}

/* Ajuste final: mostrar la fotografía completa sin recortarla ni deformarla. */
.hero-carousel{aspect-ratio:1400/620!important;background:#081018!important;}
.hero-carousel .hero-slide img{object-fit:contain!important;object-position:center center!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;background:#081018!important;}


/* FIX 1.0.2: carrusel sin márgenes; imágenes cubren todo el marco. */
.hero-carousel{position:relative!important;overflow:hidden!important;background:#081018!important;}
.hero-carousel .hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;}
.hero-carousel .hero-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;background:transparent!important;}

/* Astriva Mining carousel: exact 1400x620 image assets, fill without empty margins */
.hero-carousel{aspect-ratio:1400/620!important;overflow:hidden!important;background:#081018!important}
.hero-carousel .hero-slide img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}

/* Catalog image fix: show complete category images without cropping. */
.product-card img{width:100%;height:125px;object-fit:contain!important;background:#f5f7f9;display:block;}
@media(max-width:650px){.product-card img{height:115px;object-fit:contain!important;background:#f5f7f9;}}

/* Astriva catalog image update: local unique images, full image visible */
.product-card img{display:block;width:100%;height:125px;object-fit:contain!important;object-position:center;background:#f5f7f9;padding:0;}
@media(max-width:650px){.product-card img{height:115px;object-fit:contain!important;object-position:center;background:#f5f7f9;padding:0;}}


/* Catalogo sin margenes: las fotos llenan todo el espacio de cada tarjeta */
.product-card img{display:block!important;width:100%!important;height:125px!important;object-fit:cover!important;object-position:center!important;background:transparent!important;padding:0!important;margin:0!important;border:0!important;}
@media(max-width:650px){.product-card img{height:115px!important;}}

/* FIX definitivo: imágenes a sangre, sin márgenes ni espacios internos */
.product-card{overflow:hidden!important;}
.product-card img{display:block!important;width:100%!important;height:125px!important;max-width:none!important;object-fit:cover!important;object-position:center!important;background:transparent!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;}
@media(max-width:650px){.product-card img{height:115px!important;}}

/* Catálogo: las fotos llenan el marco sin márgenes; contacto por correo */
.product-card img{object-fit:cover!important;object-position:center!important;background:transparent!important}
@media(max-width:650px){.product-card img{object-fit:cover!important}}
.contact-email{margin-top:14px;font-size:16px;font-weight:700;line-height:1.5}.contact-email span{font-size:13px;font-weight:400}.contact-email a{color:#102333;text-decoration:underline;text-underline-offset:3px}

/* Logo visible sobre encabezados oscuros: fondo claro dedicado */
.site-header .brand{background:#fff;padding:4px 9px;border-radius:6px;overflow:hidden;}
.site-header .brand-logo{width:220px;height:66px;object-fit:contain;object-position:center center;}
.site-footer .footer-brand{background:#fff;padding:4px 8px;border-radius:6px;display:inline-flex;align-items:center;overflow:hidden;}
.site-footer .footer-brand .brand-logo{object-position:center center;}
@media(max-width:650px){.site-header .brand{padding:3px 6px}.site-header .brand-logo{width:165px;height:56px}.site-footer .footer-brand{padding:3px 6px}}


/* Logo sin fondo: transparencia real sobre el encabezado y pie */
.site-header .brand, .site-footer .footer-brand { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.site-header .brand-logo, .site-footer .footer-brand .brand-logo { background: transparent !important; object-fit: contain; }
@media(max-width:650px){ .site-header .brand, .site-footer .footer-brand { background: transparent !important; padding: 0 !important; } }

/* Opción 3 reforzada: contorno claro visible y halo suave, sin fondo */
.site-header .brand-logo,
.site-footer .footer-brand .brand-logo {
  background: transparent !important;
  filter:
    drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 0 2px rgba(255,255,255,.98))
    drop-shadow(0 0 4px rgba(255,255,255,.88))
    drop-shadow(0 0 7px rgba(255,255,255,.48));
}
.site-header .brand, .site-footer .footer-brand {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}


/* Ajuste de encabezado: logo cerca del borde izquierdo */
.site-header .header-inner {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.site-header .brand { margin-left: 0 !important; }
@media (max-width: 650px) {
  .site-header .header-inner { padding-left: 8px !important; padding-right: 8px !important; }
}


/* Ajuste final: logo pegado a la orilla izquierda y halo más discreto */
.site-header .header-inner {
  width: 100% !important; max-width: none !important;
  margin-left: 0 !important; margin-right: 0 !important;
  padding-left: 0 !important; padding-right: 12px !important;
  box-sizing: border-box !important;
}
.site-header .brand { margin-left: 0 !important; padding-left: 0 !important; }
.site-header .brand-logo, .site-footer .footer-brand .brand-logo {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.65))
          drop-shadow(0 0 2px rgba(255,255,255,.42))
          drop-shadow(0 0 4px rgba(255,255,255,.18)) !important;
}
@media (max-width: 650px) {
  .site-header .header-inner { padding-left: 0 !important; padding-right: 6px !important; }
}


/* Logo al extremo izquierdo: elimina el margen del contenedor y desplaza el enlace hasta el borde */
html, body { overflow-x: clip; }
.site-header { padding-left: 0 !important; margin-left: 0 !important; }
.site-header .header-inner.container {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
}
.site-header .brand {
  display: block !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: translateX(-2px) !important;
}
.site-header .brand-logo { display: block !important; margin-left: 0 !important; }
@media (max-width: 650px) {
  .site-header .header-inner.container { padding-left: 0 !important; padding-right: 4px !important; }
  .site-header .brand { transform: translateX(-2px) !important; }
}


/* Ajuste solicitado: ambos logos completos y al extremo izquierdo */
.site-header .header-inner.container {
  padding-left: 0 !important;
}
.site-header .brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: none !important;
}
.site-header .brand-logo {
  object-fit: contain !important;
  object-position: left center !important;
}
.site-footer .footer-top {
  padding-left: 0 !important;
}
.site-footer .footer-brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.site-footer .footer-brand .brand-logo {
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 650px) {
  .site-header .header-inner.container { padding-left: 0 !important; }
  .site-header .brand { transform: none !important; }
}


/* Cambios solicitados: botón flotante de WhatsApp y ocultar icono de cookies */
.astriva-floating-whatsapp{position:fixed;right:22px;bottom:22px;z-index:99999;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:#25d366;color:#fff;border-radius:50%;box-shadow:0 4px 16px rgba(0,0,0,.28);transition:transform .2s,box-shadow .2s}
.astriva-floating-whatsapp:hover{transform:translateY(-3px);box-shadow:0 7px 20px rgba(0,0,0,.32);color:#fff}
.astriva-floating-whatsapp svg{width:34px;height:34px;fill:currentColor}
/* Oculta el acceso flotante/icono de cookies si lo agrega un plugin de consentimiento */
#cookie-icon,#cookie-button,.cookie-icon,.cookie-button,.cookie-widget,.cookie-consent-icon,
#CookiebotWidget,#CookiebotWidget *,.CookiebotWidget,
#cookieyes浮层,#cookieyes-container,.cky-btn-revisit-wrapper,.cky-revisit-bottom-left,.cky-revisit-bottom-right,
.cmplz-manage-consent,.cmplz-cookiebanner-container .cmplz-manage-consent,
.cookieyes-revisit,.cookieyes-banner-revisit,.iubenda-tp-btn,.cc-revoke,
#cookie-notice,#cookie-law-info-bar,#cookie-law-info-again,#cookieyes,
#cookie-settings-button,.cookie-settings-button,.cookie-revisit,
[id*="cookie" i],[class*="cookie-revisit" i],[class*="cookie-widget" i],[id*="cookiebot" i],
[id*="cookieyes" i],[class*="cookieyes-revisit" i],[class*="cky-revisit" i],
[data-cookie-notice], [data-cookieyes], [data-cky-tag="revisit-consent"],
button[aria-label*="cookie" i],a[aria-label*="cookie" i],button[title*="cookie" i],a[title*="cookie" i],
button[aria-label*="cookies" i],a[aria-label*="cookies" i],button[title*="cookies" i],a[title*="cookies" i]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:650px){.astriva-floating-whatsapp{width:56px;height:56px;right:16px;bottom:16px}.astriva-floating-whatsapp svg{width:31px;height:31px}}

/* Refuerzo: ocultar botones de reapertura/ajustes de consentimiento de cookies */
#cookie-law-info-again,#cookie-notice .cookie-notice-container,#cookieyes-floating-button,
#cky-consent,#cky-btn-revisit-wrapper,.cky-btn-revisit-wrapper,
.cmplz-manage-consent,.cmplz-manage-consent button,
[data-testid*="cookie" i],[data-testid*="consent" i],
[id*="consent-revisit" i],[class*="consent-revisit" i],
[id*="revisit-consent" i],[class*="revisit-consent" i],
[id*="cookie-button" i],[class*="cookie-button" i]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
