/* ========================================
   TIPOGRAFÍA GLOBAL
   ======================================== */
/* Importar fuentes si no están disponibles desde el HTML */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* Fuente base para todo el contenido */
body, 
.form-control, 
.btn, 
.nav-link, 
.dropdown-item,
.card-text,
.text-muted,
p, span, div, a, li, td, th {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Fuentes para títulos */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title,
.modal-title,
.breadcrumb-title,
.navbar-brand,
.footer-title,
.footer-subtitle {
    font-family: 'proxima-nova', 'Proxima Nova', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
}

/* Ajustes específicos para diferentes tamaños de títulos */
h1, .h1 { 
    font-weight: 700 !important; 
    letter-spacing: -0.02em;
}
h2, .h2 { 
    font-weight: 600 !important; 
    letter-spacing: -0.01em;
}
h3, .h3 { 
    font-weight: 600 !important; 
}
h4, .h4, h5, .h5, h6, .h6 { 
    font-weight: 500 !important; 
}

/* ========================================
   ESTILOS PERSONALIZADOS EXISTENTES
   ======================================== */

.search-container .input-group-lg .form-control {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.search-container .btn {
    padding: 0.75rem 1.5rem;
}

#searchResults .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.3s ease;
}

#searchResults .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    cursor: pointer;
}

.search-container {
    position: relative;
}

.search-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #dee2e6;
}

/* Nuevos estilos para los botones de filtro */
.badge-juego {
    background-color: #2d84b6 !important;
    color: white !important;
}

.badge-expansion {
    background-color: #581c87 !important;
    color: white !important;
}

