/* Proyecto Detalle - Estilos */

.proyecto-detalle-imagen {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.proyecto-categoria-badge {
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.proyecto-detalle-titulo {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.proyecto-detalle-subtitulo {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.proyecto-detalle-descripcion {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

.proyecto-icono-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.proyecto-icono-container i {
    font-size: 64px;
    color: #667eea;
}

.proyecto-meta-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.proyecto-meta-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.proyecto-meta-item:last-child {
    margin-bottom: 0;
}

.proyecto-meta-item i {
    font-size: 20px;
    margin-right: 10px;
    color: #667eea;
}

.proyecto-meta-item strong {
    margin-right: 10px;
}

.widget-relacionados {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-relacionados h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.proyecto-relacionado-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.proyecto-relacionado-item:hover {
    transform: translateX(5px);
}

.proyecto-relacionado-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proyecto-relacionado-imagen {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.proyecto-relacionado-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.proyecto-relacionado-info h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.proyecto-relacionado-info h4 a:hover {
    color: #667eea;
}

.proyecto-relacionado-categoria {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    color: white;
    font-weight: 500;
}

.btn-volver {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 30px;
}

.btn-volver:hover {
    background: #5568d3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-volver i {
    margin-right: 8px;
}

.destacado-badge-detalle {
    background: #FFD700;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-left: 10px;
    font-size: 14px;
}

.widget-sticky {
    position: sticky;
    top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .proyecto-detalle-imagen {
        height: 250px;
    }
    
    .proyecto-detalle-titulo {
        font-size: 28px;
    }
    
    .proyecto-detalle-subtitulo {
        font-size: 18px;
    }
    
    .widget-sticky {
        position: relative;
        top: 0;
    }
    
    .proyecto-relacionado-imagen {
        width: 60px;
        height: 60px;
    }
}

/* Proyectos en miniatura */
.proyecto-mini-item {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.proyecto-mini-item:hover {
    transform: translateX(5px);
}

.proyecto-mini-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proyecto-mini-imagen {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.proyecto-mini-imagen:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.proyecto-mini-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.proyecto-mini-info h5 a {
    color: #1a1a1a;
    text-decoration: none;
}

.proyecto-mini-info h5 a:hover {
    color: #667eea;
}

.mini-destacado {
    font-size: 12px;
    color: #FFD700;
}

/* Sistema de Calificación */
.calificacion-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.calificacion-container h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.rating-summary {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #FFB400;
    line-height: 1;
}

.rating-stars-display {
    font-size: 24px;
    color: #FFB400;
    margin: 5px 0;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.rating-bars {
    flex: 1;
    margin-left: 30px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-bar-label {
    min-width: 60px;
    font-size: 14px;
    color: #666;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
}

.rating-bar-fill {
    height: 100%;
    background: #FFB400;
    transition: width 0.3s ease;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 13px;
    color: #999;
}

.rating-form {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-form h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.stars-input {
    display: inline-flex;
    gap: 5px;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 15px;
}

.star {
    color: #ddd;
    transition: all 0.2s ease;
}

.star:hover,
.star.hover {
    color: #FFB400;
    transform: scale(1.2);
}

.star.selected {
    color: #FFB400;
}

.btn-calificar {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calificar:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-calificar:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.calificacion-mensaje {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.calificacion-mensaje.success {
    background: #d4edda;
    color: #155724;
}

.calificacion-mensaje.error {
    background: #f8d7da;
    color: #721c24;
}

.ya-votado {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #1976d2;
    font-weight: 500;
}

@media (max-width: 768px) {
    .rating-display {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-bars {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .stars-input {
        font-size: 28px;
    }
}