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

a {
    text-decoration: none;
    color: inherit;
}

.contenedor-tarjetas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 60px;
}

/* Tarjetas normales alineadas a la izquierda */
.tarjeta-info {
    width: 650px;
    height: 350px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    align-self: flex-start;
}

/* Tarjetas con clase "right" alineadas a la derecha */
.tarjeta-info.right {
    align-self: flex-end;
}

/* Efecto hover */
.tarjeta-info:hover {
    width: 1050px;
    box-shadow: 8px 15px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Contenedor de la imagen */
.imagen-habitacion {
    position: absolute;
    left: 0;
    top: 0;
    width: 650px;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

/* Fijar imagen a la derecha para tarjetas .right */
.tarjeta-info.right .imagen-habitacion {
    left: auto;
    right: 0;
}

.tarjeta-info:hover .imagen-habitacion {
    width: 650px;
}

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

.tarjeta-info:hover .imagen-habitacion img {
    transform: scale(1.1);
}

/* Overlay con transparencia en la parte inferior */
.overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 650px;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Título */
.titulo-tarjeta {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    text-align: left;
    margin: 0 0 20px 0;
}

/* Contenedor de detalles */
.detalles-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 50px;
}

.detalle-hab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Iconos Font Awesome */
.detalle-hab i {
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.tarjeta-info:hover .detalle-hab i {
    color: #fff;
    transform: scale(1.1);
}

.detalle-hab span {
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

/* Panel de expansión - Derecha (tarjetas normales) */
.descripcion-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: linear-gradient(360deg, #A61281 0%, #8B4590 100%);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: right 0.3s ease, left 0.3s ease;
    z-index: 3;
    border-radius: 0 15px 15px 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

/* Al hacer hover en tarjetas normales, el panel aparece desde la derecha */
.tarjeta-info:hover .descripcion-panel {
    right: 0;
}

/* Panel de expansión - Izquierda (tarjetas con clase "right") */
.tarjeta-info.right .descripcion-panel {
    right: auto;
    left: -400px;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

/* Al hacer hover en tarjetas "right", el panel aparece desde la izquierda */
.tarjeta-info.right:hover .descripcion-panel {
    left: 0;
    right: auto;
}

.descripcion-panel h3 {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    width: 100%;
}

/* Texto de descripción */
.descripcion-panel p {
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    text-align: left;
    margin-bottom: 15px;
}

/* Lista de características en el panel */
.descripcion-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
}

.descripcion-panel ul li {
    font-family: "PT Sans", sans-serif;
    font-size: 13px;
    color: #fff;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.descripcion-panel ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Botón en el panel */
.descripcion-panel .btn-reservar {
    margin-top: auto;
    padding: 10px 20px;
    background: #fff;
    color: #A61281;
    border: none;
    border-radius: 25px;
    font-family: "PT Sans", sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .contenedor-tarjetas {
        gap: 20px;
    }
    
    .tarjeta-info {
        width: 550px;
        height: 300px;
    }

    .tarjeta-info:hover {
        width: 700px;
    }

    .imagen-habitacion {
        width: 550px;
    }

    .tarjeta-info:hover .imagen-habitacion {
        width: 550px;
    }

    .overlay-info {
        width: 550px;
    }

    .descripcion-panel {
        width: 150px;
        padding: 20px 15px;
        right: -150px;
    }

    .tarjeta-info.right .descripcion-panel {
        left: -150px;
        right: auto;
    }

    .titulo-tarjeta {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .overlay-info {
        padding: 20px;
    }

    .detalles-container {
        gap: 40px;
    }

    .detalle-hab i {
        font-size: 25px;
    }

    .detalle-hab span {
        font-size: 12px;
    }

    .descripcion-panel h3 {
        font-size: 16px;
    }

    .descripcion-panel p {
        font-size: 12px;
    }

    .descripcion-panel ul li {
        font-size: 11px;
    }

    .descripcion-panel .btn-reservar {
        font-size: 11px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) { 
    .contenedor-tarjetas {
        flex-direction: column;
        align-items: center;
    }
    
    .tarjeta-info,
    .tarjeta-info.right {
        width: 100%;
        max-width: 500px;
        height: 280px;
        margin: 10px 0;
        align-self: center;
    }

    /* Desactivar expansión de ancho en hover para móviles */
    .tarjeta-info:hover,
    .tarjeta-info.right:hover {
        width: 100%;
        max-width: 500px;
        transform: translateY(-5px); /* Solo levanta ligeramente la tarjeta */
    }

    .imagen-habitacion,
    .tarjeta-info.right .imagen-habitacion {
        width: 100%;
        left: 0;
        right: auto;
    }

    .tarjeta-info:hover .imagen-habitacion,
    .tarjeta-info.right:hover .imagen-habitacion {
        width: 100%;
    }

    /* Zoom más suave en la imagen para móviles */
    .tarjeta-info:hover .imagen-habitacion img,
    .tarjeta-info.right:hover .imagen-habitacion img {
        transform: scale(1.05); /* Zoom reducido de 1.1 a 1.05 */
    }

    .overlay-info {
        width: 100%;
        left: 0;
        right: auto;
    }

    /* Ocultar panel en móviles */
    .descripcion-panel {
        display: none;
    }
    
    .Bienvenida {
        font-size: 24px;
    }

    .titulo-tarjeta {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .overlay-info {
        padding: 18px;
    }

    .detalles-container {
        gap: 35px;
    }

    .detalle-hab i {
        font-size: 16px;
    }

    .detalle-hab span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tarjeta-info,
    .tarjeta-info.right {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }

    .tarjeta-info:hover,
    .tarjeta-info.right:hover {
        width: 100%;
        max-width: 350px;
        transform: translateY(-3px);
    }

    .tarjeta-info:hover .imagen-habitacion img,
    .tarjeta-info.right:hover .imagen-habitacion img {
        transform: scale(1.03);
    }
    
    .Bienvenida {
        font-size: 20px;
    }

    .titulo-tarjeta {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .overlay-info {
        padding: 12px;
    }

    .detalles-container {
        gap: 25px;
    }

    .detalle-hab i {
        font-size: 14px;
    }

    .detalle-hab span {
        font-size: 9px;
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    .tarjeta-info,
    .tarjeta-info.right {
        width: 100%;
        height: 180px;
    }

    .tarjeta-info:hover,
    .tarjeta-info.right:hover {
        width: 100%;
        transform: translateY(-3px);
    }

    .tarjeta-info:hover .imagen-habitacion img,
    .tarjeta-info.right:hover .imagen-habitacion img {
        transform: scale(1.02);
    }

    .titulo-tarjeta {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .overlay-info {
        padding: 10px;
    }

    .detalles-container {
        gap: 20px;
    }

    .detalle-hab i {
        font-size: 10px;
    }

    .detalle-hab span {
        font-size: 8px;
    }
}