/**
 * Trust Section Styles - Generar Confianza (+30% trust)
 * Casa Alta Tenerife - Mejora UX 5.3
 */

.trust-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 2px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #10b981 25%, 
        #f59e0b 50%, 
        #ef4444 75%, 
        #8b5cf6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
}

.trust-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.trust-item p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
}

.badge-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: #047857;
}

/* Color variants por trust item */
.trust-item:nth-child(1) .trust-icon { color: #1e40af; }
.trust-item:nth-child(2) .trust-icon { color: #10b981; }
.trust-item:nth-child(3) .trust-icon { color: #f59e0b; }
.trust-item:nth-child(4) .trust-icon { color: #ef4444; }

.trust-item:nth-child(1):hover {
    border-color: rgba(30, 64, 175, 0.3);
}

.trust-item:nth-child(2):hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.trust-item:nth-child(3):hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.trust-item:nth-child(4):hover {
    border-color: rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .trust-item {
        padding: 24px 16px;
    }
    
    .trust-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .trust-item h3 {
        font-size: 16px;
    }
    
    .trust-item p {
        font-size: 13px;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .trust-item {
        padding: 20px 12px;
    }
    
    .trust-icon {
        font-size: 36px;
    }
    
    .trust-item h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .trust-item p {
        font-size: 12px;
    }
}

/* Performance optimizations */
.trust-item {
    will-change: transform;
}

/* Accessibility */
.trust-item:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .trust-item,
    .trust-icon,
    .trust-badge {
        transition: none;
    }
    
    .trust-item:hover {
        transform: none;
    }
    
    .trust-item:hover .trust-icon {
        transform: none;
    }
    
    .trust-badge:hover {
        transform: none;
    }
    
    .trust-item::before {
        display: none;
    }
}

/* Animation delays para entrada escalonada */
.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }
.trust-item:nth-child(4) { animation-delay: 0.4s; }