/* Association Index Page Styles for Tourago Template */

/* General Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

.text-start .section-title::after {
    left: 0;
    transform: none;
}

/* About Association Section */
.about-association {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
}

.association-content {
    padding: 2rem 0;
}

.association-stats h4 {
    font-size: 2rem;
    font-weight: 700;
}

.association-image img {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.association-image:hover img {
    transform: scale(1.02);
}

/* Membership Cards */
.membership-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.membership-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.membership-card .card-header {
    padding: 1.5rem;
    border-bottom: none;
}

.membership-card .card-body {
    padding: 2rem 1.5rem;
}

.membership-card .card-footer {
    padding: 1.5rem;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.price-section {
    padding: 1rem 0;
}

.price {
    line-height: 1;
}

.period {
    font-size: 1rem;
}

.benefits-list li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.benefits-list i {
    width: 20px;
    text-align: center;
}

/* Volunteer Section */
.volunteer-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
}

.volunteer-image img {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.volunteer-image:hover img {
    transform: scale(1.02);
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    transition: transform 0.3s ease;
    border-radius: 0;
}

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

.news-meta .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.news-card .card-title a {
    color: #374151;
    transition: color 0.2s ease;
}

.news-card .card-title a:hover {
    color: #4f46e5;
}

.news-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .membership-card {
        margin-bottom: 2rem;
    }

    .association-stats {
        margin-top: 2rem;
    }

    .volunteer-section .row {
        flex-direction: column-reverse;
    }

    .volunteer-section .col-lg-6:first-child {
        margin-top: 2rem;
    }

    .news-card .card-body {
        padding: 1.5rem;
    }

    .contact-cta .col-lg-4 {
        margin-top: 1.5rem;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .association-stats h4 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2.5rem !important;
    }

    .membership-card .card-body {
        padding: 1.5rem 1rem;
    }

    .news-card .card-body {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation {
    animation-delay: var(--stagger-delay, 0s);
}

/* Image Fallback Gradients */
.news-image img[src*="news-ayuda-humanitaria"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-image img[src*="news-jose-gregorio"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-image img[src*="news-xunta-galicia"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.association-image img[src*="asociacion-venezuela-vigo"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.volunteer-image img[src*="voluntarios-venezuela-vigo"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Card Hover Effects */
.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.membership-card:hover::before {
    transform: scaleX(1);
}

/* Accessibility Improvements */
.membership-card:focus-within,
.news-card:focus-within {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-cta,
    .news-section,
    .volunteer-section {
        background: white !important;
        color: black !important;
    }

    .membership-card,
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
