/* ========================================
   LIBRO DE RECLAMACIONES - ESTILOS
   Modelo INDECOPI Oficial
   ======================================== */

/* Sección Estática en Footer */
.libro-reclamaciones-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid #dee2e6;
}

.libro-reclamaciones-container {
    max-width: 400px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.libro-reclamaciones-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.libro-icon-container {
    margin-bottom: 20px;
}

.libro-icon-container i {
    font-size: 80px;
    color: #7B4397;
    display: block;
    margin-bottom: 15px;
}

.libro-reclamaciones-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

.libro-reclamaciones-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.libro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7B4397 0%, #1E9A8A 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

/* Modal del Libro de Reclamaciones */
.libro-reclamaciones-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.libro-reclamaciones-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.libro-reclamaciones-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Header del Modal */
.libro-reclamaciones-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.libro-reclamaciones-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.libro-reclamaciones-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.libro-reclamaciones-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.libro-reclamaciones-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Información INDECOPI */
.indecopi-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 30px;
}

.indecopi-info h3 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indecopi-info p {
    margin: 5px 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Formulario */
.libro-reclamaciones-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #dc3545;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Tipo de Reclamo */
.tipo-reclamo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tipo-option {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tipo-option:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.tipo-option.selected {
    border-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.1) 100%);
}

.tipo-option input[type="radio"] {
    margin-right: 8px;
}

.tipo-option label {
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

/* Botones */
.libro-reclamaciones-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 30px 30px 30px;
}

.btn-enviar-reclamo {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-enviar-reclamo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-cancelar-reclamo {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar-reclamo:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Sección en Dashboard para Administradores */
.reclamaciones-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reclamacion-stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.reclamacion-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reclamacion-stat-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.reclamacion-stat-card.total i {
    color: #dc3545;
}

.reclamacion-stat-card.pendientes i {
    color: #ffc107;
}

.reclamacion-stat-card.resueltos i {
    color: #28a745;
}

.reclamacion-stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

.reclamacion-stat-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Filtros */
.reclamaciones-filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Tabla de Reclamaciones */
.reclamacion-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.reclamacion-row:hover {
    background: rgba(220, 53, 69, 0.05);
}

.estado-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.estado-badge.pendiente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.estado-badge.en-proceso {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #0d6efd;
}

.estado-badge.resuelto {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #28a745;
}

/* Modal Detalle de Reclamo */
.reclamo-detalle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

.reclamo-detalle-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.reclamo-detalle-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.reclamo-detalle-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reclamo-detalle-body {
    padding: 30px;
}

.detalle-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.detalle-section:last-child {
    border-bottom: none;
}

.detalle-section h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detalle-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detalle-item strong {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.detalle-item p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .libro-reclamaciones-section {
        padding: 30px 15px;
    }
    
    .libro-reclamaciones-container {
        padding: 20px;
    }
    
    .libro-icon-container i {
        font-size: 60px;
    }
    
    .libro-reclamaciones-title {
        font-size: 1.1rem;
    }
    
    .libro-reclamaciones-subtitle {
        font-size: 0.85rem;
    }
    
    .libro-reclamaciones-content {
        margin: 10px;
    }
    
    .libro-reclamaciones-header h2 {
        font-size: 1.4rem;
    }
    
    .libro-reclamaciones-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tipo-reclamo-options {
        grid-template-columns: 1fr;
    }
    
    .libro-reclamaciones-actions {
        flex-direction: column;
    }
    
    .btn-enviar-reclamo,
    .btn-cancelar-reclamo {
        width: 100%;
        justify-content: center;
    }
    
    .reclamaciones-filtros {
        grid-template-columns: 1fr;
    }
}
