/* 
 * HABITACIONES.CSS - Sección de Habitaciones (Index)
 * Hotel Reyna - Tarjetas compactas y profesionales
 */

/* ===== SECCIÓN HABITACIONES ===== */
#habitaciones {
    position: relative;
    background: #f8f9fa;
    padding: 80px 0 100px 0;
}

/* ===== TÍTULOS ===== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 50px;
}

/* ===== GRID DE HABITACIONES ===== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* ===== TARJETA DE HABITACIÓN ===== */
.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

/* ===== IMAGEN DE HABITACIÓN ===== */
.room-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img {
    transform: scale(1.1);
}

/* ===== OVERLAY DE IMAGEN ===== */
.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

/* ===== BADGES ===== */
.room-badge-popular,
.room-badge-luxury {
    align-self: flex-start;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-badge-popular {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.room-badge-luxury {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

/* ===== BADGE DE PRECIO ===== */
.room-price-badge {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.price-from {
    display: block;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    line-height: 1.2;
    margin: 2px 0;
}

.price-per {
    display: block;
    font-size: 0.7rem;
    color: #999;
}

/* ===== CONTENIDO DE TARJETA ===== */
.room-content {
    padding: 20px;
}

/* ===== HEADER DE HABITACIÓN ===== */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.room-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.room-rating {
    display: flex;
    gap: 3px;
}

.room-rating i {
    font-size: 0.9rem;
    color: #FFD700;
}

/* ===== DESCRIPCIÓN ===== */
.room-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

/* ===== CARACTERÍSTICAS ===== */
.room-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.feature-item i {
    font-size: 1rem;
    color: #FFD700;
    min-width: 18px;
}

/* ===== BOTÓN RESERVAR ===== */
.room-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.room-btn:hover::before {
    width: 300px;
    height: 300px;
}

.room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.room-btn i {
    transition: transform 0.3s ease;
}

.room-btn:hover i {
    transform: translateX(5px);
}

/* ===== ANIMACIÓN REVEAL ===== */
.room-card.reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: revealRoom 0.8s ease-out forwards;
}

/* Botón Mostrar Más Habitaciones */
.show-more-container {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    clear: both;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    position: relative;
    overflow: hidden;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.show-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #ffb300, #ffa000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

.show-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.show-more-btn i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.show-more-btn:hover i {
    transform: translateY(3px);
}

@keyframes revealRoom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado */
.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    #habitaciones {
        padding: 60px 0 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 40px;
    }

    .show-more-container {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    #habitaciones {
        padding: 50px 0 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }

    .room-image-wrapper {
        height: 200px;
    }

    .show-more-container {
        margin-top: 40px;
        padding: 20px 15px;
    }

    .show-more-btn {
        width: 100%;
        max-width: 400px;
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    #habitaciones {
        padding: 40px 0 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .room-content {
        padding: 15px;
    }

    .room-header h3 {
        font-size: 1.1rem;
    }

    .room-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .price-amount {
        font-size: 1.3rem;
    }

    .show-more-container {
        margin-top: 35px;
        padding: 15px 10px;
    }

    .show-more-btn {
        width: 100%;
        max-width: none;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 400px) {
    .show-more-btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.2rem;
        gap: 0.6rem;
    }

    .show-more-btn i {
        font-size: 0.9rem;
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .room-card,
    .room-img,
    .room-btn,
    .show-more-btn {
        transition: none;
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #habitaciones {
        background: white;
        padding: 30px 0;
    }

    .room-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .room-btn,
    .show-more-btn {
        display: none;
    }
}