/* Tema A1 Filters: boton + modo claro. El modo oscuro es el diseno base de cada pagina. */
.theme-toggle{position:fixed;right:18px;bottom:18px;z-index:2000;width:46px;height:46px;border-radius:50%;border:1px solid rgba(var(--amarillo-rgb,245,200,24),.55);background:rgba(17,17,17,.6);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:var(--amarillo,#F5C818);display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.35);transition:transform .2s,background .2s;padding:0}
.theme-toggle:hover{transform:scale(1.08);background:#111}
.theme-toggle:focus-visible{outline:3px solid var(--amarillo,#F5C818);outline-offset:3px}
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .3s,color .3s,border-color .3s,fill .3s !important}
@media(max-width:760px){.theme-toggle{width:38px;height:38px;right:14px;bottom:14px}}
/* dentro del menu: ya no flota, se acomoda como un elemento mas de la barra */
.theme-toggle--inline{position:static;width:36px;height:36px;margin-left:12px;flex-shrink:0;box-shadow:none}
@media(max-width:760px){.theme-toggle--inline{width:32px;height:32px}}

/* ================= MODO CLARO ================= */
html[data-theme=light]{color-scheme:light;--beige:#000000}
html[data-theme=light] .theme-toggle{background:rgba(255,255,255,.7);color:var(--verde,#0E5B61);border-color:var(--verde,#0E5B61);box-shadow:0 8px 22px rgba(0,0,0,.15)}
html[data-theme=light] .theme-toggle:hover{background:#fff}

/* ---- base comun (paginas internas) ---- */
html[data-theme=light] body{background:#fff;color:#141414}
html[data-theme=light] .page{background:radial-gradient(circle at 78% 10%,rgba(var(--amarillo-rgb,245,200,24),.2),transparent 28%),linear-gradient(180deg,#fff,#F6F9F9 60%,#fff)}
html[data-theme=light] .nav{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.06)}
html[data-theme=light] .hero{border-bottom-color:rgba(var(--verde-rgb,14,91,97),.15)}
html[data-theme=light] .eyebrow,html[data-theme=light] h1 em,html[data-theme=light] h1 span,html[data-theme=light] .family,
html[data-theme=light] .stat strong,html[data-theme=light] .related-title h2,html[data-theme=light] .search i,html[data-theme=light] .card i,
html[data-theme=light] .meta,html[data-theme=light] .cta,html[data-theme=light] .app-count strong,html[data-theme=light] .icon{color:var(--verde,#0E5B61)}
html[data-theme=light] .card,html[data-theme=light] .result-card,html[data-theme=light] .panel,html[data-theme=light] .count,
html[data-theme=light] .empty-panel,html[data-theme=light] .stat,html[data-theme=light] .line-card,html[data-theme=light] .box{background:#fff;border-color:rgba(var(--verde-rgb,14,91,97),.2);box-shadow:0 4px 16px rgba(0,0,0,.05)}
html[data-theme=light] .card:hover,html[data-theme=light] .result-card:hover,html[data-theme=light] .line-card:hover,html[data-theme=light] .panel:hover{box-shadow:0 14px 30px rgba(0,0,0,.12)}
html[data-theme=light] .icon{background:#EEF5F5}
html[data-theme=light] .ref,html[data-theme=light] .prod-name,html[data-theme=light] .result-ref,html[data-theme=light] .result-name,html[data-theme=light] .uses span,
html[data-theme=light] .line-suggestion-text strong{color:#141414}
html[data-theme=light] .meta,html[data-theme=light] .cta{border-top-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .search input,html[data-theme=light] .search-tools input,html[data-theme=light] .field{background:#fff;color:#141414;border-color:rgba(var(--verde-rgb,14,91,97),.28)}
html[data-theme=light] .spec,html[data-theme=light] .chip,html[data-theme=light] .app-count,html[data-theme=light] .table-wrap{background:#F6F9F9;border-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .spec strong,html[data-theme=light] .brand-pill{color:#141414}
html[data-theme=light] .spec small,html[data-theme=light] .muted,html[data-theme=light] .app-count span{color:rgba(0,0,0,.66)}
html[data-theme=light] .chip,html[data-theme=light] td{color:rgba(0,0,0,.78);border-bottom-color:rgba(var(--verde-rgb,14,91,97),.15)}
html[data-theme=light] .chip-oem{background:rgba(var(--verde-rgb,14,91,97),.08);border-color:rgba(var(--verde-rgb,14,91,97),.4);color:#141414}
html[data-theme=light] th{background:#E6EFEF;color:var(--verde,#0E5B61);border-bottom-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .note,html[data-theme=light] .count-360,html[data-theme=light] .app-head p,html[data-theme=light] .empty-row{color:rgba(0,0,0,.66)}
html[data-theme=light] .photo-thumb{background:#fff}

/* ---- portada ---- */
html[data-theme=light] .pg{background:#fff;color:#141414}
html[data-theme=light] .nav{border-bottom-color:var(--verde,#0E5B61)}
html[data-theme=light] .hero,html[data-theme=light] .tech-search-sec,html[data-theme=light] .mv-sec,html[data-theme=light] .footer{background:#fff}
html[data-theme=light] .factory-video-sec,html[data-theme=light] .contact-sec,html[data-theme=light] .feat-sec,html[data-theme=light] .vt-rail-standalone{background:#F3F7F7;border-color:rgba(var(--verde-rgb,14,91,97),.12)}
html[data-theme=light] #catalogo{background:#fff !important}
html[data-theme=light] .hero .a1-circuito,html[data-theme=light] .footer .a1-circuito,html[data-theme=light] .factory-video-sec .a1-circuito{background-image:url('assets/patron-circuito-oscuro.svg');opacity:.14}
html[data-theme=light] .nav-links a{color:rgba(0,0,0,.78)}
html[data-theme=light] .nav-links a:hover,html[data-theme=light] .footer-social a:hover,html[data-theme=light] .contact-row a:hover{color:var(--verde,#0E5B61)}
html[data-theme=light] .hero h1,html[data-theme=light] .factory-video-copy h2,html[data-theme=light] .mv-title{color:#141414}
html[data-theme=light] .hero h1 .accent,html[data-theme=light] .factory-video-copy h2 span,html[data-theme=light] .tech-title em,html[data-theme=light] .stat-num,
html[data-theme=light] .sec-eye,html[data-theme=light] .tech-kicker,html[data-theme=light] .vehicle-label,html[data-theme=light] .cat-icon,
html[data-theme=light] .mv-label,html[data-theme=light] .feat-ref,html[data-theme=light] .contact-row i,html[data-theme=light] .hero-eyebrow{color:var(--verde,#0E5B61)}
html[data-theme=light] .valores-sec .sec-eye,html[data-theme=light] .valores-sec .val-icon{color:var(--amarillo,#F5C818)}
html[data-theme=light] .val-icon{color:var(--amarillo,#F5C818)}
html[data-theme=light] .hero-eyebrow{background:rgba(var(--amarillo-rgb,245,200,24),.2);border-color:rgba(var(--verde-rgb,14,91,97),.3)}
html[data-theme=light] .hero p,html[data-theme=light] .factory-video-copy p{color:rgba(0,0,0,.78)}

html[data-theme=light] .hero-stats,html[data-theme=light] .hero-stat+.hero-stat{border-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .stat-lbl,html[data-theme=light] .cat-count{color:rgba(0,0,0,.66)}
html[data-theme=light] .btn-verde{color:var(--verde,#0E5B61)}
html[data-theme=light] .tech-search-sec{border-color:rgba(var(--verde-rgb,14,91,97),.12)}
html[data-theme=light] .tech-title{color:#141414}
html[data-theme=light] .tech-sub,html[data-theme=light] .vehicle-result{color:rgba(0,0,0,.78)}
html[data-theme=light] .vehicle-search{background:#F6F9F9;border-color:rgba(var(--verde-rgb,14,91,97),.2);box-shadow:0 12px 30px rgba(0,0,0,.08)}
html[data-theme=light] .search-tabs{background:#E6EFEF;border-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .search-tab{color:rgba(0,0,0,.78)}
html[data-theme=light] .search-tab.is-active{color:#fff}
html[data-theme=light] .vehicle-row select,html[data-theme=light] .reference-row input,html[data-theme=light] .c-form input,html[data-theme=light] .c-form textarea,html[data-theme=light] .c-form select{background-color:#fff;color:#141414;border-color:rgba(var(--verde-rgb,14,91,97),.28)}
html[data-theme=light] .reference-row input::placeholder,html[data-theme=light] .c-form input::placeholder,html[data-theme=light] .c-form textarea::placeholder{color:rgba(0,0,0,.45)}
html[data-theme=light] .c-form select option{background:#fff;color:#141414}
html[data-theme=light] .sec-sub,html[data-theme=light] .contact-info p,html[data-theme=light] .mv-text{color:rgba(0,0,0,.66)}
html[data-theme=light] .valores-sec .sec-sub{color:rgba(255,255,255,.7)}
html[data-theme=light] .sec-h2{background-image:linear-gradient(90deg,#141414 0%,var(--verde,#0E5B61) 45%,#141414 100%)}
html[data-theme=light] .valores-sec .sec-h2{background-image:linear-gradient(90deg,#fff 0%,#D9B36C 40%,var(--amarillo,#F5C818) 58%,#fff 78%)}
html[data-theme=light] .cat-card,html[data-theme=light] .mv-card,html[data-theme=light] .feat-card{background:#fff;border-color:rgba(var(--verde-rgb,14,91,97),.2);box-shadow:0 4px 14px rgba(0,0,0,.05)}
html[data-theme=light] .cat-card:hover{background:#F6F9F9}
html[data-theme=light] .cat-name,html[data-theme=light] .feat-name{color:#141414}
html[data-theme=light] .feat-img{background:#fff;border-bottom:1px solid rgba(var(--verde-rgb,14,91,97),.12)}
html[data-theme=light] .contact-row,html[data-theme=light] .contact-row a{color:rgba(0,0,0,.78)}
html[data-theme=light] .instagram-btn{background:#fff;color:#141414;border-color:rgba(var(--verde-rgb,14,91,97),.3)}
html[data-theme=light] .email-btn{background:#eee;color:rgba(0,0,0,.5);border-color:#ddd}
html[data-theme=light] .email-btn i{color:rgba(0,0,0,.66)}
html[data-theme=light] .footer-copy{color:rgba(0,0,0,.66)}
html[data-theme=light] .footer-social a{color:rgba(0,0,0,.66)}
html[data-theme=light] .dist-form-msg{filter:brightness(.6)}

/* ---- panel /admin ---- */
html[data-theme=light] header{background:#fff;border-bottom-color:var(--verde,#0E5B61)}
html[data-theme=light] header h1,html[data-theme=light] .login h2,html[data-theme=light] #mTitle{color:var(--verde,#0E5B61)}
html[data-theme=light] .login,html[data-theme=light] .box{background:#fff;border-color:rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] textarea{background:#fff;color:#141414;border-color:rgba(var(--verde-rgb,14,91,97),.3)}
html[data-theme=light] button.sec{background:#E6EFEF;color:#141414;border-color:rgba(var(--verde-rgb,14,91,97),.3)}
html[data-theme=light] td,html[data-theme=light] th{border-bottom-color:rgba(var(--verde-rgb,14,91,97),.15)}
html[data-theme=light] tr:hover td{background:#F6F9F9}
html[data-theme=light] .tag{background:#E6EFEF;color:var(--verde,#0E5B61)}
html[data-theme=light] .modal{background:rgba(255,255,255,.85)}
html[data-theme=light] .ph{border-color:rgba(var(--verde-rgb,14,91,97),.3);color:rgba(0,0,0,.66)}
html[data-theme=light] label{color:var(--verde,#0E5B61)}
html[data-theme=light] .hint{color:rgba(0,0,0,.66)}

@media print{.theme-toggle{display:none}}

/* titulos con color fijo en linea (mision/vision, contacto) */
html[data-theme=light] .mv-sec .sec-h2,html[data-theme=light] .contact-sec .sec-h2{color:transparent !important}
html[data-theme=light] .contact-sec .sec-sub{color:rgba(0,0,0,.66) !important}
html[data-theme=light] .result-family{color:var(--verde,#0E5B61)}

/* enlace "saltar al contenido" (accesibilidad) */
.skip-link{position:fixed;left:12px;top:-60px;z-index:3000;background:var(--amarillo,#F5C818);color:#000;font:700 14px 'Arial Narrow','A1 Narrow','A1 Narrow Fallback',Arial,sans-serif;padding:10px 16px;border-radius:4px;text-decoration:none;transition:top .15s}
.skip-link:focus{top:12px;outline:3px solid var(--verde,#0E5B61)}
/* migas de pan */
.crumbs{font-size:13px;letter-spacing:.04em;margin:0 0 16px;color:rgba(255,255,255,.7)}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0}
.crumbs li+li:before{content:"›";margin-right:6px;color:var(--amarillo,#F5C818)}
.crumbs a{color:inherit;text-decoration:none}.crumbs a:hover{color:var(--amarillo,#F5C818);text-decoration:underline}
.crumbs [aria-current]{color:var(--amarillo,#F5C818);font-weight:700}
html[data-theme=light] .crumbs{color:rgba(0,0,0,.66)}
html[data-theme=light] .crumbs a:hover,html[data-theme=light] .crumbs [aria-current]{color:var(--verde,#0E5B61)}
html[data-theme=light] .crumbs li+li:before{color:var(--verde,#0E5B61)}

/* eslogan: amarillo (claro) / blanco (oscuro); sobre fondo amarillo siempre verde */
html[data-theme=dark] .hero-slogan{color:#fff}
/* mismo fondo de la portada en todas las paginas: acento diagonal verde */
header.hero:after,section.hero:after{content:"";position:absolute;top:0;right:0;width:45%;height:100%;background:var(--verde,#0E5B61);clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);opacity:.12;pointer-events:none}

/* ===== MODO CLARO = espejo del oscuro: amarillo -> verde, negro -> blanco, blanco -> negro ===== */
html[data-theme=light] .btn-amarillo,html[data-theme=light] .vehicle-btn,html[data-theme=light] .back,html[data-theme=light] .tag,
html[data-theme=light] .photo-tag,html[data-theme=light] .search-tools button,html[data-theme=light] .line-suggestion-inner a,
html[data-theme=light] .upload-360 label,html[data-theme=light] .skip-link,html[data-theme=light] .whatsapp-btn{background:var(--verde,#0E5B61);color:#fff}
html[data-theme=light] .btn-verde{color:var(--verde,#0E5B61);border-color:var(--verde,#0E5B61)}
html[data-theme=light] .photo-zoom-btn,html[data-theme=light] .play-360,html[data-theme=light] .admin-360,html[data-theme=light] .photo-thumb span{background:#fff;color:var(--verde,#0E5B61);border:1px solid var(--verde,#0E5B61)}
html[data-theme=light] .hero-slogan{color:#000}
/* bordes dorados -> verdes */
html[data-theme=light] .card:hover,html[data-theme=light] .result-card:hover,html[data-theme=light] .line-card:hover,html[data-theme=light] .cat-card:hover,html[data-theme=light] .feat-card:hover,html[data-theme=light] .panel:hover{border-color:var(--verde,#0E5B61);border-top-color:var(--verde,#0E5B61)}
html[data-theme=light] .feat-card,html[data-theme=light] .card.is-related{border-top-color:var(--verde,#0E5B61)}
html[data-theme=light] .chip{border-left-color:var(--verde,#0E5B61)}
html[data-theme=light] .photo-thumb.is-active{border-color:var(--verde,#0E5B61);box-shadow:0 0 0 2px rgba(var(--verde-rgb,14,91,97),.2)}
html[data-theme=light] .vehicle-row select:focus,html[data-theme=light] .reference-row input:focus,html[data-theme=light] .c-form input:focus,html[data-theme=light] .c-form select:focus,html[data-theme=light] .c-form textarea:focus,
html[data-theme=light] .search input:focus,html[data-theme=light] .search-tools input:focus,html[data-theme=light] .field:focus{border-color:var(--verde,#0E5B61);box-shadow:0 0 0 3px rgba(var(--verde-rgb,14,91,97),.15)}
html[data-theme=light] .factory-video-frame{border-top-color:var(--verde,#0E5B61)}
html[data-theme=light] .hero-eyebrow{background:rgba(var(--verde-rgb,14,91,97),.1);border-color:rgba(var(--verde-rgb,14,91,97),.3)}
html[data-theme=light] .theme-toggle{border-color:var(--verde,#0E5B61)}
.slogan-banner .slogan-sub{color:#000 !important;background:none !important;-webkit-text-fill-color:#000}

/* ===== efectos del eslogan sobre el amarillo ===== */
.slogan-banner{position:relative;overflow:hidden}
.slogan-banner>*{position:relative;z-index:1}
.slogan-banner::before{content:"";position:absolute;z-index:0;top:0;bottom:0;left:-45%;width:30%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);transform:skewX(-18deg);animation:bannerSweep 7s ease-in-out infinite;pointer-events:none}
.slogan-banner .slogan-text{color:transparent !important;-webkit-text-fill-color:transparent !important;background-image:linear-gradient(100deg,var(--verde,#0E5B61) 0%,var(--verde,#0E5B61) 36%,#3bbcc4 50%,var(--verde,#0E5B61) 64%,var(--verde,#0E5B61) 100%) !important;background-size:260% 100% !important;background-clip:text !important;-webkit-background-clip:text !important;animation:sloganShine 5s linear infinite;filter:drop-shadow(0 2px 0 rgba(0,0,0,.16))}
.slogan-banner.is-visible .slogan-text{animation:sloganRise 1s cubic-bezier(.2,.75,.25,1) both,sloganShine 5s linear 1s infinite}
.slogan-banner .slogan-sub{position:relative;display:inline-block;padding-bottom:12px}
.slogan-banner .slogan-sub::after{content:"";position:absolute;left:50%;bottom:0;height:3px;width:0;background:var(--verde,#0E5B61);border-radius:2px;transform:translateX(-50%);transition:width 1.1s cubic-bezier(.2,.75,.25,1) .5s}
.slogan-banner.is-visible .slogan-sub::after{width:100%}
@keyframes sloganShine{from{background-position:0 0}to{background-position:-260% 0}}
@keyframes sloganRise{from{opacity:0;transform:translateY(22px);letter-spacing:.14em}to{opacity:1;transform:none;letter-spacing:.02em}}
@keyframes bannerSweep{0%,55%{left:-45%}100%{left:130%}}
@media (prefers-reduced-motion:reduce){.slogan-banner::before{display:none}.slogan-banner .slogan-text,.slogan-banner.is-visible .slogan-text{animation:none}.slogan-banner .slogan-sub::after{transition:none;width:100%}}

/* si la cantidad de videos es impar, el ultimo ocupa todo el ancho (sin casilla vacia) */
.factory-video-gallery .factory-video-frame:last-child:nth-child(odd){grid-column:1/-1}
.factory-video-gallery .factory-video-frame:last-child:nth-child(odd) video{aspect-ratio:21/9}
