@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Ensure all elements respect viewport width */
* {
    max-width: 100% !important;
}

/* Exception for specific elements that need to be wider */
.carousel .list,
.carousel .list .item {
    max-width: none !important;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #f8fafc, #f1f5f9);
    color: #111827;
    font-family: Poppins;
    padding-top: 80px; /* Espacio para header fijo */
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Variables CSS para el carrusel */
:root {
    --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
    --item1-filter: blur(30px);
    --item1-zIndex: 11;
    --item1-opacity: 0;

    --item2-transform: translateX(0);
    --item2-filter: blur(0px);
    --item2-zIndex: 10;
    --item2-opacity: 1;

    --item3-transform: translate(50%,10%) scale(0.8);
    --item3-filter: blur(10px);
    --item3-zIndex: 9;
    --item3-opacity: 1;

    --item4-transform: translate(90%,20%) scale(0.5);
    --item4-filter: blur(30px);
    --item4-zIndex: 8;
    --item4-opacity: 1;
    
    --item5-transform: translate(120%,30%) scale(0.3);
    --item5-filter: blur(40px);
    --item5-zIndex: 7;
    --item5-opacity: 0;
}

/* Header */
header {
    width: 1140px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    height: 50px;
    align-items: center;
}

header .logo {
    font-weight: bold;
}

header nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

/* Media queries responsivas */
@media screen and (max-width: 991px) {
    /* ipad, tablets */
    .carousel .list .item {
        width: 90%;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
        overflow: auto;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail .title {
        font-size: 2em;
    }
}

@media screen and (max-width: 767px) {
    /* mobile */
    .carousel {
        height: 600px;
    }
    .carousel .list .item {
        width: 100%;
        font-size: 10px;
    }
    
    .carousel .list {
        height: 100%;
    }
    .carousel .list .item:nth-child(2) .introduce {
        width: 50%;
    }
    
    .carousel .list .item img {
        width: 40%;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail {
        backdrop-filter: blur(10px);
        font-size: small;
    }
    .carousel .list .item:nth-child(2) .introduce .des,
    .carousel.showDetail .list .item:nth-child(2) .detail .des {
        height: 100px;
        overflow: auto;
    }
    .carousel.showDetail .list .item:nth-child(2) .detail .checkout {
        display: flex;
        width: max-content;
        float: right;
    }
}

