/* Estilos del plugin RACC Energía. Compatibles con Avada — usar variables del theme cuando posible. */

.energia-field-error {
    color: #c0392b;
    font-size: 0.85em;
    margin-top: 4px;
}

.energia-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1em 1.2em;
    border-radius: 4px;
    margin: 1em 0;
}

.energia-resultado {
    margin: 2em 0;
}

.energia-savings {
    background: #f7fbf8;
    border-left: 4px solid #1ea975;
    padding: 1em 1.4em;
    margin-bottom: 1.5em;
}

.energia-savings h3 {
    margin: 0 0 0.5em;
}

.energia-proposal-pdf iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.energia-cta {
    text-align: center;
    margin: 2em 0;
}

.energia-cta .energia-contratar {
    padding: 0.8em 2em;
    font-size: 1.1em;
}

.energia-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energia-popup-content {
    background: #fff;
    padding: 2em;
    max-width: 480px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.energia-popup-titular {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    background: #f6f6f6;
    border-radius: 4px;
    padding: 1em;
}

.energia-popup-titular li {
    margin-bottom: 0.4em;
}

.energia-popup-actions {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
}

.energia-popup-actions .button {
    flex: 1;
}

#energia-titular-otro {
    margin-top: 1.5em;
    border-top: 1px solid #e0e0e0;
    padding-top: 1em;
}

#energia-titular-otro label {
    display: block;
    margin-bottom: 0.5em;
}

#energia-titular-otro input[type="text"] {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.energia-resumen {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 1.2em 1.5em;
    border-radius: 4px;
    margin: 1.5em 0;
}

.energia-resumen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.energia-resumen li {
    padding: 0.4em 0;
    border-bottom: 1px dashed #e0e0e0;
}

.energia-resumen li:last-child {
    border-bottom: none;
}

.energia-confirmacion {
    text-align: center;
    padding: 3em 1em;
}

.energia-out {
    text-align: center;
    padding: 2em 1em;
    background: #fffbea;
    border-radius: 8px;
}

.energia-out .button {
    margin: 0 0.5em;
}
