/* ========================================
   MODERN PRODUCTS SECTION STYLES
   ======================================== */

.modern-products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.modern-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(27,66,119,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Header de la sección */
.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1B4277;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Sección Integrada */
.integrated-products-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Separador Visual */
.section-divider {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1B4277, transparent);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    background: white;
    color: #1B4277;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider-text i {
    font-size: 1.5rem;
    color: #FF6B35;
}

.educational-content {
    max-width: 1000px;
    margin: 0 auto;
}

.educational-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1B4277;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.educational-text {
    margin-bottom: 3rem;
}

.educational-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    text-align: justify;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B4277;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subsection-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Grid de cabezas de tornillos */
.screw-heads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screw-head-item {
    text-align: center;
    transition: all 0.3s ease;
}

.screw-head-item:hover {
    transform: translateY(-5px);
}

.screw-head-diagram {
    background: #1B4277;
    border: 3px solid #FF6B35;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.screw-head-diagram:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(27, 66, 119, 0.3);
}

.screw-head-diagram img {
    transition: all 0.3s ease;
}

.screw-head-item:hover .screw-head-diagram img {
    transform: rotate(10deg) scale(1.1);
}

.screw-head-label {
    font-weight: 600;
    color: #1B4277;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vistas de tornillos - Vista superior */
.screw-top-view {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1B4277;
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Allen cilíndrico - Vista superior */
.allen-cylindrical::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Allen cilíndrico - Vista lateral */
.allen-cylindrical-side {
    width: 40px;
    height: 20px;
    background: #1B4277;
    border-radius: 20px 20px 0 0;
    position: relative;
    border: 2px solid #0f2a4a;
}

.allen-cylindrical-side::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #0f2a4a;
}

/* Allen plana - Vista superior */
.allen-flat::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Allen plana - Vista lateral */
.allen-flat-side {
    width: 40px;
    height: 15px;
    background: #1B4277;
    clip-path: polygon(0% 100%, 100% 100%, 85% 0%, 15% 0%);
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Gota ranurada - Vista superior */
.slotted-pan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Gota ranurada - Vista lateral */
.slotted-pan-side {
    width: 40px;
    height: 20px;
    background: #1B4277;
    border-radius: 20px 20px 5px 5px;
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Hexagonal - Vista superior */
.hexagonal {
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Hexagonal - Vista lateral */
.hexagonal-side {
    width: 40px;
    height: 20px;
    background: #1B4277;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Phillips plana - Vista superior */
.phillips-flat::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(45% 0%, 55% 0%, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0% 55%, 0% 45%, 45% 45%);
}

/* Phillips plana - Vista lateral */
.phillips-flat-side {
    width: 40px;
    height: 15px;
    background: #1B4277;
    clip-path: polygon(0% 100%, 100% 100%, 85% 0%, 15% 0%);
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Plana ranurada - Vista superior */
.slotted-flat::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Plana ranurada - Vista lateral */
.slotted-flat-side {
    width: 40px;
    height: 15px;
    background: #1B4277;
    clip-path: polygon(0% 100%, 100% 100%, 85% 0%, 15% 0%);
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Queso - Vista superior */
.cheese::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Queso - Vista lateral */
.cheese-side {
    width: 40px;
    height: 20px;
    background: #1B4277;
    border-radius: 0;
    position: relative;
    border: 2px solid #0f2a4a;
}

/* Contenedor de productos */
.product-categories {
    position: relative;
    z-index: 2;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 66, 119, 0.1), transparent);
    transition: all 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: #1B4277;
    border: 3px solid #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4277;
    margin-bottom: 1rem;
}

.product-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature {
    background: #e9ecef;
    color: #1B4277;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover .feature {
    background: #1B4277;
    color: white;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1B4277;
    font-weight: 500;
    font-size: 0.9rem;
}

.spec-item i {
    color: #FF6B35;
    font-size: 1rem;
}


/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .educational-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .educational-title {
        font-size: 2rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .screw-heads-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .screw-head-diagram {
        height: 100px;
        padding: 1rem;
    }
    
    .screw-top-view {
        width: 30px;
        height: 30px;
    }
    
    .screw-side-view {
        width: 30px;
        height: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
