/* Estilos para la sección dinámica de hoteles */
.hotel-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-top: 20px;
}

.hotel-icon {
    font-size: 40px;
    color: #003366;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.animated-title {
    color: #003366;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.animated-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, #003366, #f7165d);
    bottom: -10px;
    left: 25%;
    transform-origin: center;
    animation: expand 2s ease-out infinite;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-top: 15px;
}

/* Filtros de hoteles */
.hotel-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
    outline: none;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #003366;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Contenedor de hoteles */
.hotels-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.hotels-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.hotels-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeIn 1.2s ease-in-out;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.hotels-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Nuevo estilo de tarjeta simplificado */
.hotel-card {
    height: 280px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s forwards;
    animation-fill-mode: both;
    opacity: 0;
    position: relative;
    overflow: hidden;
    animation-delay: calc(var(--hotel-index) * 0.1s);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hotel-card-inner {
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hotel-card-inner h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.hotel-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95), rgba(0, 51, 102, 0.85));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    text-align: center;
}

.hotel-card:hover .hotel-details {
    transform: translateY(0);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.discount-badge.special {
    background-color: #4caf50;
}

.hotel-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-website,
.btn-reservar {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.btn-website {
    background-color: #fff;
    color: #003366;
    border: 1px solid #003366;
}

.btn-website:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-reservar {
    background-color: #fff;
    color: #003366;
    border: 1px solid #003366;
}

.btn-reservar:hover {
    background-color: #003366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para las imágenes de hoteles */
.hotel-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin: 10px 0;
    position: relative;
}

.hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-image {
    transform: scale(1.05);
}

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

@keyframes expand {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hotels-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hotels-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hotel-header {
        padding: 10px;
    }
    
    .animated-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 6px 12px;
        margin-bottom: 5px;
    }
    
    .hotel-card {
        height: 220px;
    }
    
    .hotel-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-website,
    .btn-reservar {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hotels-container {
        grid-template-columns: 1fr;
    }
    
    .hotel-card {
        height: 200px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}
