.detalle-producto {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0px 15px 15px 15px;
    box-sizing: border-box;
}

.detalle-iframe{
    width: 100%;height: 450px;
}

.detalle-producto-contenedor {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

.detalle-producto-titulo{
    width: 100%;
    background-color: #6b4b5e;
    border-radius: 10px 10px 0px 0px;
    padding: 12px 10px;
    box-sizing: border-box;
}

.detalle-producto-titulo h1{
    width: 100%;
    text-align: center;
    color: #fff;
    margin: 0px;
    font-size: calc(1.2em + 0.6vw);
}

.detalle-producto-titulo h2{
    width: 100%;
    text-align: center;
    font-size: calc(0.8em + 0.3vw);
    color: #ffe47b;
    margin: 0px;
}

.detalle-producto-medios {
    flex: 1.3;
    min-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 10px;
}

.detalle-producto-galeria {
    width: 100%;
    margin-bottom: 15px;
}

.detalle-producto-video {
    width: 100%;
    margin-top: 15px;
    padding: 0px 10px 10px 10px;
    box-sizing: border-box;
}

.detalle-producto-contenido {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 10px;
    position: sticky;
    top: 200px;
    height: min-content;
}

.detalle-producto-contenido-body {
    padding: 15px 20px;
    box-sizing: border-box;
}

.detalle-producto-precio {
    font-size: 28px;
    font-weight: bold;
    color: #4a6cf7;
    margin-bottom: 20px;
    display: inline;
    vertical-align: middle;
}

.detalle-producto-descripcion {
    margin-bottom: 25px;
    line-height: 1.3;
}

.detalle-producto-info {
    margin-left: 25px;
}

.detalle-producto-seccion {
    margin-bottom: 20px;
}

.detalle-producto-info-label {
    font-weight: bold;
    width: auto;
    margin-right: 7px;
    display: inline;
}

.detalle-producto-info-valor {
    color: #555;
    display: inline;
}

.detalle-producto-stock {
    color: #4CAF50;
    font-weight: bold;
}

.detalle-producto-cantidad {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #e7e7e7;
}

.detalle-producto-cantidad-label {
    margin-right: 15px;
    font-weight: 500;
    display: inline;
    vertical-align: middle;
}

.detalle-producto-cantidad-controles {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.detalle-producto-boton-cantidad {
    width: 35px;
    height: 35px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-producto-cantidad-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.detalle-producto-area-botones {
    display: flex;
    flex-direction: row;
    gap: 5px;
    box-sizing: border-box;
}

.detalle-producto-boton {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    font-size: calc(0.9em + 0.2vw);
    text-decoration: none;
}

.detalle-producto-boton i{
    margin-right: 5px;
}

.detalle-producto-boton-principal {
    background: #27ae60;
    color: white;
}

.detalle-producto-boton-secundario {
    background: #ffe47b;
    color: #000;
}

.detalle-producto-caracteristicas {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/*******  FAQS   *******/

#detalle-faqs-container{
    display: inline-block;
    width: 100%;
    background: #90647e;
    padding: 10px 20px;
    box-sizing: border-box;
    margin-top: 30px;
    border-radius: 0px 0px 10px 10px;
    color: #fff;
}

#detalle-faqs-container h3{
    width: 100%;
    text-align: center;
    font-size: calc(1.1em + 0.5vw);
    color: #ffeda8;
    margin-top: 0px;
    margin-bottom: 10px;
}

.detalle-faqs {
    margin-bottom: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.detalle-faqs-input {
    display: none;
}

.detalle-faqs-titulo {
    background-color: #fff6ce;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.detalle-faqs-titulo::after {
    content: '+';
    font-size: 24px;
    color: #000;
    transition: transform 0.3s ease;
}

.detalle-faqs-input:checked + .detalle-faqs-titulo::after {
    transform: rotate(45deg);
}

.detalle-faqs-descripcion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    background: #ffffff;
}

.detalle-faqs-descripcion p{
    margin: 0px;
}

.detalle-faqs-input:checked ~ .detalle-faqs-descripcion {
    padding: 20px;
    max-height: 500px;
}

/* Estilos para mejorar la accesibilidad */
.detalle-faqs-titulo:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    #detalle-faqs-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .detalle-faqs-titulo {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .detalle-faqs-descripcion {
        padding: 0 15px;
    }
    
    .detalle-faqs-input:checked ~ .detalle-faqs-descripcion {
        padding: 15px;
    }
}

/* Efecto de sombra al abrir */
.detalle-faqs-input:checked ~ .detalle-faqs-titulo {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/*******  FIN FAQS   *******/

@media (max-width: 768px) {
    .detalle-producto-contenedor {
       gap: 20px;
       padding: 0px;
       flex-direction: column-reverse;
    }
    .detalle-producto {
        flex-direction: column;
    }

    .detalle-producto-area-botones {
        width: 100%;
        padding: 5px 10px;
        position: fixed;
        bottom: 0px;
        z-index: 1999;
        background: #fff;
        left: 0px;
        -webkit-box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px -1px 8px -1px rgba(0,0,0,0.75);
        box-shadow: 0px -1px 8px -1px rgba(0, 0, 0, 0.75);
        text-align: center;
    }

    .detalle-producto-contenido {
        position: unset;
    }

    .detalle-producto-contenido-body {
        padding: 0px 10px;
        box-sizing: border-box;
        font-size: 16px;
    }
    
    .detalle-iframe{
        height: 250px;
    }

}