/* ==========================================================================
   ESTILOS GENERALES REVESTARCH PARTNER CLUB
   ========================================================================== */

/* 1. CONTENEDOR Y TÍTULOS */
.rpc-container h3, 
.resumen-solicitudes h3,
#form-prescripcion h3 {
    color: #4A3B2C !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-left: 5px solid #f2a922;
    padding-left: 15px;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

/* 2. TARJETA DE NIVEL (RESUMEN PUNTOS) */
.tarjeta-nivel {
    background: #514431;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-left: 8px solid #555; /* Por defecto Member */
}

.tarjeta-nivel h4 { color: #FFB556; margin: 0; }
.tarjeta-nivel h2 { color: #fff !important; margin: 10px 0 !important; }

/* Variaciones de color por nivel */
.nivel-gold { border-left-color: #FFD700 !important; }
.nivel-pro { border-left-color: #C0C0C0 !important; }
.nivel-select { border-left-color: #CD7F32 !important; }
.nivel-member { border-left-color: #555 !important; }


/* Añadir a tu archivo de estilos o al wp_head */
.nivel-member { background-color: #a8e6cf; color: #1d3124; padding: 5px 10px; border-radius: 4px; }
.nivel-select { background-color: #dcedc1; color: #3b442b; padding: 5px 10px; border-radius: 4px; }
.nivel-gold   { background-color: #ffd3b6; color: #5a3e2b; padding: 5px 10px; border-radius: 4px; border: 1px solid #f2a922; }
.nivel-pro    { background-color: #ff8b94; color: #ffffff; padding: 5px 10px; border-radius: 4px; font-weight: bold; }
.nivel-nuevo  { background-color: #f0f0f0; color: #999; padding: 5px 10px; border-radius: 4px; }

/* 3. BARRA DE PROGRESO */
.rpc-barra-progreso {
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.rpc-relleno {
    height: 100%;
    background: #f2a922;
    transition: width 0.5s ease;
}

/* 4. FORMULARIO DE PRESCRIPCIÓN */
#form-prescripcion {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 20px auto;
}

.fila-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.col-form {
    flex: 1;
    min-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.col-form.full-width { min-width: 100%; }

#form-prescripcion label {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

#form-prescripcion input, 
#form-prescripcion select {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

#form-prescripcion input:focus, 
#form-prescripcion select:focus {
    border-color: #f2a922;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 169, 34, 0.1);
}

#form-prescripcion .btn-enviar-prescripcion {
    display: block;
    margin: 0px auto 0;
    background: linear-gradient(to bottom, #f2a922, #e89a0c);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(242, 169, 34, 0.3);
    transition: all 0.2s;
    width: 100%;
    border-radius: 5px;
    color: #fff;
}

#form-prescripcion .btn-enviar-prescripcion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 34, 0.4);
    background: #514431;
}

/* 5. TABLAS DE HISTORIAL Y PROYECTOS */
.tabla-puntos-gamificacion, .tabla-solicitudes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

.tabla-puntos-gamificacion th, .tabla-solicitudes th {
    background: #f9f9f9;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #eee;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
}

.tabla-puntos-gamificacion td, .tabla-solicitudes td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.fila-proyecto:hover { background-color: #fdf7ed !important; cursor: pointer; }

.flecha-indicador {
    display: inline-block;
    transition: transform 0.3s ease;
}

.fila-proyecto.abierto .flecha-indicador {
    transform: rotate(90deg);
    color: #f2a922;
}

.detalles-proyecto td { background-color: #fdfdfd !important; padding: 20px !important; }

/* 6. GRID DE BENEFICIOS Y FILTROS */
.rpc-filtros-beneficios {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filtro {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filtro.active {
    background: #4A3B2C;
    color: #f2a922;
    border-color: #4A3B2C;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card-beneficio {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #f2a922;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card-beneficio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.tipo-beneficio {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #f2a922;
    margin-bottom: 10px;
}

.titulo-premio-card { margin-bottom: 10px; font-size: 1.1rem; }
.detalle-beneficio { font-size: 0.9rem; color: #555; margin-bottom: 20px; flex-grow: 1; }

/* Botones de acción en tarjetas */
.button.btn-solicitar-premio {
    background: #4A3B2C;
    color: #f2a922;
    border: none;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
}

.button[disabled] {
    background: #eee !important;
    color: #aaa !important;
    cursor: not-allowed;
}

/* 7. ESTADOS Y ALERTAS */
.aviso-bloqueo-seguridad {
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #c53030;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.badge-tramite {
    background: #fff8e1;
    color: #f57f17;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.menu-menu-mi-cuenta-container{
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}
.menu-menu-mi-cuenta-container li a{
    font-weight: bold;
    color:#4A3B2C;
}
html body .menu-menu-mi-cuenta-container li.current-menu-item a{
    color: #FFB556;
}
#form-prescripcion {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: sans-serif;
}
#form-prescripcion h3 {
    margin-top: 0;
    color: #4A3B2C;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
#form-prescripcion input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}
#form-prescripcion button:hover {
    background: #444;
    transform: translateY(-1px);
}
html body .yith-wcan-filters{
    padding-bottom: 15px;
}
.rpc-proyectos-seccion table {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.fila-proyecto-toggle td {
    padding: 16px !important;
}
.fila-proyecto-toggle td{
    background-color: #fff;
}


.detalles-proyecto {
    background: #fdfdfd !important;
}

.rpc-unified-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.rpc-unified-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #eee;
    font-weight: 600;
}
.rpc-unified-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.rpc-unified-table tr:hover {
    background: #fdfdfd;
}
.rpc-fila-detalle {
    background: #fafafa !important;
}
/* 8. RESPONSIVO */
@media (max-width: 768px) {
    .col-form { min-width: 100%; }
    #form-prescripcion { padding: 20px; }
    .fila-form { gap: 10px; }
}