:root {
    --background-color: #0D0D0D;  
    --primary-color-dark: #04B2D9;
    --primary-color-medium: #046DD9;
    --primary-color-light: #05AFF2;
    --secondary-color: #F2F2F2;
    --text-color: #ffffff;
}

html {
    font-size: 62.5%;                  
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.container {
    max-width: 120rem;
    margin: 0 auto;
}

.container-hero {
    background-color: var(--background-color);

}

.hero {
    display: flex;                       
    justify-content: space-between;      
    align-items: center;                 
    padding: 2rem;                       
    
}

.contenedorprincipal{
    justify-content: right;
    display: flex
}

.container-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 60%; 
}
.container-logo img {
    width: 100%; 
    height: auto; 
    max-width: 25px; 
}

.container-logo h1 a {
    text-decoration: none;
    color: #ffffff;
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.container-user {
    display: flex;                       
    gap: 1rem;                           
    cursor: pointer;                     
    color: var(--text-color);
}

.container-user .fa-user-large {
    font-size: 2.5rem;                                        
    color: var(--secondary-color);                            
    padding-right: 2.5rem;                                    
    border-right: 2px solid var(--primary-color-dark);      
    padding-left: 1rem;                                       
}

.container-user .fa-cart-shopping {
    font-size: 2.5rem;                   
    padding-left: 1rem;                  
}

.content-shopping-cart {
    display: flex;                       
    color: var(--text-color);            
    text-decoration: none;
}

.cantidadCarrito {
    display: flex;
    margin-left: 10px;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-top: -4px;
}

.contenidocarrito{
    text-decoration: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 10px;
    border-radius: 5px;
    
}

.dropdown-content a {
    color:var(--background-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--primary-color-dark);
    border-radius: 5px;
}

.dropbtn:hover .dropdown-content {
    display: block;
}

.container-saldo {
    font-size: 16px;
    color: #ffffff;
    margin-left: 20px;
    align-items: right;
}

.container-navbar {
    background-color: var(--primary-color-dark);    
}

.navbar {
    display: flex;                   
    justify-content: space-between;  
    align-items: center;             
    padding: 1rem 0;                 
}

.menu {
    display: flex;                
    gap: 2rem;                    
}

.menu li {
    list-style: none;             
}

.menu a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    font-weight: 500;
}

.menu a::after {
    content: '';                              
    width: 2.5rem;                            
    height: 2px;                              
    background-color: var(--text-color);      
    position: absolute;                       
    bottom: -3px;                             
    left: 50%;                                
    transform: translate(-50%, 50%);          
    opacity: 0;                               
    transition: all .3s ease;                 
}

.menu a:hover::after {
    opacity: 1;                               
}

.menu a:hover {
    color: var(--background-color);        
}

.containerDetalles {
    width: auto;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
}

.imagenes-producto{
    width: 590px;
}

