/* =========================================================
   EPC POTENCIA REAL — Estructura base del widget
   Todas las clases usan el prefijo "epc-pr-" para no chocar
   con clases de otros plugins o del tema.
   ========================================================= */

.epc-pr-container {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%; /* un ancho fijo en px nunca se sale de la pantalla en celular */
}

.epc-pr-container * {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   SECCIÓN 1 — encabezado (imagen / título / característica)
   Fila horizontal, NUNCA se envuelve, ni en celular.
   --------------------------------------------------------- */

.epc-pr-seccion-1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 16px;
}

.epc-pr-col {
    display: flex;
    align-items: center;
    min-width: 0; /* permite que el texto se trunque en vez de romper el layout */
}

.epc-pr-col-imagen {
    flex: 0 0 50px;
    max-width: 50px;
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}

.epc-pr-col-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.epc-pr-col-titulo {
    flex: 1 1 0;
    max-width: none;
}

.epc-pr-titulo {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epc-pr-col-caracteristica {
    flex: 0 0 30%;
    max-width: 30%;
    justify-content: flex-end;
    text-align: right;
}

.epc-pr-caracteristica {
    display: block;
    color: #22e5a8;
    font-weight: 600;
    font-size: 14px;
    font-family: monospace, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   SECCIÓN 2 — barra de potencia (100% del ancho)
   --------------------------------------------------------- */

.epc-pr-seccion-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 16px;
}

.epc-pr-barra-track {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.epc-pr-barra-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
}

.epc-pr-barra-porcentaje {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   SECCIÓN 3 — descripción
   --------------------------------------------------------- */

.epc-pr-seccion-3 {
    width: 100%;
}

.epc-pr-descripcion {
    margin: 0;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   RESPONSIVE — ajustes de tamaño de texto en pantallas chicas
   (la fila de la Sección 1 NUNCA cambia a columna)
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .epc-pr-titulo {
        font-size: 15px;
    }

    .epc-pr-caracteristica {
        font-size: 12px;
    }

    .epc-pr-descripcion {
        font-size: 13px;
    }

    .epc-pr-seccion-1 {
        gap: 8px;
    }

}
