/* Header Component */
.header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    border-radius: 0;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--white);
    font-weight: 700;
}

.logo-text span {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 400;
}

/* Navigation Component */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 400;
    color: var(--white);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 2px 0;
    transition: var(--transition);
}

/* Promotional Banner Component */
.promotional-banner {
    background-color: var(--white);
    color: var(--primary-color);
    padding: var(--spacing-sm) 0;
    text-align: center;
    position: relative;
    border: 2px solid var(--primary-color);
    border-left: none;
    border-right: none;
}

.promotional-banner::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"><circle cx="10" cy="10" r="1" fill="rgba(114,20,20,0.08)"/><circle cx="30" cy="20" r="1.5" fill="rgba(114,20,20,0.08)"/><circle cx="50" cy="10" r="1" fill="rgba(114,20,20,0.08)"/><circle cx="70" cy="25" r="1.2" fill="rgba(114,20,20,0.08)"/><circle cx="90" cy="15" r="1" fill="rgba(114,20,20,0.08)"/></svg>') repeat;
    opacity: 0.5;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.banner-text {
    font-weight: 700;
    color: var(--primary-color);
}

.banner-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.banner-cta:hover {
    background-color: #5a1010;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.banner-close {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.banner-close:hover {
    background-color: rgba(114, 20, 20, 0.1);
}

/* Hero Carousel Component */
.hero-carousel {
    position: relative;
    background-color: var(--white);
    color: var(--text-color);
    border-bottom: none;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    min-height: 600px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--white);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    z-index: 15;
}

