/* Estilos específicos para la página de hemming */

/* Botón de cambio de idioma */
.language-switcher {
    position: relative;
}

.btn-language {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.btn-language:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-language:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-language i {
    font-size: 1rem;
}

.current-lang {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Dropdown de idiomas */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 150px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(0, 157, 128, 0.1);
    color: #009D80;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: rgba(0, 157, 128, 0.1);
    color: #009D80;
}

.flag-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Estilos para tarjetas de productos dinámicas */
.card-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-product .card-img-top {
    transition: transform 0.3s ease;
}

.card-product:hover .card-img-top {
    transform: scale(1.05);
}

.card-product .card-title {
    color: #009D80;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-product .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Estilos generales para botones */
.card-product .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Efecto hover solo para el botón principal */
.card-product .btn-outline-primary:hover {
    transform: translateY(-1px);
    z-index: 11;
}

/* Sin efecto hover para botones de información y datasheet */
.card-product .btn-outline-secondary:hover,
.card-product .btn-outline-info:hover {
    transform: none !important;
    z-index: 10;
}

/* Estilos para el contenedor de botones */
.d-flex.gap-2 {
    gap: 0.5rem !important;
    position: relative;
    z-index: 5;
}

.card-product .card-body {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.text-muted {
    font-size: 0.8rem;
    font-weight: 500;
}

#productos-container {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-product * {
    pointer-events: auto;
}

.card-product .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-language {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .current-lang {
        font-size: 0.7rem;
    }
    
    .card-product .card-body {
        margin: 1rem !important;
        padding: 1rem !important;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.25rem !important;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}
