/* =========================================
   PORTAL DE CLIENTES
   ========================================= */

.pp-portal {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}


/* =========================================
   CABECERA
   ========================================= */

.pp-cabecera {
    margin-bottom: 30px;
}

.pp-cabecera h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.pp-cabecera p {
    margin: 0;
    font-size: 16px;
}


/* =========================================
   BOTÓN CERRAR SESIÓN
   ========================================= */

.pp-logout {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
}


/* =========================================
   TARJETA DEL PROCESO
   ========================================= */

.pp-proceso {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.pp-proceso h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}


/* =========================================
   INFORMACIÓN
   ========================================= */

.pp-proceso p {
    line-height: 1.6;
}


/* =========================================
   BARRA DE PROGRESO
   ========================================= */

.pp-barra {
    width: 100%;
    height: 14px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 20px;
}

.pp-progreso {
    height: 100%;
    border-radius: 20px;
    background: #7a1f3d;
    transition: width 0.4s ease;
}


/* =========================================
   DESCRIPCIÓN
   ========================================= */

.pp-descripcion {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.pp-descripcion p {
    margin-bottom: 0;
}


/* =========================================
   FECHA
   ========================================= */

.pp-fecha {
    font-size: 14px;
    color: #666666;
    margin-top: 20px;
}


/* =========================================
   LOGIN
   ========================================= */

.pp-login {
    max-width: 450px;
    margin: 60px auto;
    padding: 20px;
}

.pp-login-contenedor {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pp-login-contenedor h2 {
    margin-top: 0;
    font-size: 28px;
}

.pp-login-contenedor label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.pp-login-contenedor input[type="text"],
.pp-login-contenedor input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
}

.pp-login-boton {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: #7a1f3d;
    color: #ffffff;
}

.pp-login-recuperar {
    text-align: center;
    margin-top: 20px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {

    .pp-portal {
        margin: 20px auto;
        padding: 15px;
    }

    .pp-proceso {
        padding: 20px;
    }

    .pp-cabecera h2 {
        font-size: 25px;
    }

    .pp-login {
        margin: 30px auto;
        padding: 10px;
    }

    .pp-login-contenedor {
        padding: 25px;
    }

}

/* =========================================
   ESTADO DEL PROCESO
   ========================================= */

.pp-estado {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pp-estado-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   LÍNEA DE TIEMPO
   ========================================= */

.pp-timeline {
    margin: 30px 0;
    padding: 10px 0;
}

.pp-etapa {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 45px;
}


/* Línea vertical */

.pp-etapa:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 35px;
    width: 2px;
    height: 30px;
    background: #dddddd;
}


/* Círculo */

.pp-etapa-circulo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 700;
    background: #eeeeee;
    position: relative;
    z-index: 2;
}


/* Etapa completada */

.pp-etapa.completado .pp-etapa-circulo {
    background: #7a1f3d;
    color: #ffffff;
}

.pp-etapa.actual .pp-etapa-circulo {
    background: #7a1f3d;
    color: #ffffff;
}

.pp-etapa.pendiente .pp-etapa-circulo {
    background: #eeeeee;
    color: #999999;
}

.pp-etapa.completado .pp-etapa-nombre {
    font-weight: 600;
}

.pp-etapa.actual .pp-etapa-nombre {
    font-weight: 700;
}

.pp-porcentaje {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    margin-top: -10px;
    margin-bottom: 20px;
}