/* Estilos para el Hero de Alternativas */
.alternativas-hero {
    padding: 6rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
}

.alternativas-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.alternativas-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin: 0;
}

.alternativas-hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #718096;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primario);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
    margin-bottom: 0.5rem;
    cursor: default; /* Es más una etiqueta que un botón clickeable en este contexto */
}

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

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

/* Estilos para las tarjetas de habitaciones */
.habitaciones-section {
    padding: 4rem 1rem;
    background-color: #f8fafc;
}

/* Header de la sección centrado */
.habitaciones-section .amenidades-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.habitaciones-section .amenidades-title,
.habitaciones-section .amenidades-subtitle {
    text-align: center;
    width: 100%;
}

.habitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .habitaciones-grid {
        gap: 1.5rem;
        padding-bottom: 5rem; /* Espacio para el CTA sticky */
    }
    
    /* Asegurar que las cards no sean más anchas que la pantalla */
    .alternativa-card,
    .habitacion-card-skeleton {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        width: 100%; /* Asegurar que ocupen el ancho disponible hasta el max-width */
    }
}

.alternativa-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative; /* Para posicionar el badge */
}

.alternativa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Status Badge en Tarjeta */
.status-badge-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge-card.available {
    background-color: #ffffff;
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-badge-card.occupied {
    background-color: #ffffff;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-badge-card.maintenance {
    background-color: #ffffff;
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.alternativa-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.alternativa-card:hover .alternativa-image img.main-image {
    transform: scale(1.05);
}

.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alternativa-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.alternativa-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.alternativa-location {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alternativa-location i {
    color: #ff6b00;
}

.alternativa-desc {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Style Selector - User Provided + Enhanced */
.style-selector {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.style-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4a5568;
}

.style-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.style-btn.active {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.2);
}

.alternativa-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.alternativa-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
}

.price-period {
    font-size: 0.85rem;
    color: #718096;
}

.btn-primary {
    background: #ff6b00;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    background: #e65200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

/* ===========================
   Estilos de Filtros
   =========================== */
.filters-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.select-wrapper {
    position: relative;
    min-width: 180px;
}

.select-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b00;
    pointer-events: none;
    z-index: 1;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    padding: 0.8rem 2rem 0.8rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all 0.3s ease;
}

.select-wrapper select:hover {
    border-color: #cbd5e0;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.results-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f7fafc;
    font-size: 0.9rem;
    color: #718096;
}

.counter-badge {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.clear-btn {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #fff5f5;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .select-wrapper {
        width: 100%;
    }
}