/* Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* Playfair */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100&display=swap');

*{
    margin: 0;
    padding: 0;
}

.container-prenda{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content:space-around;
}

.preview{
    width: 50%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-content: center;
}

.preview .foto{
    position: static;
    width: 40%;
}

.preview .foto img{
    width: 100%;
}

.preview .foto img:hover{
    opacity: 0.7;
    cursor: pointer;
}


.informacion{
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin:10px;
}

.container-sticky{
    text-align: center;
    top: 0;
    position: sticky;
}

.informacion .titulo{
    text-align: center;
    font-family: 'Nata Sans';
    margin-bottom: 10px;
    text-align: left;
}

.informacion h3{
    font-family: 'Nata Sans';
}

.info{
    font-family: 'Montserrat';
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content:space-around;
    margin-bottom: 10px;
}

.descripcion{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;

    width: 100%;
}

.descripcion .descripcion-text{
    text-align: justify;
    margin: 10px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.color-title, .talla-title{
    text-align: left;
}

.color-title h3{
    font-weight: bold;
}

.colores-container, .talla-container{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.colores, .talla{
    display: flex;
    flex-direction: row;
    justify-content: left;
    flex-wrap: wrap;
}

.colores .color{
    width: 45px;
    height: 45px;
    margin: 10px;
    border: solid 1px #a6a6a6;
    border-radius: 90%;
    cursor: pointer;
}

.color-estampado{
    width: 45px;
    height: 45px;
    margin: 10px;
    border: solid 1px #a6a6a6;
    border-radius: 90%;
    cursor:pointer;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.talla button{
    margin-right: 10px;
    width: 60px;
    height: 40px;
    border: solid 1px #616161;
    background-color: #212121;
    color: #FFF;
    cursor: pointer;
}

.talla button:hover{
    background-color: #FFF;
    color: #212121;
}



/* Lupa para imagen preview */
.img-magnifier-container{
    position: relative;
}

.img-magnifier-glass{
    position: absolute;
    border: 3px solid #FFF;
    border-radius: 5px;
    cursor: none;
    width: 150px;
    height: 100px;
}

.btn-compra{
    width: 100%;
    margin-top: 50px;
}


.btn-compra a{
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #ffffff;
    cursor: pointer;
    background:#212121;
    border: none;
    padding: 15px;
    width: 100%;
    letter-spacing: 2px;
    text-decoration: none;
}

.btn-compra a:hover{
    border: solid 1px #212121;
    background-color: #FFF;
    color: #212121;
}

/* Carrusel de prendas */
.carrusel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
    background: white;
    text-align: center;
}

.carrusel-container h2 {
    font-family: 'Montserrat', serif;
    font-size: 2rem;
    margin: 5%;
    color: #333;
}
        
.carrusel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carrusel a{
    text-decoration: none;
}
        
.carrusel .producto {
    min-width: 20%;
    width: 80%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
        
.carrusel .producto-imagen {
    width: 220px;
    height: 280px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}
        
.carrusel .producto-titulo {
    font-family: 'Montserrat', serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}
        
.carrusel .producto-descripcion {
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
    max-width: 20%;
}
        
.carrusel .producto-precio {
    font-family: 'Montserrat', serif;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
}
        
.carrusel .btn-comprar {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Montserrat', serif;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.carrusel .btn-comprar:hover {
    background-color: #1c6bc2;
}
        
.btn-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
        
.btn-control:hover {
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color:rgb(255, 255, 0);
}
        
.btn-izquierda {
    left: 15px;
}
        
.btn-derecha {
    right: 15px;
}
        
.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
        
.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:all linear 0.3s;
}

.indicador.activo {
    background: white;
}


    /* BOTÓN FLOTANTE DE COMPARTIR */
    .floating-share-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e49191ff, #f29292);
        color: white;
        border: none;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .floating-share-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .floating-share-btn:active {
        transform: scale(0.95);
    }

    /* MODAL DE COMPARTIR */
    .modal-share {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .modal-share-content {
        background-color: white;
        margin: 10% auto;
        padding: 30px;
        border: 1px solid #888;
        border-radius: 10px;
        width: 90%;
        max-width: 400px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-share-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 15px;
    }

    .modal-share-header h2 {
        margin: 0;
        font-size: 20px;
        color: #333;
        font-family: 'Montserrat', sans-serif;
    }

    .close-share {
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s ease;
        background: none;
        border: none;
        padding: 0;
    }

    .close-share:hover {
        color: #e75b5b;
    }

    .share-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .share-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 15px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        font-family: 'Montserrat', sans-serif;
        color: white;
        text-decoration: none;
    }

    .share-btn:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .share-btn i {
        font-size: 20px;
    }

    .share-whatsapp {
        background-color: #25D366;
    }

    .share-whatsapp:hover {
        background-color: #20ba5a;
    }

    .share-facebook {
        background-color: #1877F2;
    }

    .share-facebook:hover {
        background-color: #0a66c2;
    }

    .share-twitter {
        background-color: #000000;
    }

    .share-twitter:hover {
        background-color: #333333;
    }

    .share-linkedin {
        background-color: #0A66C2;
    }

    .share-linkedin:hover {
        background-color: #095195;
    }

    .share-email {
        background-color: #EA4335;
    }

    .share-email:hover {
        background-color: #c5221f;
    }

    @media (max-width: 768px) {
        .floating-share-btn {
            width: 50px;
            height: 50px;
            bottom: 20px;
            right: 20px;
            font-size: 20px;
        }

        .modal-share-content {
            width: 85%;
            margin: 25% auto;
        }
    }
    
/* Responsive Design */

@media (max-width:480px){
    .container-prenda{
        flex-direction: column;
        align-items: center;
    }

    .container{
        width:100%;
        height: 100vh;
    
        display: flex;
        flex-direction:column;
        justify-content: space-around;
        
    }
    .preview, .informacion{
        width: 100%;
        margin: 0;
        padding: 0;
        justify-content: center;
    }

    .container .informacion, .info{
        width: 100%;
    }

    .informacion .titulo{
        font-size: 16px;
        text-align: center;
        margin-bottom: 5px;
        text-justify: inherit;
    }

    .informacion .descripcion{
        font-size: 18px;
        width:100%; 
    }

    .informacion  .btn-compra button{
        width: 90%;
    }

    .colores{
        flex-wrap: wrap;
        width:100%;
    }

    .modal-preview{
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modal-preview img{
        width: 100%;
    }

    .modal-preview i{
        color: #e75b5b;
    }
}
