/* ================================
   ESTILOS CUERPO DE PAGINA
   ================================ */

body {
    margin-top: 140px !important;
    background:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        url('../imagenes/fondoBuscadoroficial.webp') no-repeat center center fixed !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ================================
   AJUSTES MODELO 3D
   ================================ */
.model3d-upload-area {
    border: 2px dashed #28a745;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fff9;
}

.model3d-upload-area:hover {
    border-color: #1e7e34;
    background: #e8f5e8;
}

.model3d-preview {
    margin-top: 10px;
    display: none;
}

/* ================================
   AJUSTES AUDIO
   ================================ */
.audio-upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.audio-upload-area:hover {
    border-color: #0056b3;
    background: #e6f2ff;
}

.audio-preview {
    margin-top: 10px;
    display: none;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* ================================
   CONTENEDOR PRINCIPAL DEL FORMULARIO
   ================================ */
.form-container {
    background: white;
    border-radius: 15px;
    border: solid 2px #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 180px 0px 30px 0px;
}

/* ================================
   TÍTULO DEL FORMULARIO
   ================================ */
.form-title {
    background: linear-gradient(135deg, #7a322e, #5a241f);
    color: white !important;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-title h1 {
    color: white !important;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 600;
}

.form-title p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.form-title-icon {
    color: white;
    margin-right: 10px;
}

/* ================================
   SECCIONES DEL FORMULARIO
   ================================ */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fdfdfd;
}

.form-section h4 {
    color: #7a322e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7a322e;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================================
   CAMPOS DEL FORMULARIO
   ================================ */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 15px !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #7a322e;
    box-shadow: 0 0 0 0.2rem rgba(122, 50, 46, 0.25);
}

/* ================================
   BOTONES
   ================================ */
.btn-museum {
    background: #7a322e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-museum:hover {
    background: #5a241f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 50, 46, 0.3);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* ================================
   ALERTAS
   ================================ */
.alert-container-bottom {
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.alert {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    padding: 12px 20px;
    max-width: 80%;
    border: 1px solid #f5c6cb;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* ================================
   ESTADO DE CARGA
   ================================ */
.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

/* Solo los spinners específicos deben girar */
.loading .loading-spinner-overlay,
.loading .file-status i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   DISEÑO DE FILAS
   ================================ */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* ================================
   ÁREA DE SUBIDA DE IMÁGENES
   ================================ */
.image-upload-area {
    border: 2px dashed #7a322e;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    background: #e9ecef;
}

.image-preview {
    display: none;
    margin-top: 15px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ================================
   SECCIÓN AUTO-RELLENO PDF
   ================================ */
.pdf-autofill-section {
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    padding: 20px;
}

.pdf-autofill-section h4 {
    color: #7a322e;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.pdf-autofill-section .alert-info {
    background-color: #f8f9fa;
    border-left: 4px solid #7a322e;
    color: #495057;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 12px 15px;
}

/* ================================
   ÁREA DE SUBIDA DE PDF MEJORADA
   ================================ */
.pdf-upload-area {
    border: 2px dashed #7a322e;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-upload-area:hover {
    background: #f5f5f5;
    border-color: #5a241f;
    box-shadow: 0 4px 12px rgba(122, 50, 46, 0.1);
}

.pdf-preview {
    margin-top: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #7a322e;
}

.pdf-suggestions {
    margin-top: 20px;
}

/* ================================
   ESTILOS ÁREA SUBIDA PDF
   ================================ */
.pdf-upload-icon {
    font-size: 3rem;
    color: #7a322e;
    margin-bottom: 15px;
    display: block;
}

.pdf-upload-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 10px;
}

.pdf-upload-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.hidden-input {
    display: none;
}

/* Estados ocultos por defecto */
#seccionCargaPDF,
#seccionMetodoIngreso,
#formularioPrincipal,
#objects-navigation,
#pdfPreview,
#pdfSuggestions,
#botonesFormulario,
#camposArqueologicosFisicos,
#camposArqueologicosContexto {
    display: none;
}

/* Estilos para campos arqueológicos */
#camposArqueologicosFisicos .alert-info,
#camposArqueologicosContexto .alert-info {
    background-color: #e8f4f8;
    border-left: 4px solid #17a2b8;
}

#camposArqueologicosContexto .alert-info {
    margin-top: 20px;
}

.campos-arqueologicos h5 {
    color: #17a2b8;
    margin-top: 20px;
    margin-bottom: 15px;
}

.campos-arqueologicos h5 i {
    color: #17a2b8;
}

/* ================================
   CAMPOS ARQUEOLÓGICOS
   ================================ */
.campos-arqueologicos {
    background: #f8f9fa;
    border-left: 4px solid #d4af37;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.campos-arqueologicos h5 {
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #7a322e;
}

.campos-arqueologicos h5 i {
    margin-right: 10px;
    color: #d4af37;
}

.campos-arqueologicos .alert-info {
    background-color: #fff;
    border: 1px solid #d4af37;
    color: #495057;
    padding: 10px 15px;
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   MODALES PERSONALIZADOS
   ================================ */
.modal-museo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-museo-overlay.active {
    display: flex;
}

.modal-museo {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease;
    overflow: hidden;
}

.modal-museo-header {
    padding: 25px 30px;
    border-bottom: 3px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-museo-header.success {
    background: linear-gradient(135deg, #7a322e, #5a241f);
}

.modal-museo-header.error {
    background: linear-gradient(135deg, #c82333, #a71d2a);
}

.modal-museo-header.info {
    background: linear-gradient(135deg, #7a322e, #5a241f);
}

.modal-museo-icon {
    font-size: 3rem;
    color: white;
}

.modal-museo-title {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-museo-body {
    padding: 30px;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}

.modal-museo-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.modal-museo-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-museo-btn.primary {
    background: #7a322e;
    color: white;
}

.modal-museo-btn.primary:hover {
    background: #5a241f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 50, 46, 0.3);
}

.modal-museo-btn.secondary {
    background: #6c757d;
    color: white;
    margin-right: 10px;
    display: none;
}

.modal-museo-btn.secondary:hover {
    background: #545b62;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   LOADING MEJORADO
   ================================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.loading.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Iconos en loading-content - sin animación por defecto */
.loading-content i {
    font-size: 3rem;
    color: #7a322e;
}

/* Solo el spinner overlay debe girar */
.loading-content .loading-spinner-overlay {
    animation: spin 1s linear infinite;
}

.loading-content p {
    margin-top: 20px;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ================================
   LOADING CON BARRA DE PROGRESO
   ================================ */
.loading-content {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 480px;
    width: 90%;
    border: 3px solid #7a322e;
}

.loading-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.loading-main-icon {
    font-size: 4rem;
    color: #7a322e;
}

.loading-spinner-overlay {
    position: absolute;
    bottom: -5px;
    right: -10px;
    font-size: 1.5rem;
    color: #c4a35a;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.loading-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #7a322e;
    margin: 0 0 8px 0;
}

.loading-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 25px 0;
    font-weight: 400;
}

/* Barra de progreso */
.upload-progress-container {
    margin: 20px 0;
}

.upload-progress-bar {
    position: relative;
    height: 24px;
    background: linear-gradient(to bottom, #e8e8e8, #f5f5f5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7a322e, #9a4a42, #c4a35a);
    background-size: 200% 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
    animation: progressShine 2s linear infinite;
    position: relative;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 12px 12px 0 0;
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.upload-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 5px;
}

.upload-progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7a322e;
}

.upload-progress-detail {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Detalles de archivos */
.upload-files-detail {
    margin: 25px 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.upload-file-item:last-child {
    margin-bottom: 0;
}

.upload-file-item i:first-child {
    font-size: 1.2rem;
    color: #7a322e;
    width: 24px;
    text-align: center;
}

.upload-file-item .file-name {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.upload-file-item .file-status {
    font-size: 0.85rem;
    color: #666;
}

.upload-file-item .file-status i {
    margin-right: 5px;
}

.upload-file-item.uploading {
    background: #fff8e6;
    border-color: #c4a35a;
}

.upload-file-item.uploading .file-status {
    color: #c4a35a;
}

.upload-file-item.completed {
    background: #e8f5e9;
    border-color: #4caf50;
}

.upload-file-item.completed .file-status {
    color: #4caf50;
}

.upload-file-item.error {
    background: #ffebee;
    border-color: #f44336;
}

.upload-file-item.error .file-status {
    color: #f44336;
}

.loading-tip {
    margin: 20px 0 0 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff8e6, #fff3d0);
    border-radius: 8px;
    border: 1px solid #c4a35a;
    color: #8a6d3b;
    font-size: 0.85rem;
    font-weight: 500;
}

.loading-tip i {
    margin-right: 8px;
    color: #c4a35a;
    animation: none !important;
}

/* Iconos de tipo de archivo (izquierda) - estáticos */
.upload-file-item>i:first-child {
    animation: none !important;
}

/* Animación del spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ================================
   SECCIÓN MULTIMEDIA
   ================================ */
.multimedia-section {
    background: linear-gradient(135deg, #f7f3f0 0%, #ece2df 100%);
    border: 2px solid #7a322e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.multimedia-section .section-title {
    color: #7a322e;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7a322e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.multimedia-subsection {
    background: #ffffff;
    border: 1px solid #e0d5d2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.multimedia-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    color: #7a322e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.subsection-title i {
    font-size: 1.1rem;
}

.subsection-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.subsection-desc .model3d-badge {
    font-size: 0.8rem;
}

/* Galería de imágenes */
.multimedia-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    min-height: 100px;
}

.multimedia-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.multimedia-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #7a322e;
}

.multimedia-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.multimedia-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 10px;
}

.multimedia-item:hover .multimedia-item-overlay {
    opacity: 1;
}

.multimedia-item-overlay .btn-action {
    padding: 10px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multimedia-item-overlay .btn-view {
    background: #3498db;
    color: white;
}

.multimedia-item-overlay .btn-view:hover {
    background: #2980b9;
}

.multimedia-item-overlay .btn-delete {
    background: #e74c3c;
    color: white;
}

.multimedia-item-overlay .btn-delete:hover {
    background: #c0392b;
}

.multimedia-item-overlay .btn-primary-img {
    background: #27ae60;
    color: white;
}

.multimedia-item-overlay .btn-primary-img:hover {
    background: #1e8449;
}

/* Badge de imagen principal */
.primary-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-badge i {
    font-size: 9px;
}

/* Badge para elementos nuevos */
.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-badge i {
    font-size: 9px;
}

/* Item multimedia nuevo */
.multimedia-item-new {
    border: 2px dashed #27ae60 !important;
    background: #f0fff4 !important;
}

/* Animaciones para alertas */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Placeholder de galería vacía */
.no-images {
    grid-column: 1 / -1;
    text-align: center;
    color: #adb5bd;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-images i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-images p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

/* Contenedor modelo 3D */
.model3d-container {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.model3d-info {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 22px;
    border-radius: 12px;
    text-align: left;
    width: 100%;
    max-width: 500px;
    border-left: 4px solid #7a322e;
}

.model3d-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.model3d-header>i {
    font-size: 1.5rem;
    color: #7a322e;
}

.model3d-title {
    flex: 1;
}

.model3d-title h5 {
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}

.model3d-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.model3d-badge.android {
    background: linear-gradient(135deg, #3ddc84, #00c853);
    color: white;
}

.model3d-badge.ios {
    background: linear-gradient(135deg, #333, #000);
    color: white;
}

.model3d-badge i {
    margin-right: 4px;
}

.model3d-description {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #7a322e;
}

.model3d-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-model3d {
    text-align: center;
    color: #adb5bd;
}

.no-model3d i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-model3d p {
    font-size: 14px;
}

/* Contenedor de audio */
.audio-container {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.audio-player-wrapper {
    background: rgba(255, 255, 255, 0.96);
    padding: 20px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border-left: 4px solid #7a322e;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.audio-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7a322e, #5a241f);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.3rem;
}

.audio-details h5 {
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1rem;
}

.audio-details p {
    color: #666;
    margin: 0;
    font-size: 12px;
}

.audio-details .audio-format {
    color: #7a322e;
    font-weight: 500;
}

.audio-player-wrapper audio {
    width: 100%;
    margin-bottom: 15px;
}

.audio-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.no-audio {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.no-audio i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-audio p {
    font-size: 14px;
    margin-bottom: 5px;
}

.no-audio small.text-muted {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Botones de acciones multimedia */
.multimedia-actions {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.btn-upload {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #1e8449, #186a3b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-multimedia {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-multimedia.btn-view {
    background: #3498db;
    color: white;
}

.btn-multimedia.btn-view:hover {
    background: #2980b9;
}

.btn-multimedia.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-multimedia.btn-delete:hover {
    background: #c0392b;
}

/* Placeholder de carga */
.multimedia-placeholder {
    text-align: center;
    color: #adb5bd;
    padding: 30px;
}

.multimedia-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.multimedia-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    body {
        margin-top: 120px !important;
    }

    .form-container {
        padding: 20px;
        margin: 15px;
    }

    .form-title {
        padding: 15px;
    }

    .form-title h1 {
        font-size: 1.5rem;
    }

    .form-title p {
        font-size: 0.95rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-museum {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .form-section h4 {
        font-size: 1.1rem;
    }

    .pdf-upload-area {
        padding: 20px;
    }

    .pdf-upload-icon {
        font-size: 2.5rem;
    }

    .pdf-upload-text {
        font-size: 1rem;
    }

    /* Responsive multimedia */
    .multimedia-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .multimedia-item img {
        height: 120px;
    }

    .multimedia-subsection {
        padding: 15px;
    }

    .subsection-title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .model3d-container,
    .audio-container {
        min-height: 150px;
        padding: 15px;
    }

    .model3d-info,
    .audio-player-wrapper {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    body {
        margin-top: 100px !important;
    }

    .form-container {
        padding: 15px;
        margin: 10px;
        border-radius: 10px;
    }

    .form-title h1 {
        font-size: 1.3rem;
    }

    .form-title p {
        font-size: 0.85rem;
    }

    .form-section {
        padding: 12px;
    }

    .form-section h4 {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .form-control {
        font-size: 14px;
        padding: 10px 12px !important;
    }

    /* Responsive multimedia 576px */
    .multimedia-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .multimedia-item img {
        height: 100px;
    }

    .multimedia-section .section-title {
        font-size: 1.1rem;
    }

    .subsection-title {
        font-size: 0.95rem;
    }

    .subsection-desc {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .btn-upload {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .no-images i,
    .no-model3d i,
    .no-audio i {
        font-size: 2.5rem;
    }

    .audio-info {
        flex-direction: column;
        text-align: center;
    }

    .audio-icon {
        margin-bottom: 10px;
    }
}

/* ================================
   ESTILOS PARA CARDS DE SELECCI\u00d3N
   ================================ */
.card {
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(122, 50, 46, 0.2);
}

.card.selected {
    border-color: #d4af37 !important;
    border-width: 3px !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ================================
   NAVEGACI\u00d3N DE M\u00daTIPLES OBJETOS
   ================================ */
#objects-navigation {
    position: relative !important;
    margin-bottom: 25px !important;
}

#objects-navigation .btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

#objects-navigation .btn:hover:not(:disabled) {
    background-color: #5a241f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 50, 46, 0.3);
}

#objects-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999 !important;
}

#objects-navigation .btn:active:not(:disabled) {
    transform: translateY(0);
}

#objects-navigation select {
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#objects-navigation select:hover {
    border-color: #d4af37 !important;
}

#objects-navigation select:focus {
    outline: none;
    border-color: #7a322e !important;
    box-shadow: 0 0 0 0.2rem rgba(122, 50, 46, 0.25);
}

@media (max-width: 768px) {
    #objects-navigation>div>div {
        flex-direction: column !important;
    }

    #objects-navigation .btn {
        width: 100%;
        margin: 5px 0 !important;
    }
}

/* ================================
   PANEL DE NAVEGACIÓN MÚLTIPLES OBJETOS
   ================================ */
#objects-navigation {
    display: none;
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.objects-nav-header {
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.objects-nav-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.objects-nav-header-title i {
    font-size: 1.5rem;
    color: #7a322e;
}

.objects-nav-header-title h4 {
    margin: 0;
    color: #7a322e;
    font-weight: 600;
    border: none;
    padding: 0;
}

.objects-nav-header p {
    margin: 8px 0 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.objects-nav-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.objects-nav-controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.objects-nav-controls label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.objects-nav-counter {
    font-size: 1.1rem;
    color: #7a322e;
    font-weight: 600;
}

.objects-nav-buttons {
    display: flex;
    gap: 10px;
}

.objects-nav-btn {
    background-color: #7a322e;
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.objects-nav-btn:hover {
    background-color: #5a241f;
    transform: translateY(-2px);
}

.objects-nav-selector label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.objects-nav-selector select {
    border: 2px solid #7a322e;
    color: #495057;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ================================
   SELECTOR TIPO DE FICHA - PASO 1
   ================================ */
#seccionTipoFicha {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #d4af37;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.paso-header {
    text-align: center;
    margin-bottom: 25px;
}

.paso-header i {
    font-size: 3rem;
    color: #7a322e;
    margin-bottom: 15px;
    display: block;
}

.paso-header h3 {
    color: #7a322e;
    margin-bottom: 10px;
    font-weight: 600;
}

.paso-header p {
    color: #6c757d;
    font-size: 1rem;
}

.paso-selector-container {
    max-width: 600px;
    margin: 0 auto;
}

.paso-selector-container label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

.paso-selector-container select {
    font-size: 1.15rem;
    padding: 15px 20px;
    border: 2px solid #7a322e;
    height: auto;
    line-height: 1.5;
}

/* ================================
   SELECTOR MÉTODO INGRESO - PASO 2
   ================================ */
#seccionMetodoIngreso {
    display: none;
    background: #f8f9fa;
    border-left: 4px solid #d4af37;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

#seccionMetodoIngreso>h4 {
    color: #7a322e;
    margin-bottom: 20px;
}

.metodo-cards-container {
    margin-bottom: 20px;
}

/* Cards de selección de método */
.metodo-card {
    border: 2px solid #7a322e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.metodo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(122, 50, 46, 0.2);
}

.metodo-card.manual {
    border-color: #6c757d;
}

.metodo-card .card-body {
    padding: 25px;
}

.metodo-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.metodo-card-icon.pdf {
    color: #7a322e;
}

.metodo-card-icon.manual {
    color: #6c757d;
}

.metodo-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.metodo-card h5.pdf {
    color: #7a322e;
}

.metodo-card h5.manual {
    color: #495057;
}

.metodo-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.metodo-badge {
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    display: inline-block;
}

.metodo-badge.pdf {
    background: #7a322e;
}

.metodo-badge.manual {
    background: #6c757d;
}

/* ================================
   BOTÓN VOLVER AL BUSCADOR
   ================================ */
.btn-volver-buscador-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.btn-volver-buscador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: #7a322e;
    border: 2px solid #7a322e;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-volver-buscador:hover {
    background: #7a322e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 50, 46, 0.3);
    text-decoration: none;
}

.btn-volver-buscador i {
    font-size: 1rem;
}

/* ================================
   RESPONSIVE - PASOS Y BOTONES
   ================================ */
@media (max-width: 768px) {
    #seccionTipoFicha {
        padding: 20px 15px;
    }

    .paso-header i {
        font-size: 2.5rem;
    }

    .paso-header h3 {
        font-size: 1.3rem;
    }

    .paso-selector-container label {
        font-size: 1rem;
    }

    .paso-selector-container select {
        font-size: 1rem;
        padding: 10px;
    }

    #seccionMetodoIngreso {
        padding: 20px 15px;
    }

    .metodo-card .card-body {
        padding: 20px 15px;
    }

    .metodo-card-icon {
        font-size: 2.5rem;
    }

    .metodo-card h5 {
        font-size: 1.1rem;
    }

    .metodo-card p {
        font-size: 0.85rem;
    }

    .metodo-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .objects-nav-controls-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .objects-nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .objects-nav-btn {
        width: 100%;
        text-align: center;
    }

    .btn-volver-buscador {
        width: 100%;
        padding: 12px 20px;
    }

    .btn-volver-buscador-container {
        margin-top: 20px;
        padding-top: 15px;
    }
}

@media (max-width: 576px) {
    .paso-header i {
        font-size: 2rem;
    }

    .paso-header h3 {
        font-size: 1.1rem;
    }

    .paso-header p {
        font-size: 0.9rem;
    }

    .metodo-card-icon {
        font-size: 2rem;
    }

    .metodo-card h5 {
        font-size: 1rem;
    }
}

/* ================================
   INDICADOR DE PROCESAMIENTO
   ================================ */
.processing-indicator {
    text-align: center;
    padding: 30px 20px;
}

.processing-indicator i {
    font-size: 2.5rem;
    color: #7a322e;
    margin-bottom: 15px;
    display: block;
}

.processing-indicator p {
    color: #7a322e;
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.processing-indicator small {
    color: #666;
    font-size: 0.9rem;
}

/* ================================
   RESPONSIVE PARA BARRA DE PROGRESO
   ================================ */
@media (max-width: 576px) {
    .loading-content {
        padding: 25px 20px;
        margin: 10px;
    }

    .loading-main-icon {
        font-size: 3rem;
    }

    .loading-title {
        font-size: 1.1rem;
    }

    .loading-subtitle {
        font-size: 0.85rem;
    }

    .upload-progress-bar {
        height: 20px;
    }

    .upload-progress-percent {
        font-size: 1.2rem;
    }

    .upload-progress-detail {
        font-size: 0.8rem;
    }

    .upload-files-detail {
        padding: 10px;
    }

    .upload-file-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .upload-file-item .file-name {
        font-size: 0.8rem;
    }

    .upload-file-item .file-status {
        font-size: 0.75rem;
    }

    .loading-tip {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
}

/* ================================
   ESTILOS VIEW SWITCHER & PAGINACIÓN
   ================================ */
.view-switcher-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.view-switcher {
    background: #f1f3f5;
    padding: 5px;
    border-radius: 30px;
    display: inline-flex;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
}

.view-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn.active {
    background: white;
    color: #7a322e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.view-btn:hover:not(.active) {
    color: #7a322e;
    transform: translateY(-1px);
}

/* Indicador de Pasos */
.step-indicator-container {
    margin-bottom: 30px;
    padding: 0 10px;
    display: none;
    /* Se muestra solo en modo paginación */
}

.step-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7a322e, #a5453f);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.step-text {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Navegación interna (Paginación) */
/* ================================
   PAGINATION NAVIGATION BUTTONS (MUSEUM STYLE)
   ================================ */
.pagination-nav {
    display: none;
    /* Hidden by default, activated by JS in pagination mode */
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.pagination-mode .pagination-nav {
    display: flex;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    gap: 12px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-nav i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Specific button styles */
.btn-prev {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn-prev:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-prev:hover i {
    transform: translateX(-4px);
}

.btn-next {
    background: linear-gradient(135deg, #7a322e, #5a241f);
    color: #ffffff !important;
}

.btn-next:hover {
    background: linear-gradient(135deg, #5a241f, #3d1714);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 50, 46, 0.35);
}

.btn-next:hover i {
    transform: translateX(4px);
}

.btn-next:active,
.btn-prev:active {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pagination-nav {
        padding-top: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .pagination-nav {
        flex-direction: row;
        gap: 10px;
        justify-content: stretch;
    }

    .btn-nav {
        padding: 10px 15px;
        font-size: 0.75rem;
        flex: 1;
        max-width: none;
        letter-spacing: 0;
        gap: 6px;
    }

    .btn-nav i {
        font-size: 0.7rem;
    }
}


.pagination-mode .pagination-nav {
    display: flex;
}

.accordion-mode .pagination-nav {
    display: none !important;
}

.pagination-mode .form-section {
    display: none;
    /* Ocultar todos por defecto */
    animation: fadeIn 0.4s ease-out;
}

.pagination-mode .form-section.active-step {
    display: block;
    /* Solo mostrar activo */
}

/* Modo Acordeón */
.accordion-mode .form-section {
    display: block !important;
    transition: all 0.3s ease;
}

.accordion-mode .section-title,
.accordion-mode h4 {
    /* Adaptado para h4 que se usa en agregar_coleccion */
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.accordion-mode .section-title::after,
.accordion-mode h4::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.accordion-mode .form-section.collapsed .section-title::after,
.accordion-mode .form-section.collapsed h4::after {
    transform: rotate(-90deg);
}

.accordion-mode .form-section.collapsed {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 15px;
}

.accordion-mode .form-section.collapsed>*:not(h4):not(.section-title) {
    display: none;
}

.accordion-mode .form-section:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ================================
   ESTILOS RADIO BUTTONS PERSONALIZADOS
   ================================ */
.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #007bff !important;
    background-color: #007bff !important;
}

.custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.custom-control-input:not(:disabled):active~.custom-control-label::before {
    color: #fff;
    background-color: #b3d7ff !important;
    border-color: #b3d7ff !important;
}

/* Borde azul suave cuando no está seleccionado para mantener estilo */
.custom-radio .custom-control-label::before {
    border-radius: 50%;
    border-color: #adb5bd;
}

.custom-control-label {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}