.carousel-slide.active .hero-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.carousel-slide.active .slide-content-grid {
    opacity: 1 !important;
    visibility: visible !important;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    padding: var(--spacing-xxl) 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle-large {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(114, 20, 20, 0.9);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-nav:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.indicator.active,
.indicator:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Slide with Image Layout (Sello TIF) */
.slide-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.slide-text {
    text-align: left;
}

.slide-text .hero-title {
    text-align: left;
    margin-bottom: var(--spacing-sm);
    font-size: 3.5rem;
}

.slide-text .hero-subtitle-large {
    text-align: left;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.slide-text .hero-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    margin-bottom: var(--spacing-xl);
}

.slide-text .hero-actions {
    justify-content: flex-start;
}

.slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

.slide-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(114, 20, 20, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* Estilo específico para el logo de Cumbre TIF */
.carousel-slide:nth-child(2) .slide-image img {
    max-height: 300px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Fondos específicos para cada slide */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* Configuración específica para cada slide */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

/* Clase para slides con imagen de fondo - usando gradiente limpio */
.carousel-slide.with-background-image {
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

.carousel-slide:nth-child(1).active {
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('https://i.imgur.com/RTP7Jl9.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.carousel-slide:nth-child(2).active {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)), url('https://i.imgur.com/RTP7Jl9.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

.carousel-slide:nth-child(3).active {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
}

/* Estilos específicos para botones en el slide de Cumbre TIF */
.carousel-slide:nth-child(2) .btn-primary {
    background-color: rgba(114, 20, 20, 0.95);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    font-weight: 700;
}

.carousel-slide:nth-child(2) .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.carousel-slide:nth-child(2) .btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    font-weight: 700;
}

.carousel-slide:nth-child(2) .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* TIF Logo Components */
.tif-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.tif-seal-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.section-header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.section-tif-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Sello TIF Specific Sections */
.sello-tif-hero {
    background-color: var(--white);
    padding: var(--spacing-xl) 0;
}

.sello-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.sello-hero-text {
    text-align: left;
}

.sello-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tif-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tif-hero-stat {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(114, 20, 20, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(114, 20, 20, 0.1);
}

.tif-hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.tif-hero-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
}

/* TIF Benefits Section */
.tif-benefits-section {
    padding: var(--spacing-xl) 0;
}

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

.tif-benefit-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tif-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.tif-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.tif-benefit-card.special-border {
    border-color: var(--primary-color);
    background-color: rgba(114, 20, 20, 0.02);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.tif-benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
}

.tif-benefit-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* TIF CTA Section */
.tif-cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tif-cta-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 200 200"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="60" cy="40" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="100" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="140" cy="50" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="180" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    opacity: 0.3;
}

.tif-cta-content {
    position: relative;
    z-index: 1;
}

.tif-cta-section .section-title {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.tif-cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-large:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.slide-left {
    transform: translateX(-50px);
}

.scroll-reveal.slide-left.revealed {
    transform: translateX(0);
}

.scroll-reveal.slide-right {
    transform: translateX(50px);
}

.scroll-reveal.slide-right.revealed {
    transform: translateX(0);
}

.scroll-reveal.scale-up {
    transform: scale(0.8);
}

.scroll-reveal.scale-up.revealed {
    transform: scale(1);
}

.scroll-reveal.fade-in {
    opacity: 0;
    transform: none;
}

.scroll-reveal.fade-in.revealed {
    opacity: 1;
}

/* Parallax Background */
.parallax-bg {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Stagger Animation Classes */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerFadeInUp 0.6s ease forwards;
}

@keyframes staggerFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Parallax Effects */
.hero-carousel .carousel-slide {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-slide::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(114, 20, 20, 0.03) 0%, rgba(114, 20, 20, 0.01) 100%);
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Service Cards Animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced News Cards Animation */
.news-card-stable {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: newsCardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes newsCardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Statistics Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
    counter-reset: number;
}

/* Enhanced Statistics Section Animation */
.statistics-section .stat-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: statItemReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes statItemReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Socios Cards Animation */
.socio-card {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    animation: socioCardReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes socioCardReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Floating Animation for TIF Logo */
.tif-seal-logo,
.sello-tif-home-logo {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation for Important Elements */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 20, 20, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(114, 20, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(114, 20, 20, 0);
    }
}

/* Banner Slide In Animation */
.promotional-banner {
    transform: translateY(-100%);
    animation: bannerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes bannerSlideIn {
    to {
        transform: translateY(0);
    }
}

/* Text Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

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

/* Button Component */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: #5a1010;
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

.btn-small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
}

/* Card Components */
.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.05), rgba(114, 20, 20, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.service-image svg {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 120px;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(114, 20, 20, 0.15));
}

.service-card:hover .service-image svg {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(114, 20, 20, 0.25));
}

.service-content {
    padding: var(--spacing-lg);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.service-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.news-card-content {
    padding: var(--spacing-md);
}

.news-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.news-date {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

/* Nuevo diseño estable de noticias */
.news-card-stable {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    max-height: 300px;
    position: relative;
    overflow: hidden;
}

.news-card-stable:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.news-card-stable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    border-bottom: 1px solid rgba(114, 20, 20, 0.1);
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.05), rgba(114, 20, 20, 0.02));
    flex-shrink: 0;
}

.news-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(114, 20, 20, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(114, 20, 20, 0.2);
    flex-shrink: 0;
}

.news-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.news-card-stable .news-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-stable .news-date {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    flex-shrink: 0;
}

.news-title {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 2.6em;
}

.news-summary {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-btn {
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
}

/* Grid específico para noticias estables */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: stretch;
}

.resource-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Statistics Section Component */
.statistics-section {
    background-color: var(--primary-color);
    padding: calc(var(--spacing-xxl) * 1.5) 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin: var(--spacing-xl) 0;
}

.statistics-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 200 200"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="60" cy="40" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="100" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="140" cy="50" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="180" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    opacity: 0.5;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.statistics-section .stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.statistics-section .stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.statistics-section .stat-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    letter-spacing: -0.02em;
}

.statistics-section .stat-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.statistics-section .stat-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Original Stats Component (for other sections) */
.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-color);
    font-weight: 400;
}

/* Sponsors Carousel Component */
.sponsors-carousel {
    overflow: hidden;
    width: 100%;
    margin: var(--spacing-xxl) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.02), rgba(114, 20, 20, 0.05));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) 0;
}

.sponsors-track {
    display: flex;
    animation: sponsorScroll 15s linear infinite;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.sponsors-track:last-child {
    margin-bottom: 0;
    animation-direction: reverse;
    animation-duration: 20s;
}

.sponsor-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-width: 320px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.sponsor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
    animation-play-state: paused;
}

.sponsor-item img {
    max-height: 120px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition);
    opacity: 0.8;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Animación de desplazamiento continuo (más rápida) */
@keyframes sponsorScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Efecto de pausa al hover en el contenedor */
.sponsors-carousel:hover .sponsors-track {
    animation-play-state: paused;
}

/* Partner Component (mantener para compatibilidad) */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Form Components */
.contact-form {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(114, 20, 20, 0.1);
}

/* Contact Info Component */
.contact-info {
    padding: var(--spacing-lg);
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

/* Breadcrumb Component */
.breadcrumb-section {
    background-color: var(--background-light);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: var(--spacing-xs);
    color: #666;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #5a1010;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #666;
    font-weight: 400;
}

/* Process Steps Component */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.process-step {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    position: relative;
    z-index: 1;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -25px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
    z-index: 0;
}

.process-step:last-child::before {
    display: none;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Requirements Grid Component */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.requirement-category {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.requirement-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
}

.requirement-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.requirement-category h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: var(--spacing-xs);
}

.requirement-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-category li {
    padding: var(--spacing-xs) 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: var(--spacing-md);
}

.requirement-category li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: var(--spacing-xs);
}

