/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}


.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 2rem;
}
.card-title{
    color: black;
}

.hero-illustration {
    font-size: 6rem;
    gap: 1rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* About Section */
.about-section .badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.function-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.function-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15),
                0 0 0 2px rgba(74, 172, 196, 0.3),
                0 0 20px rgba(74, 172, 196, 0.2) !important;
    border-color: rgba(74, 172, 196, 0.4) !important;
}

.function-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(74, 172, 196, 0.3);
    transition: all 0.3s ease;
}

.function-icon-sm {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(74, 172, 196, 0.3);
    transition: all 0.3s ease;
}

.function-card:hover .function-icon {
    box-shadow: 0 6px 20px rgba(74, 172, 196, 0.5);
}

.function-card:hover .function-icon-sm {
    box-shadow: 0 6px 20px rgba(74, 172, 196, 0.5);
}

.mission-box {
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    box-shadow: 0 8px 30px rgba(74, 172, 196, 0.3);
    position: relative;
}

.mission-box::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="2" cy="2" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
}

.mission-icon-sm {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
}

.hover-lift {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.hover-lift:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1),
                0 0 0 2px rgba(74, 172, 196, 0.3),
                0 0 20px rgba(74, 172, 196, 0.2);
    border-color: rgba(74, 172, 196, 0.4);
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefits-section .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.benefits-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.benefit-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1),
                0 0 0 2px rgba(74, 172, 196, 0.3),
                0 0 20px rgba(74, 172, 196, 0.2);
    border-color: rgba(74, 172, 196, 0.4);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefit-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Button Styles - Solo los botones usan transform/scale */
.btn-primary {
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #4aacc4 0%, #2e4a8a 100%);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Aplicar transform solo a botones, no a cards */
.btn {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-illustration {
        font-size: 3rem;
        gap: 0.5rem;
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .function-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .function-icon-sm {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .mission-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .mission-icon-sm {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-illustration {
        font-size: 2rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefit-title {
        font-size: 1.25rem;
    }

    .function-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .function-icon-sm {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .mission-box {
        padding: 2rem !important;
    }

    .mission-icon, .mission-icon-sm {
        display: none;
    }

    .mission-box .d-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-illustration {
        animation: none;
    }
    
    .btn-primary:hover,
    .btn:hover {
        transform: none;
    }
}

/* Focus States */
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

.benefit-card:focus-within {
    outline: 2px solid #4aacc4;
    outline-offset: 2px;
}
