/* Estilos para Sección Rooms en Home */

.home-rooms-section {
    background: rgba(79, 92, 89, 0.1);
    padding: 4rem 0;
    width: 100%;
}

.home-rooms-header {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 20px;
    text-align: center;
}

.home-rooms-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #63514f;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-rooms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Room Card */
.home-room-card {
    position: relative;
    width: calc(33.333% - 1.4rem);
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.home-room-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.home-room-card:hover .home-room-card-bg {
    transform: scale(1.05);
}

/* Overlay oscuro */
.home-room-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

.home-room-card:hover .home-room-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Contenido de la card */
.home-room-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Título y subtítulo con fondo transparente */
.home-room-card-info {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-room-card-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.home-room-card-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ee7326;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

/* Botón Read More */
.home-room-card-btn {
    display: none;
    padding: 10px 24px;
    background: transparent;
    color: #ee7326;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ee7326;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(5px);
}

.home-room-card:hover .home-room-card-btn {
    display: inline-block;
    animation: fadeInUpRooms 0.5s ease-out 0.2s forwards;
}

@keyframes fadeInUpRooms {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mostrar botón siempre en dispositivos táctiles/móviles */
@media (hover: none) and (pointer: coarse) {
    .home-room-card-btn {
        display: inline-block;
        opacity: 1;
        transform: translateY(0);
        animation: none;
    }
}

.home-room-card-btn:hover {
    background: #ee7326;
    color: #fff;
}

/* Loading */
.home-rooms-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    width: 100%;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .home-room-card {
        width: calc(50% - 1rem);
    }
    
    .home-room-card-title {
        font-size: 1.5rem;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .home-rooms-section {
        padding: 3rem 0;
    }
    
    .home-rooms-title {
        font-size: 2rem;
    }
    
    .home-rooms-container {
        gap: 0;
        row-gap: 1.5rem;
    }
    
    .home-room-card {
        width: 100%;
        aspect-ratio: 3 / 4;
    }
    
    .home-room-card-title {
        font-size: 1.4rem;
    }
    
    .home-room-card-subtitle {
        font-size: 0.85rem;
    }
    
    .home-room-card-info {
        padding: 16px;
    }
}