.requirement-category li:not(:last-child) {
    border-bottom: 1px solid rgba(114, 20, 20, 0.1);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* Footer Component */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
    position: relative;
}

.footer::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 200 200"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="60" cy="40" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="100" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="140" cy="50" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="180" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: var(--spacing-sm);
    max-width: 100px;
    height: auto;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.2);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: var(--transition);
}

.social-links a:hover svg {
    fill: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 400;
}

/* Sello TIF Home Section */
.sello-tif-home-section {
    background-color: #f8f9fa;
    padding: calc(var(--spacing-xxl) * 1.5) 0;
    margin: var(--spacing-xl) 0;
}

.sello-tif-home-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xxl);
    align-items: center;
    min-height: 400px;
}

.sello-tif-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

.sello-tif-home-logo {
    max-width: 320px;
    max-height: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.sello-tif-home-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 32px rgba(114, 20, 20, 0.25));
}

.sello-tif-text-section {
    text-align: left;
    padding: var(--spacing-lg);
}

.sello-tif-text-section .section-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    line-height: 1.2;
}

.sello-tif-text-section .section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: var(--spacing-xxl);
    max-width: 90%;
}

.sello-tif-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* Socios Page Styles */
.socios-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.stat-card .stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros Section */
.filtros-container {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filtros-header h2 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.contador-resultados {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: rgba(114, 20, 20, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid rgba(114, 20, 20, 0.2);
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    align-items: end;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filtro-item label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-item input,
.filtro-item select {
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filtro-item input:focus,
.filtro-item select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(114, 20, 20, 0.1);
}

/* Socios Grid */
.socios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.socio-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    contain: layout style;
}

.socio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.socio-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(114, 20, 20, 0.05), rgba(114, 20, 20, 0.02));
    border-bottom: 1px solid rgba(114, 20, 20, 0.1);
    min-height: 280px;
    position: relative;
}

.socio-logo {
    width: 240px;
    height: 240px;
    min-width: 240px;
    min-height: 240px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
    position: relative;
}

.socio-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    padding: var(--spacing-xs);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.socio-logo img.loaded {
    opacity: 1;
}

.socio-logo img.lazy-load:not(.loaded) {
    background: linear-gradient(135deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                linear-gradient(135deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 0 0, 10px 10px; }
    100% { background-position: 20px 20px, 30px 30px; }
}

.socio-badge {
    flex-shrink: 0;
}

.badge-socio {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-light);
}

.socio-content {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
}

.socio-nombre {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.socio-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.location-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.socio-tifs {
    margin-bottom: var(--spacing-md);
}

.tifs-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tif-code {
    background-color: rgba(114, 20, 20, 0.1);
    color: var(--primary-color);
    padding: 0.25rem var(--spacing-xs);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(114, 20, 20, 0.2);
    transition: var(--transition);
}

.tif-code:hover {
    background-color: rgba(114, 20, 20, 0.2);
    transform: scale(1.05);
}

.socio-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.establecimientos-count {
    color: #666;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.establecimientos-count::before {
    content: '🏭';
    font-size: 1rem;
}

/* No Results */
.no-resultados {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.no-resultados-content {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 2px dashed var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

.no-resultados h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.no-resultados p {
    color: #666;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Error Message */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    background-color: #f8f9fa;
    border-radius: var(--border-radius-lg);
    border: 2px dashed #dc3545;
}

.error-message h3 {
    color: #dc3545;
    margin-bottom: var(--spacing-sm);
}

.error-message p {
    color: #666;
    margin-bottom: var(--spacing-lg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    padding: var(--spacing-xs) 0;
    margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--white);
    transition: var(--transition);
    font-weight: 400;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--white);
    color: var(--white);
}

/* Executive Committee Styles */
.directivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.directivo-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.directivo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
}

.directivo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.directivo-role {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.directivo-name {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Comisiones Grid */
.comisiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.comision-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.comision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.comision-card h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.comision-responsable {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Vocales Grid */
.vocales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.vocal-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.vocal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8B1A1A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.vocal-card h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vocal-name {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Responsive Design for Socios */
@media (max-width: 768px) {
    .socios-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-card .stat-number {
        font-size: 2.5rem;
    }

    .filtros-container {
        padding: var(--spacing-lg);
    }

    .filtros-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

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

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

    .socio-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
        text-align: center;
    }

    .socio-logo {
        width: 140px;
        height: 140px;
    }

    .tifs-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filtros-container {
        padding: var(--spacing-md);
        margin-left: calc(var(--spacing-sm) * -1);
        margin-right: calc(var(--spacing-sm) * -1);
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .socio-content {
        padding: var(--spacing-sm);
    }

    .socio-nombre {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }

    .establecimientos-count {
        font-size: 0.8rem;
    }
}