.input-container .input-group-lg .form-control {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-container .input-group-text {
    padding: 0.75rem 1rem;
    border: 2px solid #28a745;
}

.input-container .form-control {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.input-container .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Colores para expansiones */
.bg-purple-100 {
    background-color: rgba(139, 69, 193, 0.1) !important;
}

.bg-purple-600 {
    background-color: #8b45c1 !important;
}

.text-purple-600 {
    color: #8b45c1 !important;
}

/* Efecto de campo completado automáticamente */
.border-success {
    border-color: #28a745 !important;
    animation: pulse-success 2s ease-in-out;
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Estilos para los campos de idioma y versión */
.input-container .form-control,
.input-container .form-select {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-container .form-control:focus,
.input-container .form-select:focus {
    border-color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

/* Estilos específicos para el selector de idioma */
#idiomaSelect {
    padding-left: 1rem;
}

#idiomaFlag {
    border-radius: 2px;
    margin-right: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.input-group-text {
    min-width: 50px;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Efectos hover para los input groups */
.input-container:hover .input-group-text {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animación para campos completados */
.border-success {
    animation: pulse-success 1.5s ease-in-out;
}

@keyframes pulse-success {
    0% { 
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.1); 
    }
    100% { 
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); 
    }
}

/* Estilos para la sección de condiciones */
.condition-container {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.condition-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.condition-option {
    position: relative;
}

.condition-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.condition-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: auto;
    position: relative;
    overflow: hidden;
}

.condition-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

/* Estados por condición */
.condition-label.excellent::before { background-color: #28a745; }
.condition-label.very-good::before { background-color: #20c997; }
.condition-label.good::before { background-color: #17a2b8; }
.condition-label.fair::before { background-color: #ffc107; }
.condition-label.used::before { background-color: #fd7e14; }
.condition-label.custom::before { background-color: #6c757d; }
.condition-label.incomplete::before { background-color: #dc3545; }
.condition-label.not-applicable::before { background-color: #adb5bd; }

/* Hover effects */
.condition-label:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.condition-label.excellent:hover { border-color: #28a745; background-color: rgba(40, 167, 69, 0.05); }
.condition-label.very-good:hover { border-color: #20c997; background-color: rgba(32, 201, 151, 0.05); }
.condition-label.good:hover { border-color: #17a2b8; background-color: rgba(23, 162, 184, 0.05); }
.condition-label.fair:hover { border-color: #ffc107; background-color: rgba(255, 193, 7, 0.05); }
.condition-label.used:hover { border-color: #fd7e14; background-color: rgba(253, 126, 20, 0.05); }
.condition-label.custom:hover { border-color: #6c757d; background-color: rgba(108, 117, 125, 0.05); }
.condition-label.incomplete:hover { border-color: #dc3545; background-color: rgba(220, 53, 69, 0.05); }
.condition-label.not-applicable:hover { border-color: #adb5bd; background-color: rgba(173, 181, 189, 0.05); }

/* Estado seleccionado */
.condition-option input:checked + .condition-label {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.condition-option input:checked + .condition-label.excellent { 
    border-color: #28a745; 
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
}
.condition-option input:checked + .condition-label.very-good { 
    border-color: #20c997; 
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
}
.condition-option input:checked + .condition-label.good { 
    border-color: #17a2b8; 
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
}
.condition-option input:checked + .condition-label.fair { 
    border-color: #ffc107; 
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
}
.condition-option input:checked + .condition-label.used { 
    border-color: #fd7e14; 
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
}
.condition-option input:checked + .condition-label.custom { 
    border-color: #6c757d; 
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
}
.condition-option input:checked + .condition-label.incomplete { 
    border-color: #dc3545; 
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
}
.condition-option input:checked + .condition-label.not-applicable { 
    border-color: #adb5bd; 
    background: linear-gradient(135deg, rgba(173, 181, 189, 0.1) 0%, rgba(173, 181, 189, 0.05) 100%);
}

.condition-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0.75rem;
}

.condition-code {
    font-weight: 700;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

.condition-info {
    font-size: 0.75rem;
    color: #6c757d;
    cursor: help;
}

.condition-description {
    text-align: left;
}

.condition-description strong {
    color: #333;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.condition-description small {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .condition-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .condition-label {
        min-width: unset;
        justify-content: flex-start;
    }
    
    .condition-container {
        padding: 1rem;
    }
}

/* Animación de selección */
@keyframes condition-select {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

.condition-option input:checked + .condition-label {
    animation: condition-select 0.3s ease-out;
}

/* Estilos para tipo de publicación */
.publication-type-container {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.type-option {
    position: relative;
    height: 100%;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.type-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

/* Colores por tipo de publicacion */
.type-label.sale::before { background: linear-gradient(90deg, #28a745, #20c997); }
.type-label.exchange::before { background: linear-gradient(90deg, #17a2b8, #6f42c1); }
.type-label.request::before { background: linear-gradient(90deg, #6c757d, #495057); }
.type-label.auction::before { background: linear-gradient(90deg, #ffc107, #ffb300); }


/* Hover effects */
.type-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.type-label.sale:hover { 
    border-color: #28a745; 
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
}
.type-label.exchange:hover { 
    border-color: #17a2b8; 
    background: linear-gradient(145deg, rgba(23, 162, 184, 0.05), rgba(111, 66, 193, 0.05));
}
.type-label.request:hover { 
    border-color: #6c757d; 
    background: linear-gradient(145deg, rgba(108, 117, 125, 0.05), rgba(73, 80, 87, 0.05));
}
.type-label.auction:hover {
    border-color: #ffb300;
    background-color: rgba(255, 193, 7, 0.2);
}

/* Estado seleccionado */
.type-option input:checked + .type-label {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: type-select 0.4s ease-out;
}

.type-option input:checked + .type-label.sale { 
    border-color: #28a745; 
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
}
.type-option input:checked + .type-label.exchange { 
    border-color: #17a2b8; 
    background: linear-gradient(145deg, rgba(23, 162, 184, 0.1), rgba(111, 66, 193, 0.05));
}
.type-option input:checked + .type-label.request { 
    border-color: #6c757d; 
    background: linear-gradient(145deg, rgba(108, 117, 125, 0.1), rgba(73, 80, 87, 0.05));
}
.type-option input:checked + .type-label.auction {
    border-color: #ffc107;
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
}

.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.type-label.sale .type-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}
.type-label.exchange .type-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}
.type-label.request .type-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.type-label.auction .type-icon {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: white;
}

.type-content {
    flex-grow: 1;
}

.type-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.type-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Estilos para el campo de precio */
.price-suggestions {
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.price-suggestion {
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-suggestion:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateY(-1px);
}

/* Animaciones */
@keyframes type-select {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
    .publication-type-container {
        padding: 1rem;
    }
    
    .type-label {
        padding: 1rem 0.75rem;
    }
    
    .type-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .price-suggestions .d-flex {
        justify-content: center;
    }
}

/* Efecto de precio seleccionado */
.price-suggestion.active {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transform: scale(1.05);
}

/* Estilos para el campo de descripción */
.description-container .form-control {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 140px;
}

.description-container .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    transform: translateY(-2px);
}

.description-container .form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Contador de caracteres */
.character-counter {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid #dee2e6;
}

.character-counter.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404 !important;
}

.character-counter.danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24 !important;
}

/* Sugerencias de contenido */
.suggestion-card {
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.suggestion-icon {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plantillas rápidas */
.template-btn {
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: #ffc107;
    color: #856404;
}

.template-btn:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.template-btn:active {
    animation: template-click 0.2s ease;
}

/* Efectos de escritura */
.description-container .form-control.typing {
    border-color: #28a745;
    box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, 0.15);
}

/* Animaciones */
@keyframes template-click {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(0.95) translateY(1px); }
    100% { transform: scale(1) translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .description-container .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .suggestion-card {
        padding: 0.5rem;
    }
    
    .template-btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .character-counter {
        position: static !important;
        text-align: center;
        margin-top: 0.5rem;
        border-radius: 4px;
    }
}

/* Estado de validación */
.description-container .form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.4 1.4L7.98 3.85l.94.94L4.66 8.84 2.3 6.73z'/%3e%3c/svg%3e");
}

.description-container .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}
/* Contenedor principal de imágenes */
.images-container {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #dee2e6;
}

/* Estilos base para áreas de upload */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.upload-area:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* Imagen principal */
.main-upload {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-upload.has-image {
    border-color: #28a745;
    border-style: solid;
}

/* Grid de imágenes adicionales */
.additional-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.additional-upload {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholders de upload */
.upload-placeholder {
    text-align: center;
    padding: 1rem;
}

.upload-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.main-upload .upload-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.upload-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.main-upload .upload-title {
    font-size: 1.3rem;
}

.upload-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.upload-specs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Vista previa de imágenes */
.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

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

.upload-preview:hover .preview-overlay {
    opacity: 1;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-preview:hover .remove-image {
    opacity: 1;
}

/* Estados especiales */
.upload-area.dragover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
    transform: scale(1.02);
}

.upload-area.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.upload-area.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

/* Animaciones */
@keyframes uploadSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.upload-area.success {
    animation: uploadSuccess 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .images-container {
        padding: 1rem;
    }
    
    .main-upload {
        height: 200px;
    }
    
    .additional-images-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .additional-upload {
        height: 150px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .main-upload .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Indicadores de carga */
.upload-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    z-index: 10;
}

/* Imágenes del juego */
.main-game-image {
    transition: transform 0.3s ease;
    border: 1px solid #dee2e6;
}

.main-game-image:hover {
    transform: scale(1.02);
}

.additional-image {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.additional-image:hover {
    transform: scale(1.1);
    border-color: #0d6efd;
    box-shadow: 0 4px 8px rgba(13,110,253,0.3);
}

.additional-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.no-image-container {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-body img {
    border-radius: 0.5rem;
}

/* Imágenes adicionales mejoradas */
.additional-image {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef !important;
}

.additional-image:hover {
    transform: scale(1.05);
    border-color: #0d6efd !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

.additional-image-container:hover .position-absolute {
    background: rgba(13, 110, 253, 0.9) !important;
}

/* ================================
   BREADCRUMB MODERNO
   ================================ */

/* Contenedor principal del breadcrumb */
.modern-breadcrumb {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%); */
    background: linear-gradient(135deg, #ff8c00, #ffc107);
    background-color: #212529;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.modern-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ff8c00, #ffc107);
    animation: breadcrumbShimmer 3s ease-in-out infinite;
}

.breadcrumb-container {
    position: relative;
    z-index: 2;
}

/* Lista de breadcrumb moderna */
.breadcrumb-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
    position: relative;
    animation: slideInFromLeft 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

/* Animaciones escalonadas */
.breadcrumb-item-modern:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item-modern:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb-item-modern:nth-child(3) { animation-delay: 0.3s; }
.breadcrumb-item-modern:nth-child(4) { animation-delay: 0.4s; }
.breadcrumb-item-modern:nth-child(5) { animation-delay: 0.5s; }

/* Contenido del breadcrumb */
.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto glassmorphism */
.breadcrumb-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Enlaces del breadcrumb */
.breadcrumb-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.breadcrumb-link:hover .breadcrumb-content {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.breadcrumb-link:hover .breadcrumb-content::before {
    opacity: 1;
}

/* Elemento activo */
.breadcrumb-content.active-content {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: #ffc107;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.2);
}

/* Elemento home especial */
.breadcrumb-item-modern.home .breadcrumb-content {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    /* border-color: rgba(33, 150, 243, 0.3); */
}

.breadcrumb-item-modern.home .breadcrumb-link:hover .breadcrumb-content {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: #ffc107;
}

/* Iconos del breadcrumb */
.breadcrumb-icon {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover .breadcrumb-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Texto del breadcrumb */
.breadcrumb-text {
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.025em;
}

/* Separadores modernos */
.breadcrumb-separator {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.breadcrumb-separator svg {
    color: #6c757d;
}

.breadcrumb-item-modern:hover + .breadcrumb-item-modern .breadcrumb-separator {
    opacity: 0.8;
    transform: translateX(2px);
}

/* Meta información */
.breadcrumb-meta {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb-meta small {
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

/* ================================
   ANIMACIONES BREADCRUMB
   ================================ */

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

@keyframes breadcrumbShimmer {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

/* ================================
   RESPONSIVE BREADCRUMB
   ================================ */

@media (max-width: 768px) {
    .breadcrumb-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .breadcrumb-item-modern {
        width: 100%;
    }
    
    .breadcrumb-content {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    /* Mostrar como lista vertical en móviles */
    .breadcrumb-item-modern::after {
        content: '';
        position: absolute;
        bottom: -0.375rem;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #ffc107;
        border-radius: 50%;
        opacity: 0.5;
    }
    
    .breadcrumb-item-modern.active::after,
    .breadcrumb-item-modern:last-child::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .modern-breadcrumb {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-content {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .breadcrumb-icon {
        font-size: 0.75rem;
    }
    
    .breadcrumb-text {
        font-size: 0.8rem;
    }
}

/* ================================
   FIN BREADCRUMB MODERNO
   ================================ */

/* ================================
   NAVEGACIÓN MÓVIL
   ================================ */

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 0;
}

.mobile-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
}

.mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 8px 4px;
    min-height: 60px;
    position: relative;
    flex: 1;
    max-width: 80px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: #0d6efd;
    text-decoration: none;
}

.mobile-nav .nav-link svg {
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-nav .nav-link:hover svg,
.mobile-nav .nav-link.active svg {
    transform: scale(1.1);
}

.mobile-nav .nav-link span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav .notification-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(50%);
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ensure body has bottom padding for fixed mobile nav */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 80px;
    }
}

/* ================================
   BREADCRUMB MÓVIL OPTIMIZADO
   ================================ */

/* Mejoras específicas para móvil */
@media (max-width: 991.98px) {
    /* Hacer el breadcrumb más compacto */
    .modern-breadcrumb {
        padding: 0.5rem 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Contenedor más compacto */
    .breadcrumb-container {
        padding: 0 0.5rem;
    }
    
    /* Items más pequeños y horizontales */
    .breadcrumb-modern {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.25rem !important;
        align-items: center;
    }
    
    .breadcrumb-item-modern {
        width: auto !important;
        flex: none;
    }
    
    /* Contenido más compacto */
    .breadcrumb-content {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: auto;
        width: auto !important;
        justify-content: flex-start !important;
    }
    
    /* Texto más pequeño */
    .breadcrumb-text {
        font-size: 0.75rem !important;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    /* Icono más pequeño */
    .breadcrumb-icon {
        font-size: 0.7rem !important;
        margin-right: 0.25rem;
    }
    
    /* Separadores más pequeños */
    .breadcrumb-separator {
        display: flex !important;
        margin: 0 0.25rem !important;
        opacity: 0.6;
    }
    
    .breadcrumb-separator svg {
        width: 4px !important;
        height: 8px !important;
    }
    
    /* Elemento activo (último) más destacado pero compacto */
    .breadcrumb-content.active-content {
        background: linear-gradient(135deg, #212529 0%, #495057 100%) !important;
        color: #ffc107 !important;
        font-weight: 600 !important;
        max-width: 200px;
    }
    
    .breadcrumb-content.active-content .breadcrumb-text {
        max-width: 160px;
        font-weight: 600;
    }
    
    /* Primer elemento (Inicio) más pequeño */
    .breadcrumb-item-modern.home .breadcrumb-content {
        padding: 0.3rem 0.5rem !important;
        background: rgba(0, 123, 255, 0.1) !important;
        border-color: rgba(0, 123, 255, 0.2) !important;
    }
    
    .breadcrumb-item-modern.home .breadcrumb-text {
        display: none; /* Solo mostrar icono en móvil */
    }
    
    .breadcrumb-item-modern.home .breadcrumb-icon {
        margin-right: 0 !important;
        font-size: 0.8rem !important;
        color: #212529;
    }
    
    /* Elemento intermedio (Subastas) más compacto */
    .breadcrumb-item-modern:not(.home):not(.active) .breadcrumb-content {
        background: rgba(108, 117, 125, 0.1) !important;
        border-color: rgba(108, 117, 125, 0.2) !important;
        color: #6c757d !important;
    }
    
    .breadcrumb-item-modern:not(.home):not(.active) .breadcrumb-text {
        max-width: 80px;
    }
    
    /* Eliminar elementos después del punto en móvil */
    .breadcrumb-item-modern::after {
        display: none !important;
    }
    
    /* Mejorar la línea superior */
    .modern-breadcrumb::before {
        height: 1px !important;
    }
    
    /* Reducir animaciones en móvil para mejor performance */
    .breadcrumb-item-modern {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Hover más sutil en móvil */
    .breadcrumb-link:hover .breadcrumb-content {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 576px) {
    .modern-breadcrumb {
        padding: 0.4rem 0 !important;
    }
    
    .breadcrumb-container {
        padding: 0 0.25rem;
    }
    
    .breadcrumb-content {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .breadcrumb-text {
        font-size: 0.7rem !important;
        max-width: 100px !important;
    }
    
    .breadcrumb-content.active-content .breadcrumb-text {
        max-width: 120px !important;
    }
    
    /* En pantallas muy pequeñas, truncar el nombre de la subasta */
    .breadcrumb-item-modern.active .breadcrumb-text {
        max-width: 140px !important;
    }
}

/* ================================
   FIN NAVEGACIÓN MÓVIL
   ================================ */

/* ================================
   FIN ESTILOS CSS CUSTOM
   ================================ */