
/* Estilos generales para la sección de restaurantes */
#restaurantes {
    padding: 60px 20px 40px;
    background-color: #fdf6e3;
    margin-top: 15px;
}

.restaurantes-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.header-content {
    text-align: center;
    margin-bottom: 30px;
}

#restaurantes h2 {
    font-size: 2.8em;
    color: #e67e22;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

#restaurantes h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e67e22;
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Estilos para los filtros */
.filtros-container {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #eee;
    border-radius: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filtros-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffac4c, #ff8c00);
}

.filtro-select, .filtro-buscar {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 9 12 15 18 9'%3E%3C/polygon%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

.filtro-select:focus, .filtro-buscar:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.filtro-select:hover, .filtro-buscar:hover {
    border-color: #ffac4c;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

.filtro-select option {
    padding: 10px;
    background: white;
    color: #333;
}

.filtro-select option:hover {
    background: #fff8f0;
}

/* Estilo para el contenedor de los filtros en móviles */
@media (max-width: 768px) {
    .filtros-container {
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    .filtro-select, .filtro-buscar {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Efecto de etiqueta flotante */
.filtro-group {
    position: relative;
    margin-bottom: 5px;
}

.filtro-group label {
    position: absolute;
    left: 15px;
    top: -8px;
    background: white;
    padding: 0 5px;
    font-size: 0.8em;
    color: #ff8c00;
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.filtro-select:focus + label,
.filtro-buscar:focus + label {
    opacity: 1;
    transform: translateY(0);
}

/* Grid de restaurantes */
.restaurantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Tarjeta de restaurante */
.restaurante-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
    min-height: 500px;
    width: 100%;
    box-sizing: border-box;
}

.restaurante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.restaurante-imagen {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.restaurante-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurante-card:hover .restaurante-imagen img {
    transform: scale(1.05);
}

.restaurante-pais {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurante-pais i {
    color: #ffac4c;
}

.restaurante-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-sizing: border-box;
    width: 100%;
}

.restaurante-info h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.restaurante-descripcion {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6em;
    
    /* Versión estándar moderna */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    
    /* Versión para Firefox */
    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 4;
    
    /* Versión estándar */
    display: -ms-flexbox;
    -ms-line-clamp: 4;
    -ms-box-orient: vertical;
    
    /* Fallback para navegadores modernos */
    display: flex;
    flex-direction: column;
    
    /* Propiedad estándar (aunque actualmente solo funciona con prefijo) */
    line-clamp: 4;
}

.restaurante-detalles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.restaurante-precio {
    font-weight: 600;
    color: #e67e22;
    font-size: 1.1em;
}

.restaurante-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-weight: 600;
}

.restaurante-rating i {
    color: #ffc107;
}

.etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.etiqueta {
    background: #f0f7ff;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Estilos para restaurante sin imagen */
.restaurante-sin-imagen {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 2em;
    height: 220px;
}

/* Efecto de carga */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .restaurantes-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    .filtro-select {
        width: 100%;
    }
    
    .restaurante-imagen {
        height: 180px;
    }
}

/* Contenedor de la imagen */
.restaurante-imagen {
    position: relative;
    width: 100%;
    height: 220px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    background-color: #f5f5f5; /* Color de fondo mientras carga la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0; /* Bordes redondeados solo en la parte superior */
}

.restaurante-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Información del restaurante */
.restaurante-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.restaurante-meta {
    margin: 5px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8em;
    color: #666;
}

.restaurante-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    gap: 5px;
}

.restaurante-meta i {
    color: #ffac4c;
}

/* Descripción */
.restaurante-descripcion {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Redes sociales */
.restaurante-accion {
    display: flex;
    width: 100%;
}

.restaurante-redes a {
    color: #666;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.restaurante-redes a:hover {
    color: #ffac4c;
}

/* Bandera/país */
.restaurante-pais {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
}

/* Estilo único para el botón de mapa */
.btn-mapa {
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-mapa i {
    font-size: 0.9em;
}

.btn-mapa:hover {
    background: #fff8f0;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .restaurantes-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .restaurantes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .restaurante-card {
        min-height: auto;
        height: auto;
    }
    
    .restaurante-acciones {
        flex-direction: column;
    }
    
    .btn-reservar,
    .btn-mapa {
        width: 100%;
    }
}