/**
 * FISav - Home Page Styles
 * Diseño tipo Consultive + FISav.sport
 */

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease infinite;
}

@keyframes kenBurns {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(34, 34, 34, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    margin-top: 100px;
}



.hero-title {
    font-size: 64px;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    max-width: 900px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 30px;
    color: #dc143c;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle1 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    font-size: 20px;
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-xs) 0;
    background-color: var(--bg-white);
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
   
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin: 0;
}

/* Welcome Section with Feature Cards */
.welcome-section {
    padding: var(--spacing-xxl) 0;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.feature-image {
    position: relative;
    padding-top: 75%;
    /* 4:3 ratio */
    overflow: hidden;
}

.feature-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex: 1;
    line-height: 1.7;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.feature-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Disciplines Section */
.disciplines-section {
    padding: var(--spacing-xxl) 0;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.discipline-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.discipline-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.discipline-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.discipline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.discipline-card:hover .discipline-image img {
    transform: scale(1.1);
}

.discipline-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
    background: rgba(69, 196, 233, 0.9);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.discipline-card:hover .discipline-number {
    background: var(--primary);
    transform: scale(1.1);
}

.discipline-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.discipline-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.discipline-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    flex: 1;
}

.discipline-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-base);
    text-decoration: none;
}

.discipline-link:hover {
    gap: 8px;
    color: var(--primary-dark);
}


/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(69, 196, 233, 0.9) 0%, rgba(43, 164, 201, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
}

.cta-content h2 {
    font-size: 42px;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-slider {
        height: 600px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 42px;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 450px;
    }

    .hero-title {
        font-size: 28px;
    }

    .slider-arrow {
        display: none;
    }

    .slider-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }
}
/* 
 * Home Features - Additional Styles for Dynamic Cards
 * Add this to your main CSS file or include inline in home.php
 */

/* Feature card icon overlay */
.feature-image {
    position: relative;
    overflow: hidden;
}

.feature-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color, #667eea);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color, #667eea);
}

.feature-card:hover .feature-icon i {
    color: white;
}

/* Ensure feature image maintains aspect ratio */
.feature-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

/* Fallback for missing images */
.feature-image.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.feature-image.no-image i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-image img {
        height: 200px;
    }
}

/* Animation for feature cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}