.buscador-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.buscador-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #243748;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

.buscador-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.sugerencias-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.sugerencia-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-family: 'Open Sans', sans-serif;
}

.sugerencia-item:hover {
    background-color: #f8f9fa;
}

.sugerencia-item:last-child {
    border-bottom: none;
}



/* BUSCADOR DE UBICACIONES - ESTILOS NUEVOS */
.buscador-ubicaciones-container {
    margin: 15px 0;
    padding: 0 10px;
}

.buscador-ubicaciones {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#buscador-ubicaciones {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #dcdfe6;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

#buscador-ubicaciones:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sugerencias-ubicaciones {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.sugerencia-ubicacion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sugerencia-ubicacion-item:hover {
    background-color: #f8f9fa;
}

.sugerencia-ubicacion-item:last-child {
    border-bottom: none;
}

.sugerencia-content {
    display: flex;
    flex-direction: column;
}

.sugerencia-content strong {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 4px;
}

.sugerencia-tipo {
    color: #7f8c8d;
    font-size: 12px;
    text-transform: capitalize;
}

/* Indicador de distancia para grupos */
.distancia-indicador {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    gap: 4px;
}

.distancia-indicador::before {
    content: '📍';
    font-size: 10px;
}

/* Estilos para el indicador de distancia */
.distancia-indicador {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para controles de paginación */
.controles-paginacion {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

#btn-ver-mas {
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#btn-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

#btn-ver-mas:active {
    transform: translateY(0);
}

.contador-grupos {
    margin-bottom: 1rem;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para indicadores de distancia */
.distancia-indicador {
    display: block;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin: 15px auto 10px auto;
    text-align: center;
    width: fit-content;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDistancia 0.5s ease-out;
}

.distancia-indicador.presencial {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.distancia-indicador.virtual {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

@keyframes fadeInDistancia {
    from { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Modal de Bienvenida */
.modal-bienvenida {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-contenido {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.modal-header h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.grupo-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.grupo-logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #3498db;
}

.grupo-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.grupo-details p {
    margin: 0.3rem 0;
    color: #555;
    font-size: 0.9rem;
}

.grupo-details .distancia {
    color: #27ae60;
    font-weight: bold;
}

.modal-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-ir, .btn-cerrar {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-ir {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-ir:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-cerrar {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-cerrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-contenido {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .grupo-info {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-botones {
        flex-direction: column;
    }
    
    .btn-ir, .btn-cerrar {
        width: 100%;
    }
}