/* PROINTEX — modo claro predeterminado, oscuro opcional. No altera la composición Aero. */
:root{color-scheme:light}
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  flex:none;min-height:42px;padding:0 12px;border-radius:13px;
  border:1px solid #c4d7e9;color:#18416b;
  background:rgba(248,252,255,.83);font-family:'Manrope',system-ui,sans-serif;
  font-size:11px;font-weight:800;line-height:1;cursor:pointer;
  transition:background .22s,border-color .22s,transform .22s;
}
.theme-toggle:hover{background:#fff;transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid #d82415;outline-offset:3px}
.theme-toggle svg{flex:none}
.theme-icon-moon{display:none}
[data-theme="dark"] .theme-icon-moon{display:block}
[data-theme="dark"] .theme-icon-sun{display:none}
/* Home: coordinated with the existing navbar, not an extra floating pill. */
body:not(.site-internal) .site-header .nav-shell{gap:14px}
body:not(.site-internal) .site-header .desktop-nav{gap:0}
body:not(.site-internal) .site-header .desktop-nav a{padding-inline:9px}
body:not(.site-internal) .theme-toggle{order:2}
body:not(.site-internal) .menu-toggle{order:3}
/* Internal pages: theme switch sits alongside the cart and menu. */
.site-internal .theme-toggle{order:2}
.site-internal .cart-trigger{order:3}
.site-internal .menu-toggle{order:4}
@media(max-width:1150px){
  .theme-toggle{padding:0 10px}
  .theme-toggle-text{display:none}
  body:not(.site-internal) .site-header .nav-shell{gap:8px}
}
@media(max-width:820px){
  body:not(.site-internal) .site-header .nav-shell{justify-content:space-between}
  body:not(.site-internal) .theme-toggle{margin-left:auto;min-width:42px;min-height:42px}
  body:not(.site-internal) .menu-toggle{margin-left:0}
}
@media(max-width:980px){
  .site-internal .theme-toggle{margin-left:auto;min-width:42px;min-height:42px}
}
/* Precise fix for the headline clipped in a 346-390px phone. */
.auto-machine-copy{min-width:0}
.auto-machine-copy h3{max-width:100%;overflow-wrap:normal;word-break:normal}
.auto-title-line{display:block;white-space:nowrap}
.auto-title-red{color:#ff4542}
@media(max-width:560px){
  .auto-machine-feature{grid-template-columns:minmax(0,1fr)}
  .auto-machine-copy{padding:24px clamp(18px,5vw,25px) 0;min-width:0}
  .auto-machine-copy h3{font-size:clamp(28px,8.1vw,43px);letter-spacing:-.025em;line-height:.97;margin:18px 0 15px}
  .auto-title-long{font-size:.93em;letter-spacing:-.03em}
  .auto-machine-copy p{max-width:100%;line-height:1.75;overflow-wrap:break-word}
  .auto-feature-eyebrow{max-width:100%;line-height:1.6;letter-spacing:.07em}
  .auto-machine-photo{min-width:0}
  .auto-machine-label{left:20px;right:20px;text-align:center}
}
@media(max-width:375px){.auto-machine-copy h3{font-size:clamp(27px,7.85vw,32px)}.auto-machine-copy{padding-inline:16px}}

/* Dark mode — complementary palette across every PHP route. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#0a1729;color:#dceafb}
html[data-theme="dark"] body.site-internal{background:#0b192d;color:#e8f3ff}
html[data-theme="dark"] body.site-internal::before{background:radial-gradient(ellipse 780px 520px at 4% 14%,#1d4a713d,transparent 77%),radial-gradient(ellipse 760px 450px at 95% 34%,#1d426b40,transparent 75%),linear-gradient(#0b192d,#0b192d)}
html[data-theme="dark"] body.site-internal .site-header,
html[data-theme="dark"] body:not(.site-internal) .site-header{background:linear-gradient(120deg,#08182edc,#112e4ff0);border-bottom-color:#5480aa39;box-shadow:0 8px 32px #000b17a3}
html[data-theme="dark"] .theme-toggle{background:#142f4c;color:#d7eafe;border-color:#3b5d7d}
html[data-theme="dark"] .theme-toggle:hover{background:#1d4064}
html[data-theme="dark"] .desktop-nav a,
html[data-theme="dark"] body.site-internal .desktop-nav a{color:#d0e3f6}
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .desktop-nav a.nav-active,
html[data-theme="dark"] body.site-internal .desktop-nav a:hover,
html[data-theme="dark"] body.site-internal .desktop-nav a.nav-active{color:#fff;background:#214363}
html[data-theme="dark"] body.site-internal .desktop-nav a.nav-active::after{background:#ff5448}
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] body.site-internal .menu-toggle{background:#163655;border-color:#426482}
html[data-theme="dark"] .menu-toggle span,
html[data-theme="dark"] body.site-internal .menu-toggle span{background:#e6f3ff}
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] body.site-internal .mobile-menu{background:#0c213a;border-color:#305477;color:#e9f4ff}
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] body.site-internal .mobile-menu-body a{color:#eaf4ff;background:#142e4b;border-color:#355474}
html[data-theme="dark"] body.site-internal .cart-trigger{background:#153451;border-color:#3d6284;color:#f1f7ff}
/* Homepage approved hero is already dark; transform only light regions. */
html[data-theme="dark"] .solutions-section{background:radial-gradient(ellipse 660px 460px at 8% 25%,#264b7049,transparent 76%),linear-gradient(145deg,#0b1b32,#122d4b)}
html[data-theme="dark"] .section-number{color:#93c3ef}
html[data-theme="dark"] .section-heading h2{color:#f2f8ff}
html[data-theme="dark"] .section-heading-main p{color:#bbd1e8}
html[data-theme="dark"] .solution-small{background:linear-gradient(140deg,#173556,#0f2845);border-color:#426a8b;color:#f5f9ff}
html[data-theme="dark"] .solution-small h3,
html[data-theme="dark"] .solution-small p,
html[data-theme="dark"] .solution-small .card-tag{color:#e9f5ff}
html[data-theme="dark"] .solution-small .mini-pill{background:#24476a;color:#fff;border-color:#456a8e}
html[data-theme="dark"] .solution-parts .parts-art{background:transparent}
html[data-theme="dark"] .site-footer{background:linear-gradient(125deg,#09182c,#112c49)}
html[data-theme="dark"] .site-footer .footer-top p,
html[data-theme="dark"] .site-footer .footer-top nav a,
html[data-theme="dark"] .site-footer .footer-bottom{color:#b0cee8}
html[data-theme="dark"] .site-footer .footer-bottom{border-color:#46658a}
/* Interior headings, cards, catalog, service and footer. */
html[data-theme="dark"] body.site-internal .page-intro,
html[data-theme="dark"] body.site-internal .shop-top,
html[data-theme="dark"] body.site-internal .contact-intro{background:radial-gradient(ellipse 550px 320px at 86% 20%,#25588780,transparent 75%),linear-gradient(135deg,#0b203a,#14385b);border-color:#315579}
html[data-theme="dark"] body.site-internal .page-intro::before,
html[data-theme="dark"] body.site-internal .shop-top::before,
html[data-theme="dark"] body.site-internal .contact-intro::before{background:radial-gradient(ellipse,#285c894d,transparent 67%)}
html[data-theme="dark"] body.site-internal .page-intro h1,
html[data-theme="dark"] body.site-internal .shop-top h1,
html[data-theme="dark"] body.site-internal .contact-intro h1,
html[data-theme="dark"] body.site-internal .section-head h2,
html[data-theme="dark"] body.site-internal .equipment-content h2,
html[data-theme="dark"] body.site-internal .single-content h1,
html[data-theme="dark"] body.site-internal .contact-split h2,
html[data-theme="dark"] body.site-internal .map-heading h2,
html[data-theme="dark"] body.site-internal .about-content h2,
html[data-theme="dark"] body.site-internal .digital-intro h1{color:#f3f9ff}
html[data-theme="dark"] body.site-internal .page-intro p,
html[data-theme="dark"] body.site-internal .shop-top p,
html[data-theme="dark"] body.site-internal .contact-intro p,
html[data-theme="dark"] body.site-internal .equipment-content p,
html[data-theme="dark"] body.site-internal .auto-description p,
html[data-theme="dark"] body.site-internal .about-content p,
html[data-theme="dark"] body.site-internal .contact-split p{color:#bcd0e5}
html[data-theme="dark"] body.site-internal .eyebrow,
html[data-theme="dark"] body.site-internal .section-line{color:#92bde5;border-color:#3d5c7a}
html[data-theme="dark"] body.site-internal .equipment-item,
html[data-theme="dark"] body.site-internal .equipment-item.is-reversed,
html[data-theme="dark"] body.site-internal .single-content,
html[data-theme="dark"] body.site-internal .contact-form-col,
html[data-theme="dark"] body.site-internal .about-benefits a,
html[data-theme="dark"] body.site-internal .doc-item{background:linear-gradient(145deg,#152e4b,#102540);border-color:#38587a;box-shadow:0 12px 33px #050e1e44;color:#e7f3ff}
html[data-theme="dark"] body.site-internal .equipment-image,
html[data-theme="dark"] body.site-internal .single-image,
html[data-theme="dark"] body.site-internal .shop-top-art,
html[data-theme="dark"] body.site-internal .auto-shot,
html[data-theme="dark"] body.site-internal .auto-detail-grid img{background:radial-gradient(ellipse at 50% 55%,#29587e,#11253f);border-color:#446987}
html[data-theme="dark"] body.site-internal .part-card{background:#152d49;border-color:#325473;color:#e9f5ff}
html[data-theme="dark"] body.site-internal .part-photo{background:radial-gradient(ellipse at 50% 40%,#385373,#1a334e)}
html[data-theme="dark"] body.site-internal .part-name,
html[data-theme="dark"] body.site-internal .part-bottom strong,
html[data-theme="dark"] body.site-internal .single-price{color:#fff}
html[data-theme="dark"] body.site-internal .shop-search,
html[data-theme="dark"] body.site-internal .shop-toolbar select,
html[data-theme="dark"] body.site-internal .contact-form-col input,
html[data-theme="dark"] body.site-internal .contact-form-col select,
html[data-theme="dark"] body.site-internal .contact-form-col textarea{background:#0e2340;border-color:#476582;color:#f0f7ff}
html[data-theme="dark"] body.site-internal .contact-form-col input::placeholder,
html[data-theme="dark"] body.site-internal .contact-form-col textarea::placeholder{color:#9ebedc}
html[data-theme="dark"] body.site-internal .phone-grid a{background:#173452;border-color:#355d81;color:#eaf5ff}
html[data-theme="dark"] body.site-internal .doc-item a{color:#ff7e76}
html[data-theme="dark"] body.site-internal .map-embed{border-color:#345b7a}
html[data-theme="dark"] body.site-internal .digital-card{background:linear-gradient(125deg,#08182f,#153d66)}
html[data-theme="dark"] body.site-internal .digital-technical{background:#142e4d;border-color:#335777}
html[data-theme="dark"] body.site-internal .aero-footer{background:#081a30;color:#dcecff}
html[data-theme="dark"] body.site-internal .footer-top{border-color:#335779}
html[data-theme="dark"] body.site-internal .footer-top p,
html[data-theme="dark"] body.site-internal .footer-top nav a,
html[data-theme="dark"] body.site-internal .footer-bottom{color:#a8c9e9}
html[data-theme="dark"] body.site-internal .cart-drawer{background:#0d223d;color:#f4f9ff}
html[data-theme="dark"] body.site-internal .cart-drawer select{background:#163350;color:#fff;border-color:#436486}
html[data-theme="dark"] body.site-internal .cart-drawer button:not(.button){color:#fff}
html[data-theme="dark"] body.site-internal .cart-item{border-color:#47617a}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
/* All large content sections must change with the theme, never white panels with white text. */
html[data-theme="dark"] body.site-internal .contact-zone,
html[data-theme="dark"] body.site-internal .map-zone,
html[data-theme="dark"] body.site-internal .shop-main,
html[data-theme="dark"] body.site-internal .equipment-gallery,
html[data-theme="dark"] body.site-internal .single-product,
html[data-theme="dark"] body.site-internal .auto-store-content,
html[data-theme="dark"] body.site-internal .automated-offer,
html[data-theme="dark"] body.site-internal .auto-video,
html[data-theme="dark"] body.site-internal .auto-detail,
html[data-theme="dark"] body.site-internal .docs-zone,
html[data-theme="dark"] body.site-internal .about-content,
html[data-theme="dark"] body.site-internal .card-page{background:transparent;color:#e6f2ff}
html[data-theme="dark"] body.site-internal .map-zone{background:#102941}
html[data-theme="dark"] body.site-internal .contact-split,
html[data-theme="dark"] body.site-internal .contact-split>div:first-child,
html[data-theme="dark"] body.site-internal .map-heading,
html[data-theme="dark"] body.site-internal .map-address{color:#e7f3ff}
html[data-theme="dark"] body.site-internal .contact-split a,
html[data-theme="dark"] body.site-internal .map-address a{color:#a6d9ff}
html[data-theme="dark"] body.site-internal .contact-split h2,
html[data-theme="dark"] body.site-internal .map-heading h2{color:#f7fbff}
html[data-theme="dark"] body.site-internal .map-heading p,
html[data-theme="dark"] body.site-internal .map-zone p,
html[data-theme="dark"] body.site-internal .contact-zone p{color:#b9d2ea}
html[data-theme="dark"] body.site-internal .contact-form-col h3{color:#f6faff}
html[data-theme="dark"] body.site-internal .contact-form-col label{color:#d8edff}
html[data-theme="dark"] body.site-internal .phone-grid strong{color:#f4f9ff}
html[data-theme="dark"] .parts-slide{background:linear-gradient(153deg,#173555,#102641);border-color:#315777;color:#e9f6ff}
html[data-theme="dark"] .parts-slide figure{background:radial-gradient(ellipse at 48% 45%,#315675,#142c47)}
html[data-theme="dark"] .parts-slide h3{color:#f4f9ff}
html[data-theme="dark"] .part-brand{color:#ff7f73}
html[data-theme="dark"] .part-sku{color:#accbe9}
html[data-theme="dark"] .slide-cta{color:#beddf7;border-color:#466583}



/* Correcciones V-final: blancos de producto, contraste y marcos eliminados. */
html[data-theme="dark"] body.site-internal .desktop-nav a.nav-active,
html[data-theme="dark"] body.site-internal .desktop-nav a:hover {
  background:transparent;color:#f4f9ff;box-shadow:none;
}
html[data-theme="dark"] body.site-internal .desktop-nav a.nav-active::after {
  height:2px;bottom:5px;background:#ed382b;
}
/* Evita el panel rectangular gigante que quedaba por debajo de las fichas. */
html[data-theme="dark"] body.site-internal .parts-grid {
  background:transparent;border:0;box-shadow:none;gap:17px;
}
/* Las tarjetas de las refacciones son claras EN AMBOS MODOS, incluso en la tienda oscura. */
html[data-theme="dark"] body.site-internal .part-card {
  background:#fff;border:1px solid #e4edf4;color:#132c4d;
  box-shadow:0 13px 28px rgba(0,8,20,.18);
}
html[data-theme="dark"] body.site-internal .part-card:hover {
  background:#f7fbff;box-shadow:0 18px 36px rgba(0,8,20,.28);
}
html[data-theme="dark"] body.site-internal .part-photo {
  background:radial-gradient(ellipse at 50% 45%,#fff 12%,#eef5fb 100%);
  border:0;
}
html[data-theme="dark"] body.site-internal .part-photo img {mix-blend-mode:multiply;filter:none}
html[data-theme="dark"] body.site-internal .part-card .micro {color:#587089}
html[data-theme="dark"] body.site-internal .part-name,
html[data-theme="dark"] body.site-internal .part-bottom strong {color:#0d2748}
html[data-theme="dark"] body.site-internal .part-name:hover {color:#d82415}
html[data-theme="dark"] body.site-internal .part-plus {background:#d82415;color:#fff}
/* El carrusel de refacciones en el inicio también destaca en blanco. */
html[data-theme="dark"] .parts-slide {
  background:#fff;border:1px solid rgba(228,238,248,.9);color:#102d4f;
}
html[data-theme="dark"] .parts-slide figure {background:radial-gradient(ellipse,#fff,#edf5fc)}
html[data-theme="dark"] .parts-slide h3 {color:#102d4f}
html[data-theme="dark"] .parts-slide .part-brand {color:#ce201b}
html[data-theme="dark"] .parts-slide .part-sku {color:#577089}
html[data-theme="dark"] .parts-slide .slide-cta {color:#164875;border-color:#dce8f3}
/* PNGs sin recuadros ni bordes dobles — un solo contenedor exterior. */
html[data-theme="dark"] body.site-internal .equipment-image,
html[data-theme="dark"] body.site-internal .single-image,
html[data-theme="dark"] body.site-internal .auto-shot,
html[data-theme="dark"] body.site-internal .page-intro-art,
html[data-theme="dark"] body.site-internal .shop-top-art {
  background:radial-gradient(ellipse at 50% 60%,rgba(80,142,196,.20),transparent 73%);
  border:0;box-shadow:none;outline:0;
}
html[data-theme="dark"] body.site-internal .equipment-image::before,
html[data-theme="dark"] body.site-internal .equipment-image::after {content:none;display:none;border:0}
html[data-theme="dark"] body.site-internal .auto-detail-grid img {
  background:transparent;border:0;outline:0;box-shadow:none;
}
/* Contacto: celdas separadas sin el grid de líneas superpuestas. */
html[data-theme="dark"] body.site-internal .phone-grid {background:transparent;border:0;gap:8px}
html[data-theme="dark"] body.site-internal .phone-grid a {
  background:linear-gradient(135deg,#183755,#122e4b);
  border:1px solid #385d7b;box-shadow:none;color:#fff;
}
html[data-theme="dark"] body.site-internal .phone-grid strong {color:#fff}
html[data-theme="dark"] body.site-internal .phone-grid a:hover {background:#224462}
/* Carrito: el total nunca sale del drawer y los controles son legibles. */
html[data-theme="dark"] body.site-internal .cart-total,
html[data-theme="dark"] body.site-internal .cart-bottom {border-color:#3c5772}
html[data-theme="dark"] body.site-internal .cart-qty button {
  background:#1e4567;border-color:#486d90;color:#fff;
}
html[data-theme="dark"] body.site-internal .cart-item small,
html[data-theme="dark"] body.site-internal .cart-disclaimer {color:#abc2d9}
@media(max-width:760px){
  html[data-theme="dark"] body.site-internal .parts-grid{gap:11px}
}

/* V12: tarjeta digital legible incluso con interfaz oscura. */
html[data-theme="dark"] body.site-internal .digital-card-actions{background:#fff!important;border:0!important}
html[data-theme="dark"] body.site-internal .digital-card-actions a{background:#edf4fc!important;border-color:#cfdeeb!important;color:#0b2b52!important}
html[data-theme="dark"] body.site-internal .digital-card-actions b{color:#d82415!important}
html[data-theme="dark"] body.site-internal .digital-technical{border-top:0!important;background:transparent!important}
