/* Versión clara. «¿Por qué nosotros?» ya tiene fondo #F5F7FA, así que esta sección va en blanco para que se distingan. */
/* Optienergy · Sección «Así es el estudio que recibes» (prefijo .opti-estudio / .eh-) */
.opti-estudio{--g:#2ECC71;--gd:#22B262;--b:#2980B9;--ink:#2C3E50;--mut:#5B6B7B;--line:#E3E8EF;--soft:#F5F7FA;--n1:#0B1824;--n2:#132A3D;
  position:relative;overflow:hidden;isolation:isolate;color:var(--ink);padding:72px 0;font-family:Inter,system-ui,sans-serif;line-height:1.55;
  background:radial-gradient(640px 320px at 100% 0%,rgba(46,204,113,.12),transparent 70%),radial-gradient(600px 380px at 0% 100%,rgba(41,128,185,.10),transparent 70%),#fff}
.opti-estudio::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.55;background-image:linear-gradient(rgba(44,62,80,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(44,62,80,.06) 1px,transparent 1px);background-size:36px 36px;
  mask-image:radial-gradient(ellipse at 30% 30%,#000,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at 30% 30%,#000,transparent 70%)}
.opti-estudio *{box-sizing:border-box}
.opti-estudio a{text-decoration:none}
.eh-wrap{width:min(1120px,100% - 32px);margin:0 auto}
.eh-head{max-width:640px;margin-bottom:34px}
.eh-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gd)}
.eh-eyebrow i{width:8px;height:8px;border-radius:50%;background:var(--g);box-shadow:0 0 0 4px rgba(46,204,113,.2)}
.opti-estudio h2{font-family:Poppins,sans-serif;font-weight:700;font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.02em;margin:12px 0 10px;color:var(--ink)}
.eh-head p{margin:0;color:var(--mut);font-size:17px}
.eh-grid{display:grid;gap:22px}

/* Pasos */
.eh-steps{list-style:none;margin:0;padding:0;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none}
.eh-steps::-webkit-scrollbar{display:none}
.eh-steps li{flex:0 0 auto;scroll-snap-align:start}
.eh-step{position:relative;display:flex;align-items:center;gap:10px;width:100%;text-align:left;cursor:pointer;color:var(--mut);font:inherit;
  background:#fff;border:1px solid var(--line);box-shadow:0 4px 14px -10px rgba(44,62,80,.35);border-radius:14px;padding:10px 14px;overflow:hidden;transition:background .2s,border-color .2s}
.eh-step:hover{border-color:#B9C7D3}
.eh-step:focus-visible{outline:3px solid #9FE3BD;outline-offset:2px}
.eh-step__n{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;font:700 14px Poppins,sans-serif;background:var(--soft);color:var(--ink);transition:background .2s}
.eh-step__t b{display:block;font-weight:600;font-size:14.5px;color:var(--ink);white-space:nowrap}
.eh-step__t small{display:none;font-size:13px;color:var(--mut)}
.eh-step__bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--line)}
.eh-step__bar i{display:block;height:100%;width:0;background:var(--g)}
.eh-step.is-on{background:#EEFBF3;border-color:var(--g);box-shadow:0 10px 24px -16px rgba(46,204,113,.9)}
.eh-step.is-on .eh-step__n,.eh-step.is-done .eh-step__n{background:var(--g);color:#fff}
.opti-estudio.is-anim:not(.is-paused) .eh-step.is-on .eh-step__bar i{animation:eh-fill var(--eh-dur,5s) linear forwards}
.opti-estudio.is-paused .eh-step.is-on .eh-step__bar i{width:100%}
@keyframes eh-fill{to{width:100%}}

/* Documento */
.eh-doc{background:#fff;color:var(--ink);border-radius:20px;border:1px solid var(--line);box-shadow:0 30px 60px -30px rgba(44,62,80,.45);overflow:hidden;min-width:0}
.eh-doc__bar{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);background:#FAFBFC;font-size:14px}
.eh-dots{display:flex;gap:5px}.eh-dots i{width:9px;height:9px;border-radius:50%;background:#D5DEE6}
.eh-dots i:first-child{background:var(--g)}
.eh-doc__bar b{font-family:Poppins,sans-serif;font-weight:600;white-space:nowrap}
.eh-chip{font-size:11.5px;font-weight:600;color:#24557A;background:#E3EFF8;border-radius:999px;padding:2px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eh-play{margin-left:auto;flex:none;width:32px;height:32px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;display:grid;place-items:center}
.eh-play svg{width:16px;height:16px}.eh-play .pl{display:none}
.opti-estudio.is-paused .eh-play .pa{display:none}.opti-estudio.is-paused .eh-play .pl{display:block}
.eh-doc__body{padding:20px 18px 22px;min-height:340px}
.eh-panel{animation:eh-in .45s ease both}
@keyframes eh-in{from{opacity:0;transform:translateY(8px)}}
.eh-panel__k{margin:0 0 14px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--b)}

/* 1 Factura */
.eh-bill{border:1px solid var(--line);border-radius:14px;padding:6px 14px;background:linear-gradient(#fff,#fff) padding-box}
.eh-bill__row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:14px}
.eh-bill__row span{color:var(--mut)}
.eh-bill__row b{text-align:right;font-variant-numeric:tabular-nums}
.eh-hl{position:relative;padding:1px 6px;border-radius:6px;background:linear-gradient(90deg,rgba(46,204,113,.28),rgba(46,204,113,.28)) no-repeat 0 0/0% 100%;animation:eh-mark .7s .3s ease forwards}
.eh-hl--warn{background-image:linear-gradient(90deg,rgba(241,196,15,.38),rgba(241,196,15,.38))}
@keyframes eh-mark{to{background-size:100% 100%}}
.eh-bill__lines{display:grid;gap:7px;padding:12px 0 6px}.eh-bill__lines i{height:7px;border-radius:4px;background:var(--soft)}
.eh-bill__lines i:nth-child(2){width:80%}.eh-bill__lines i:nth-child(3){width:55%}
.eh-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.eh-tag{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#14733F;background:#EEFBF3;border-radius:999px;padding:5px 11px 5px 7px}
.eh-tag svg{width:16px;height:16px}
.eh-tag--warn{color:#7A5B00;background:#FEF6D8}

/* 2 SIPS */
.eh-kpi{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.eh-kpi span{color:var(--mut);font-size:14px}
.eh-kpi b{font:700 26px Poppins,sans-serif;color:var(--ink)}
.eh-bars{display:grid;grid-template-columns:repeat(12,1fr);gap:5px;align-items:end;height:200px}
.eh-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px}
.eh-bar i{width:100%;height:var(--h);min-height:4px;border-radius:4px 4px 0 0;background:var(--b);transform-origin:bottom;animation:eh-grow .6s var(--d) ease both}
.eh-bar span{font-size:10.5px;color:var(--mut)}
@keyframes eh-grow{from{transform:scaleY(0)}}

/* 3 Maxímetros */
.eh-legend{display:flex;gap:16px;font-size:13px;color:var(--mut);margin-bottom:10px}
.eh-legend span{display:flex;align-items:center;gap:6px}.eh-legend i{width:12px;height:12px;border-radius:3px}
.eh-legend .c,.eh-grp .c{background:#C9D4DE}.eh-legend .m,.eh-grp .m{background:var(--b)}
.eh-groups{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;height:190px}
.eh-grp{display:flex;flex-direction:column;gap:6px}
.eh-grp__bars{flex:1;display:flex;align-items:flex-end;gap:3px}
.eh-grp__bars i{flex:1;height:var(--h);border-radius:4px 4px 0 0;transform-origin:bottom;animation:eh-grow .6s ease both}
.eh-grp__bars .m{animation-delay:.15s}
.eh-grp.is-over .m{background:#E67E22}
.eh-grp span{text-align:center;font-size:12px;font-weight:600;color:var(--mut)}
.eh-note{display:flex;gap:8px;align-items:flex-start;margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#FEF6D8;color:#7A5B00;font-size:13.5px}
.eh-note svg{flex:none;width:18px;height:18px}
.eh-note--ok{background:#EEFBF3;color:#14733F}

/* 4 y 6 Tablas */
.eh-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.eh-table th,.eh-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left}
.eh-table thead th{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);font-weight:600}
.eh-table tbody th{font-weight:600}
.eh-f{display:block;font-weight:500;font-size:11.5px;color:var(--mut)}
.eh-table td.is-ch{color:#14733F;font-weight:700;background:#EEFBF3}

/* 5 Ofertas */
.eh-mini{margin:0 0 10px;font-size:13px;color:var(--mut)}
.eh-offer{position:relative;display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;margin-bottom:8px;animation:eh-in .4s ease both}
.eh-offer:nth-child(3){animation-delay:.1s}.eh-offer:nth-child(4){animation-delay:.2s}
.eh-offer b{font-family:Poppins,sans-serif}
.eh-offer__p{font:700 17px Poppins,sans-serif;text-align:right}
.eh-offer__s{grid-column:1 / -1;display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--mut)}
.eh-offer__s.y{color:#14733F;font-weight:600}.eh-offer__s svg{width:15px;height:15px}
.eh-offer.is-chosen{border-color:var(--g);background:#F2FCF6;box-shadow:0 10px 24px -16px rgba(46,204,113,.9)}
.eh-offer em{position:absolute;top:-10px;right:12px;font-style:normal;font-size:11.5px;font-weight:700;color:#06301A;background:var(--g);border-radius:999px;padding:2px 9px}

/* 6 Ahorro */
.eh-save{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:16px;padding:16px 18px;border-radius:16px;color:#fff;background:linear-gradient(135deg,var(--g),var(--gd))}
.eh-save span{flex-basis:100%;font-size:13px;font-weight:600;opacity:.9}
.eh-save b{font:700 36px/1 Poppins,sans-serif;font-variant-numeric:tabular-nums}
.eh-save small{font-size:15px;font-weight:600}

/* CTA */
.eh-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.eh-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:12px 22px;border-radius:14px;font:600 15.5px Poppins,sans-serif;transition:transform .2s,box-shadow .2s,background .2s}
.eh-btn svg{width:18px;height:18px}
.eh-btn--main{color:#fff;background:linear-gradient(135deg,var(--g),var(--gd));box-shadow:0 12px 26px -12px rgba(46,204,113,.95)}
.eh-btn--main:hover{transform:translateY(-2px)}
.eh-btn--call{color:var(--ink);border:1px solid var(--line);background:#fff}
.eh-btn--call:hover{border-color:#B9C7D3}
.eh-btn--call svg{color:var(--b)}
.eh-btn:focus-visible{outline:3px solid #9FE3BD;outline-offset:3px}
.eh-disc{margin:14px 0 0;font-size:12.5px;color:var(--mut)}

/* Paso actual con flechas: solo en móvil y tablet (en escritorio la lista ya muestra los textos) */
.eh-now{display:none}
@media (max-width:979px){
  .eh-grid{gap:14px}
  /* Los 6 pasos siempre visibles: números en fila con su barra de progreso (tipo «historias») */
  .eh-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow:visible;padding:0;scroll-snap-type:none}
  .eh-step{flex-direction:column;justify-content:center;gap:0;min-height:48px;padding:8px 0 11px;border-radius:12px;box-shadow:none}
  .eh-step__n{width:30px;height:30px;border-radius:9px}
  .eh-step__t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .eh-step__bar{left:8px;right:8px;bottom:5px;height:3px;border-radius:3px;overflow:hidden}
  .eh-step.is-done .eh-step__bar i{width:100%}
  .eh-step.is-on{box-shadow:0 8px 18px -12px rgba(46,204,113,.9)}
  .eh-now{display:flex;align-items:center;gap:10px}
  /* Los 6 textos en la misma celda: el bloque mide lo que el más largo y no salta al cambiar de paso */
  .eh-now__t{flex:1;min-width:0;display:grid;text-align:center}
  .eh-now__i{grid-area:1/1;margin:0;align-self:center;visibility:hidden}
  .eh-now__i.is-on{visibility:visible;animation:eh-in .35s ease both}
  .eh-now__k{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--b)}
  .eh-now b{display:block;margin-top:2px;font:600 17px/1.3 Poppins,sans-serif;color:var(--ink)}
  .eh-now small{display:block;margin-top:2px;font-size:14px;line-height:1.45;color:var(--mut)}
  .eh-nav{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:border-color .2s}
  .eh-nav:hover{border-color:#B9C7D3}
  .eh-nav:focus-visible{outline:3px solid #9FE3BD;outline-offset:2px}
  .eh-nav svg{width:20px;height:20px}
  /* El título del paso ya está encima del documento */
  .eh-panel__k{display:none}
  .eh-doc__body{touch-action:pan-y}
}
@media (max-width:560px){.eh-table{font-size:13px}.eh-table td{white-space:nowrap}.eh-table th,.eh-table td{padding:8px 6px}.eh-chip{display:none}.eh-cta .eh-btn{flex:1 1 100%}.eh-bars span{font-size:9px}.eh-doc__body{min-height:360px}}
@media (min-width:980px){
  .eh-grid{grid-template-columns:360px minmax(0,1fr);gap:32px;align-items:start}
  .eh-steps{flex-direction:column;overflow:visible}
  .eh-step{padding:14px 16px}
  .eh-step__t small{display:block}
  .eh-step__t b{white-space:normal}
  .eh-doc__body{padding:26px 28px 28px;min-height:400px}
}
@media (prefers-reduced-motion:reduce){.opti-estudio *{animation:none!important;transition:none!important}.eh-hl{background-size:100% 100%}}