.product-images {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.nombreP{
    font-size: 4rem;
    font-weight: 600;
    line-height: 50px;
}

.thumbnails {
    display: flex;
    margin-bottom: 10px;
}

.thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-image-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.thumbnails img:hover {
    border-color: #122173;
}

.imagen-principal {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    transform-origin: center center; 
    cursor: crosshair;
}

.main-image-container:hover .imagen-principal {
    transform: scale(2);
    cursor: zoom-in;
}

video {
    display: block;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.header-detalles{
    border-bottom: 1px solid #9c9c9cb5;
    margin-bottom: 20px;
}
.container-nombre{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--primary-color-dark);
    font-size: 3.5rem;
}

.titulo-descripcion{
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.container-descripcion{
    color: #5f5f5f;
    margin-bottom: 25px;
}

.titulo-especificaciones{
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.container-especificaciones{
    display: flex;
    justify-content: space-between;
    border-bottom: solid 1px #9c9c9cb5
}

.especificaciones-pt1{
    margin-bottom: 20px;
}

.detallesProducto {
    line-height: 3rem;
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    height: auto;
    overflow: visible;
    width: 690px;
    justify-content: center;
}

.button-container {
    display: flex;
    gap: 1rem;                
    justify-content: center;
    width: 691px;
}

.detalles-btns{
    margin-top: 20px; 
    display: flex;
    justify-content: space-between;
}

.btn-compartir {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.5s ease-in-out;
}

.btn-compartir:hover {
    background-color: var(--primary-color-dark);
}

.agregarBtn {
    border: none; 
    color: white; 
    padding: 10px 18px; 
    cursor: pointer; 
    border-radius: 5px; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: 'Poppins', sans-serif; 
    font-weight: 200;
    gap: 10px;
}

.favoritosBtn {
    padding: 8px 14px 5px 14px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.5rem;
    color: white;
    background-color: var(--primary-color-dark);
    opacity: 0.7;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.4s ease-in-out, opacity 0.4s ease-in-out, transform 0.2s ease;
    margin-left: 538px;
    z-index: 9999;
}

.favoritosBtn:hover {
    background-color: var(--primary-color-dark);
    opacity: 1;
    transform: scale(1.1);
}

.favoritosBtn:focus{
    outline: 2px solid #000000; 
    outline-offset: 2px;
    transition: opacity 0.5s ease;
}

.carrito {
    background-color: var(--primary-color-dark);
    flex: 1; 
    transition: background-color 0.4s ease-in-out, opacity 0.4s ease-in-out, transform 0.2s ease;
}

.carrito:hover {
    background-color: var(--background-color);
}

.wishlist-icon {
    font-size: 20px;
    transition: color 0.3s ease;
    background-color: var(--primary-color-dark);
}

.fa-regular.fa-heart {
    font-size: 25px;
    color: #ffffff;
}

.fa-solid.fa-heart {
    font-size: 25px;
    color: #ffffff;
}

.botones{
    display: flex;
    gap: 10px;
}

#cantidad {
    width: 80px; 
    height: 40px; 
    font-size: 16px; 
    padding: 5px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 200;
}

.mensaje-compartir {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    width: auto;
    max-width: 500px;
    transition: opacity 0.5s ease;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;   
    background-color: #28a745;
    display: none;
}

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    width: auto;
    max-width: 500px;
    transition: opacity 0.5s ease;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;     
}

.message.success {
    background-color: #28a745;
}

.message.warning {
    background-color: #ffc107;
}

.message.danger {
    background-color: #dc3545;
}

.message.show {
    opacity: 1;
}

.message.hide {
    opacity: 0;
}

.agotado{
    text-align: center;
    margin-top: 20px;
}

.agotadoBtn {
    background-color: #676767;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 200;
    text-transform: uppercase;
    cursor: not-allowed;
    opacity: 0.7;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 91%;
}

.agotadoBtn:hover {
    background-color: #5f5f5f; 
    opacity: 0.7; 
}

@media(max-width: 1024px){
    .button-container {
        width: 385px;
    }
    .especificaciones-pt1 {
        width: 50%;
    }

    .botones{
        gap: 10px;
    }

    .favoritosBtn{
        margin-left: 375px;
    }
}

@media(max-width: 768px){
    .button-container {
        width:178%;
    }

    .containerDetalles{
        flex-direction: column;
        justify-content: center;
    }
    .imagenes-producto{
        display: flex;
        justify-content: center;
        flex-direction: row-reverse;
        width: auto;
    }
    .thumbnails {
        flex-direction: column;
    }
    .product-images {
        margin-top: 0;
        margin-right: 25px;
    }

    .favoritosBtn{
        margin-left: -70px;
    }
}

@media(max-width:480px){
    .detallesProducto{
        width: auto;
    }

    .imagenes-producto{
        flex-direction: column;
    }

    .thumbnails {
        flex-direction: row;
    }
    
    .especificaciones-pt1 {
        margin-right: 100px;
    }
    .product-images {
        margin-top: 0px;
        margin-right: 0px;
    }

    .imagenes{
        width: 80px;
    }

    .thumbnails img {
        width: 95%;
        height: 95%;
    }

    .button-container strong{
        display: none;  
    }

    .agotadoBtn {
        font-size: 1.2rem;
    }

    .button-container {
        width:auto;
        font-size: 1.2rem
    }

    .carrito{
        font-size: 12px;
    }

    .favoritosBtn{
        margin-left: 325px;
    }
}

.footer-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 50px 80px;
    background-color: var(--background-color);
    font-size: 1.5rem;
}

.footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 70px;
}

.footer-section h2.footer-title {
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.footer-section p {
    color: var(--text-color);
}

.social-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 60px);
    grid-gap: 10px;
}

.social-item {
    list-style: none;
    font-size: 3rem;
}

.social-link {
    display: inline-block;
    width: 48px;
    height: 48px;
    display: grid;
    align-content: center;
    justify-content: center;
    text-decoration: none;
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    margin-bottom: 16px;
    grid-gap: 20px;
}

.contact-details {
    display: flex;
    align-items: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.contact-text {
    margin-left: 10px;
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
}

.footer-social h2.footer-title {
    border-bottom: 2px solid #05AFF2;
    width: 70%;
}

.footer-contact h2.footer-title {
    border-bottom: 2px solid #05AFF2;
    width: 50%;
}

.contact-list p .contact-link {
    font-size: 1.8rem;
    margin-top: 16px;
}