/* ═══════════════════════════════════════════════════════════════
   ECOCHARGE — Gama ORBIS VIARIS: sección home + comparativa
   Usa los tokens de ecocharge.css (--ec-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Sello distribuidor ── */
.ec-orbis-seal {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ec-orbis-seal b { background: #fff; color: var(--ec-ink); border-radius: 999px; padding: 3px 9px; font-family: var(--ec-font-display); font-weight: 800; letter-spacing: .14em; font-size: 11px; }

/* ── Sección Gama ── */
.ec-gama-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ec-gama-card {
    position: relative; background: #fff; border: 1px solid var(--ec-line);
    border-radius: var(--ec-r-lg); padding: 18px 18px 20px;
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ec-gama-card:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow); border-color: var(--ec-green-light); }
.ec-gama-foto {
    height: 210px; border-radius: var(--ec-r);
    background: radial-gradient(120% 90% at 50% 35%, #fff 0%, #f2f7ea 50%, #e3eed3 100%);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px; padding: 14px;
}
.ec-gama-foto img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(10,14,20,.16)); }
.ec-gama-badge {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    background: var(--ec-orange); color: #fff; font-size: 10px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    box-shadow: 0 4px 10px rgba(245,130,32,.35);
}
.ec-gama-fam { font-size: 11px; letter-spacing: .28em; color: var(--ec-muted-light); font-weight: 700; }
.ec-gama-card h3 { font-family: var(--ec-font-display); font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 2px 0 6px; color: var(--ec-ink); }
.ec-gama-claim { font-family: var(--ec-font-display); color: var(--ec-green); font-weight: 700; font-size: 16px; line-height: 1.25; margin: 0 0 12px; }
.ec-gama-card ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--ec-muted); }
.ec-gama-card li { position: relative; padding-left: 22px; margin-bottom: 6px; line-height: 1.4; }
.ec-gama-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ec-green); font-weight: 800; }
.ec-gama-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ec-gama-tags span { background: var(--ec-green-soft); color: var(--ec-green-deep); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ec-gama-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.ec-btn-outline {
    background: #fff; color: var(--ec-green-deep); border: 2px solid var(--ec-green);
}
.ec-btn-outline:hover { background: var(--ec-green-soft); }
.ec-gama-nota { text-align: center; font-size: 12px; color: var(--ec-muted-light); margin-top: 16px; }

@media (max-width: 991px) { .ec-gama-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ec-gama-grid { grid-template-columns: 1fr; }
    .ec-gama-foto { height: 180px; }
}

/* ── Banda empresas → e-Astur ── */
.ec-scenario--eastur { background: var(--ec-dark-soft); color: #fff; border-color: var(--ec-dark-soft); text-decoration: none; }
.ec-scenario--eastur h3 { color: #fff; }
.ec-scenario--eastur p { color: rgba(255,255,255,.75); }
.ec-scenario--eastur .ec-scenario-icon { background: rgba(255,255,255,.1); color: #a6dd6a; }
.ec-scenario--eastur .ec-scenario-arrow { color: #a6dd6a; }
.ec-scenarios-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .ec-scenarios-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ec-scenarios-grid--3 { grid-template-columns: 1fr; } }

/* ── Botón comparar en el wizard ── */
.eccalc-comparar-row { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.eccalc-comparar-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ec-green-soft); color: var(--ec-green-deep); border: 0;
    font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.eccalc-comparar-btn:hover { background: #dcebc6; }
.eccalc-cargador-consultar { font-size: 14px; font-weight: 700; color: var(--ec-muted); }

/* ── Comparativa (overlay) ── */
.eco-cmp-overlay {
    position: fixed; inset: 0; z-index: 100000; background: rgba(5,10,13,.62);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: ecoCmpIn .18s ease-out;
}
@keyframes ecoCmpIn { from { opacity: 0; } to { opacity: 1; } }
.eco-cmp-dialog {
    background: #fff; border-radius: var(--ec-r-lg); width: min(1080px, 100%);
    max-height: calc(100vh - 40px); display: flex; flex-direction: column;
    box-shadow: var(--ec-shadow-lg); overflow: hidden;
}
.eco-cmp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; }
.eco-cmp-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ec-orange); }
.eco-cmp-head h3 { font-family: var(--ec-font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; color: var(--ec-ink); }
.eco-cmp-close { border: 0; background: var(--ec-line-soft); width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ec-ink); cursor: pointer; flex: none; }
.eco-cmp-close:hover { background: var(--ec-line); }
.eco-cmp-scroll { overflow: auto; padding: 0 24px 4px; -webkit-overflow-scrolling: touch; }
.eco-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 640px; }
.eco-cmp thead th {
    position: sticky; top: 0; z-index: 2; background: var(--ec-green-soft);
    padding: 12px 8px 10px; text-align: center; vertical-align: bottom; font-weight: 400;
}
.eco-cmp thead th:nth-child(2) { border-top-left-radius: 12px; }
.eco-cmp thead th:last-child { border-top-right-radius: 12px; }
.eco-cmp thead th.eco-cmp-rl { background: #fff; }
.eco-cmp thead img { display: block; height: 78px; width: 100%; object-fit: contain; margin: 0 auto 8px; }
.eco-cmp thead b { font-family: var(--ec-font-display); font-weight: 800; font-size: 15px; color: var(--ec-green-deep); white-space: nowrap; }
.eco-cmp-badge { display: inline-block; white-space: nowrap; background: var(--ec-orange); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-bottom: 4px; }
.eco-cmp th.eco-cmp-rl {
    position: sticky; left: 0; z-index: 1; background: #fff; text-align: left;
    font-weight: 600; color: var(--ec-ink-soft); padding: 9px 12px 9px 0; min-width: 150px; max-width: 190px;
    border-bottom: 1px solid var(--ec-line);
}
.eco-cmp thead th.eco-cmp-rl { z-index: 3; border-bottom: 0; }
.eco-cmp tbody td { text-align: center; padding: 9px 6px; border-bottom: 1px solid var(--ec-line); color: var(--ec-ink-soft); }
.eco-cmp tbody tr:nth-child(odd) td { background: #fafbf8; }
.eco-cmp-yes i { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--ec-green); color: #fff; align-items: center; justify-content: center; vertical-align: middle; }
.eco-cmp-yes i svg { width: 13px; height: 13px; }
.eco-cmp-yes small { display: block; font-size: 11px; color: var(--ec-green-deep); font-weight: 600; margin-top: 2px; }
.eco-cmp-no { color: #c3c9d1; }
.eco-cmp-pick td { background: #fff !important; border-bottom: 0; padding-top: 14px; }
.eco-cmp-pick th { border-bottom: 0 !important; }
.eco-cmp-btn {
    background: var(--ec-green); color: #fff; border: 0; border-radius: 999px;
    font-weight: 700; font-size: 13px; padding: 9px 14px; cursor: pointer; white-space: nowrap;
}
.eco-cmp-btn:hover { background: var(--ec-green-dark); }
.eco-cmp-note { font-size: 11px; color: var(--ec-muted-light); padding: 10px 24px 18px; margin: 0; }
@media (max-width: 600px) {
    .eco-cmp-overlay { padding: 0; align-items: stretch; }
    .eco-cmp-dialog { border-radius: 0; max-height: 100vh; }
    .eco-cmp-head { padding: 16px 16px 10px; }
    .eco-cmp-scroll { padding: 0 0 4px 16px; }
    .eco-cmp th.eco-cmp-rl { min-width: 118px; font-size: 12px; }
    .eco-cmp thead img { height: 60px; }
}

/* ── Paso 1 del wizard: mono / trifásico ── */
.eccalc-fases { margin: 0 0 18px; }
.eccalc-fases-label { font-weight: 700; color: var(--ec-ink); margin-bottom: 10px; font-size: 15px; }
.eccalc-fases-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eccalc-fases-btn {
    border: 2px solid var(--ec-line); background: #fff; border-radius: var(--ec-r);
    padding: 12px 10px; font-family: var(--ec-font-display); font-weight: 800; font-size: 16px;
    color: var(--ec-ink); cursor: pointer; text-align: center; transition: all .2s; line-height: 1.2;
}
.eccalc-fases-btn small { display: block; font-family: var(--ec-font); font-weight: 500; font-size: 11.5px; color: var(--ec-muted); margin-top: 3px; pointer-events: none; }
.eccalc-fases-btn:hover { border-color: var(--ec-green-light); }
.eccalc-fases-btn.is-active { border-color: var(--ec-green); background: var(--ec-green-soft); color: var(--ec-green-deep); }
.eccalc-fases-nota { margin: 10px 0 0; font-size: 12.5px; color: var(--ec-muted); background: var(--ec-orange-soft); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 520px) {
    .eccalc-fases-opts { grid-template-columns: 1fr; }
    .eccalc-fases-btn { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; }
    .eccalc-fases-btn small { margin-top: 0; }
}
