/* =================================================================
   CSS COMPLETO - ESTRUCTURA Y ANIMACIONES DE LOS DOS BOTONES
   =================================================================== */

.single-producto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 20px 50px 20px !important;
    font-family: inherit;
    box-sizing: border-box;
}

/* --- Miga de Pan --- */
/* Breadcrumb: el componente .st-breadcrumb (tamaño, tipografía y
   animación) es único y global, definido en assets/css/style.css,
   para que se vea igual en todas las páginas del sitio. */

/* --- Título Principal --- */
.single-producto-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 30px;
}

/* --- GRILLA PRINCIPAL --- */
.producto-detalle-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    background-color: #E2F2F0 !important;
    padding: 35px !important;
    border-radius: 16px;
    gap: 30px !important;
    box-sizing: border-box;
}

/* --- Columna Izquierda: Galería --- */
.producto-galeria {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    background-color: #FFFFFF !important;
    padding: 20px !important;
    border-radius: 12px;
    width: 50% !important;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    align-items: stretch;
}

.galeria-scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.galeria-flecha {
    background-color: #696969;
    color: #FFFFFF;
    border: none;
    width: 100%;
    max-width: 65px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.galeria-flecha:hover {
    background-color: #20B2AA;
}

.galeria-miniaturas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: none;
}

.galeria-miniaturas::-webkit-scrollbar {
    display: none;
}

.miniatura-item {
    width: 65px;
    height: 65px;
    border: 1px solid #DDD;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.miniatura-item.active, 
.miniatura-item:hover {
    border-color: #20B2AA;
    transform: scale(1.03);
}

.imagen-principal-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-principal-wrapper img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* --- Columna Derecha --- */
.producto-info-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 50% !important;
    box-sizing: border-box;
}

.producto-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-tag {
    background-color: #20B2AA;
    color: #FFFFFF;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- Tarjetas en Paralelo --- */
.cards-dos-columnas {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-descripcion-box,
.card-caracteristicas-box {
    flex: 1;
    background-color: #FFFFFF;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-descripcion-box h3,
.card-caracteristicas-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 8px;
}

.card-descripcion-box p {
    font-size: 13px;
    color: #444444;
    line-height: 1.5;
    margin: 0;
}

/* --- Bloque Ficha Técnica --- */
.ficha-tecnica-box {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ficha-tecnica-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 3px 0;
}

.ficha-tecnica-text p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* --- BOTÓN 1: "Abrir" (Transparente -> Turquesa con Hover) --- */
.btn-abrir-ficha {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    color: #20B2AA;
    border: 2px solid #20B2AA;
    padding: 6px 6px 6px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    gap: 12px;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-texto {
    color: #20B2AA;
    transition: color 0.25s ease-in-out;
}

.btn-icono {
    background-color: transparent;
    color: #20B2AA;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-in-out;
}

.btn-icono svg {
    transition: transform 0.25s ease-in-out;
}

.btn-abrir-ficha:hover {
    background-color: #20B2AA;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.25);
}

.btn-abrir-ficha:hover .btn-texto {
    color: #FFFFFF;
}

.btn-abrir-ficha:hover .btn-icono {
    background-color: #FFFFFF;
    color: #20B2AA;
}

.btn-abrir-ficha:hover .btn-icono svg {
    transform: scale(1.05);
}

/* --- BOTÓN 2: "Solicitar cotización" (Naranja completo -> Animación de recuadro al pasar el mouse) --- */
.btn-cotizacion-full {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background-color: #FF9800 !important;
    color: #FFFFFF !important;
    padding: 4px 4px 4px 24px !important;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.25);
    box-sizing: border-box;
    transition: background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    overflow: hidden;
}

.btn-cotiz-texto {
    color: #FFFFFF !important;
    transition: color 0.25s ease-in-out;
    margin: 0 auto;
}

.btn-cotiz-icono {
    background-color: transparent;
    color: #FFFFFF;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-in-out;
    flex-shrink: 0;
}

.btn-cotiz-icono svg {
    transition: transform 0.25s ease-in-out;
}

.btn-cotizacion-full:hover {
    background-color: #E68A00 !important;
    box-shadow: 0 4px 12px rgba(230, 138, 0, 0.35);
}

.btn-cotizacion-full:hover .btn-cotiz-icono {
    background-color: #FF9800 !important;
    color: #FFFFFF;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

.btn-cotizacion-full:hover .btn-cotiz-icono svg {
    transform: translateX(3px);
}

/* --- Lista de Características --- */
.lista-caracteristicas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lista-caracteristicas li {
    font-size: 13px;
    color: #333333;
    position: relative;
    padding-left: 20px;
}

.lista-caracteristicas li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #20B2AA;
    font-weight: bold;
}

/* --- Responsivo --- */
@media (max-width: 868px) {
    .producto-detalle-grid {
        flex-direction: column !important;
    }
    .producto-galeria,
    .producto-info-wrapper {
        width: 100% !important;
    }
    .cards-dos-columnas {
        flex-direction: column !important;
    }
    .galeria-scroll-container {
        flex-direction: row;
        width: 100%;
        align-items: center;
    }
    .galeria-flecha {
        width: 35px;
        height: 65px;
        max-width: none;
    }
    .galeria-miniaturas {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
}