/* ESTILOS ESPECÍFICOS PARA COTIZACIONES */
.cotizaciones-page {
    padding: 2rem 0;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.cotizacion-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FORMULARIO UNIVERSAL EN COTIZACIONES */
.customization-section {
    padding: 2rem 0;
}

.customization-panel {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.upload-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.upload-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#design-upload {
    margin-bottom: 1rem;
}

.image-preview {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.options-section {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--gray-700);
}

.option-group input,
.option-group select,
.option-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.option-group input:focus,
.option-group select:focus,
.option-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.option-group textarea {
    resize: vertical;
    min-height: 100px;
}

.option-group.full-width {
    grid-column: 1 / -1;
}

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

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.price-section {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.price-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--gray-300);
    color: var(--gray-700);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: var(--gray-400);
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-actions {
    margin-top: 1.5rem;
}

/* INFORMACIÓN DE CATEGORÍA */
#categoria-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

#categoria-titulo {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

#categoria-descripcion {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* SERVICIOS DISPONIBLES  */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.servicio-option {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.servicio-option:hover {
    border-color: var(--primary);
    background: white;
}

.servicio-option.selected {
    border-color: var(--primary);
    background: rgba(0, 71, 171, 0.1);
}

.servicio-option input {
    margin-right: 0.5rem;
}

/* CARGAR ARCHIVOS  */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary);
}

.file-upload input {
    display: none;
}

.upload-label {
    display: block;
    cursor: pointer;
    color: var(--gray-600);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 0.5rem;
}

/* RESUMEN DE COTIZACIÓN  */
.resumen-cotizacion {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
    border-top: 2px solid var(--gray-300);
    margin-top: 1rem;
}

/* BOTONES GENERALES */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-cotizar {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-cotizar:hover {
    opacity: 0.9;
}

.btn-limpiar {
    background: var(--gray-300);
    color: var(--gray-700);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-limpiar:hover {
    background: var(--gray-400);
}

/* MODAL DE CONFIRMACIÓN (mantenido) */
.modal-cotizacion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-success {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Estilos para botones que son enlaces */
a.btn-primary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

a.btn-primary:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

a.btn-primary.large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Estilo simple para el contenedor de usuario */
.user-container {
    display: inline-block;
}

.user-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-icon:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .customization-panel {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1rem;
    }

    #categoria-info {
        padding: 1rem;
    }

    #categoria-titulo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}