/* =====================================================================
   Grupo Pro Energy - capa v2
   Iconos Lucide, tipografia DM Sans, menu con barra, tema claro/oscuro
   (Para revertir: quitar el enqueue 'gpe-v2' en functions.php)
   ===================================================================== */
:root{--btn:#0046E2; --btn-h:#0063FF; --hl:#7FA8FF; color-scheme:light;}
html[data-theme="dark"]{
  color-scheme:dark;
  --dark:#05070F; --dark2:#0B1120; --navy:#151D30;
  --white:#0A0E1A; --light:#0F1527; --ink:#EEF2FB; --body:#A3AECB;
  --border:#1F2842; --tint:rgba(91,151,255,.14); --ondark:#AEB9D6;
  --gold:#5B97FF; --gold-d:#7FA8FF; --btn:#1D5BE0; --btn-h:#3B7AFF;
}
body{font-family:'Inter',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; transition:background-color .3s ease,color .3s ease;}

/* ---------- Tipografia ---------- */
h1,h2,h3,h4{letter-spacing:-.02em;}
.h2,.hero-text h1,.page-hero h1,.cta-final h2,.about-text h2,.faq-left h2,.contact-left h2,.historia-text h2,.detail-faq-left h2{font-weight:700; letter-spacing:-.025em;}
.eyebrow{letter-spacing:.14em;}

/* ---------- Iconos (Lucide) ---------- */
.gi{display:inline-block; width:1em; height:1em; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.14em;}
.gi-fill{fill:currentColor; stroke:none;}
.sol-body ul .gi,.hub-body ul .gi,.hours-card ul .gi,.mini-list .gi{font-size:14px; stroke-width:2.6; margin-top:2px;}
.hero-bullets .gi{font-size:18px; margin-top:2px;}
.breadcrumb .gi{font-size:12px;}
.mmenu-toggle .gi{font-size:16px; transition:transform .2s ease;}
.mmenu-group.open .mmenu-toggle .gi{transform:rotate(180deg);}
.faq-q .gi{font-size:18px; color:var(--gold); transition:.2s;}
.faq-item.open .faq-q .gi{transform:rotate(45deg);}
.social a .gi{font-size:16px;}

/* ---------- Botones segun tema ---------- */
.btn-gold,.gpe-submit,.contact-form-card .wpcf7-submit,.plan.featured{background:var(--btn);}
.plan.featured{border-color:var(--btn);}
.btn-gold:hover,.gpe-submit:hover,.contact-form-card .wpcf7-submit:hover{background:var(--btn-h);}

/* ---------- Header: acciones, toggle y barra del menu ---------- */
.header-actions{display:flex; align-items:center; gap:12px;}
.theme-toggle{width:40px; height:40px; border-radius:10px; border:1px solid #28324D; background:transparent; color:#C9CEDB; display:inline-flex; align-items:center; justify-content:center; font-size:19px; cursor:pointer; transition:color .2s,border-color .2s,background .2s;}
.theme-toggle:hover{color:#fff; border-color:#5B97FF; background:rgba(91,151,255,.14);}
.theme-toggle:focus-visible,.burger:focus-visible{outline:2px solid #5B97FF; outline-offset:2px;}
.theme-toggle .gi-sun{display:none;}
html[data-theme="dark"] .theme-toggle .gi-sun{display:inline-block;}
html[data-theme="dark"] .theme-toggle .gi-moon{display:none;}
.burger{font-size:24px; display:none;}
nav.links > a,nav.links > .has-sub > a{display:inline-block; padding:8px 0; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14.5px; letter-spacing:.01em; transition:color .2s ease;}
nav.links > a::after,nav.links > .has-sub > a::after{content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; border-radius:2px; background:linear-gradient(90deg,#2E76FF,#7FA8FF); transform:scaleX(0); transform-origin:left center; transition:transform .3s cubic-bezier(.2,.8,.2,1);}
nav.links > a:hover,nav.links > .has-sub:hover > a{color:#7FA8FF;}
nav.links > a.current,nav.links > .has-sub > a.current{color:#fff;}
nav.links > a:hover::after,nav.links > .has-sub:hover > a::after,nav.links > a.current::after,nav.links > .has-sub > a.current::after{transform:scaleX(1);}
.mobile-menu a,.mmenu-toggle{font-family:'Space Grotesk',sans-serif; font-weight:500;}
.mobile-menu a:hover,.mmenu-toggle:hover{color:#7FA8FF;}
@media(max-width:900px){.burger{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;} .header-actions{gap:8px;}}
@media(max-width:600px){.header-actions{margin-left:auto;} .burger{margin-left:0;}}
@media (prefers-reduced-motion: reduce){nav.links > a::after,nav.links > .has-sub > a::after{transition:none;} body{transition:none;}}

/* ---------- Modo oscuro: piezas con color fijo ---------- */
html[data-theme="dark"] .badge-card{background:#151D30;}
html[data-theme="dark"] .test-card p.quote{color:#C3CBE3;}
html[data-theme="dark"] .step .n{color:#1B2440;}
html[data-theme="dark"] .team-card,html[data-theme="dark"] .modal-box{background:var(--light);}
html[data-theme="dark"] .modal-close{background:rgba(10,14,26,.9); color:#fff;}
html[data-theme="dark"] .contact-form-card .wpcf7-form input[type="text"],
html[data-theme="dark"] .contact-form-card .wpcf7-form input[type="email"],
html[data-theme="dark"] .contact-form-card .wpcf7-form textarea,
html[data-theme="dark"] .gpe-form-row input{background:#0A0E1A; color:var(--ink); border-color:var(--border);}
html[data-theme="dark"] .map-box{background:#0F1527;}
html[data-theme="dark"] .map-box iframe{filter:invert(.92) hue-rotate(180deg) contrast(.9);}
html[data-theme="dark"] .gpe-calc{background:#111831; box-shadow:0 20px 50px rgba(0,0,0,.5);}
html[data-theme="dark"] .gpe-calc-slider label,html[data-theme="dark"] .gpe-amt .gpe-mo,html[data-theme="dark"] .gpe-result-grid span,html[data-theme="dark"] .gpe-file-label{color:#A3AECB;}
html[data-theme="dark"] .gpe-amt,html[data-theme="dark"] .gpe-result-grid b{color:#9CBDFF;}
html[data-theme="dark"] .gpe-calc input[type="range"]{background:#1F2842;}
html[data-theme="dark"] .gpe-scale,html[data-theme="dark"] .gpe-privacy{color:#7C88A8;}
html[data-theme="dark"] .gpe-result-row,html[data-theme="dark"] .gpe-result-grid > div{background:#0A0E1A; color:#C9D2EA;}
html[data-theme="dark"] .gpe-result-row b{color:#fff;}
html[data-theme="dark"] .gpe-result-row.highlight{background:rgba(91,151,255,.16);}
html[data-theme="dark"] .gpe-result-row.highlight b{color:#7FA8FF;}
html[data-theme="dark"] .gpe-file-label{border-color:#2B3656;}
html[data-theme="dark"] .gpe-file-label:hover{border-color:#5B97FF; color:#7FA8FF;}
html[data-theme="dark"] .proj-card:hover{box-shadow:0 16px 30px rgba(0,0,0,.45);}
html[data-theme="dark"] .gpe-logo{filter:grayscale(100%) brightness(1.1);}
/* CTA dentro del menu movil */
.mobile-menu .mmenu-cta{display:flex; justify-content:center; width:100%; margin-top:14px; padding:14px 20px; color:#fff; font-size:14px; border-top:none;}
.mobile-menu .mmenu-cta:hover{color:#fff;}

/* pleca movil: mas altura y aire antes del menu desplegable */
@media(max-width:900px){
  .header-row{padding:26px 0;}
  .logo-img img{height:38px;}
  .mobile-menu{padding:6px 0 22px;}
}
@media(max-width:600px){
  .header-row.wrap{padding:26px 16px;}
}

/* logo desktop mas grande */
@media(min-width:901px){
  .logo-img img{height:44px;}
  .footer-brand .logo-img img{height:40px;}
}

/* menu movil alineado con logo y botones del encabezado */
@media(max-width:900px){
  .mobile-menu{padding:8px 28px 26px;}
  .mobile-menu > a,.mmenu-toggle{padding:15px 0;}
  .mmenu-submenu a{padding:13px 0 13px 18px;}
  .mobile-menu .mmenu-cta{margin-top:18px; padding:15px 20px;}
}
@media(max-width:600px){
  .mobile-menu{padding-left:16px; padding-right:16px;}
}

/* proceso 5 pasos */
.process-grid{gap:20px;}
.process-grid .step{flex:1 1 190px;}

/* ---------- GPE_CALC_OPTS: mensual/bimestral y DAC en la calculadora ---------- */
.gpe-opts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-bottom:20px;}
.gpe-seg{display:inline-grid;grid-template-columns:repeat(2,auto);gap:4px;padding:4px;background:#F5F7FC;border:1px solid #E3E8F5;border-radius:10px;}
.gpe-seg button{border:0;background:transparent;color:#5B6478;font:600 13px 'Space Grotesk',sans-serif;padding:8px 16px;border-radius:7px;cursor:pointer;transition:.15s;}
.gpe-seg button.on{background:#0046E2;color:#fff;}
.gpe-seg button:not(.on):hover{color:#0B1220;}
.gpe-seg button:focus-visible{outline:2px solid #0046E2;outline-offset:2px;}
html[data-theme="dark"] .gpe-seg{background:#0A0E1A;border-color:#1F2842;}
html[data-theme="dark"] .gpe-seg button{color:#A3AECB;}
html[data-theme="dark"] .gpe-seg button.on{background:#1D5BE0;color:#fff;}
html[data-theme="dark"] .gpe-seg button:not(.on):hover{color:#fff;}
