/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --barca-blue: #003087;
    --barca-granate: #a50044;
    --barca-blue-light: #0045a8;
    --barca-granate-light: #c50052;
    --dark-bg: #0a0e1a;
    --dark-secondary: #1a1f2e;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --gradient-barca: linear-gradient(135deg, #003087 0%, #a50044 100%);
    --gradient-barca-reverse: linear-gradient(135deg, #a50044 0%, #003087 100%);
    --gradient-blue: linear-gradient(135deg, #003087 0%, #0045a8 100%);
    --gradient-granate: linear-gradient(135deg, #a50044 0%, #c50052 100%);
    --blaugrana-stripes: repeating-linear-gradient(
        90deg,
        rgba(0, 48, 135, 0.5) 0px,
        rgba(0, 48, 135, 0.5) 50px,
        rgba(165, 0, 68, 0.5) 50px,
        rgba(165, 0, 68, 0.5) 100px
    );
    --blaugrana-bg: linear-gradient(135deg, rgba(0, 48, 135, 0.95) 0%, rgba(165, 0, 68, 0.95) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(0, 48, 135, 0.5);
    --shadow-glow-granate: 0 0 20px rgba(165, 0, 68, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* Fase 1: Variables de contraste adaptativo */
    --overlay-opacity: 0.6;
    --overlay-opacity-text: 0.7;
    --overlay-opacity-image: 0.3;
    --text-shadow-base: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
    --text-shadow-intense: 2px 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Modo Dark */
body.dark-mode {
    --overlay-opacity: 0.85;
    --overlay-opacity-text: 0.9;
    --blaugrana-stripes: repeating-linear-gradient(
        90deg,
        rgba(0, 48, 135, 0.3) 0px,
        rgba(0, 48, 135, 0.3) 50px,
        rgba(165, 0, 68, 0.3) 50px,
        rgba(165, 0, 68, 0.3) 100px
    );
}

body.dark-mode .navbar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 14, 26, 0.95) 100%);
    border-bottom: 2px solid rgba(165, 0, 68, 0.5);
}

body.dark-mode .info-card,
body.dark-mode .content-card,
body.dark-mode .news-card,
body.dark-mode .social-card,
body.dark-mode .event-card {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.9) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid rgba(165, 0, 68, 0.4);
}

/* Modo alto contraste mejorado */
body.high-contrast {
    --overlay-opacity: 0.9;
    --overlay-opacity-text: 0.95;
    --text-shadow-base: 3px 3px 6px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 1);
    --text-shadow-intense: 4px 4px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9);
    --blaugrana-stripes: repeating-linear-gradient(
        90deg,
        rgba(0, 48, 135, 0.2) 0px,
        rgba(0, 48, 135, 0.2) 50px,
        rgba(165, 0, 68, 0.2) 50px,
        rgba(165, 0, 68, 0.2) 100px
    );
}

body.high-contrast .section {
    --overlay-opacity: 0.95;
}

body.high-contrast .navbar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
}

body.high-contrast .info-card,
body.high-contrast .content-card,
body.high-contrast .news-card,
body.high-contrast .social-card,
body.high-contrast .event-card,
body.high-contrast .membership-card {
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
}

body.high-contrast .info-card::after,
body.high-contrast .content-card::after,
body.high-contrast .news-card::after {
    background: rgba(0, 0, 0, 0.6);
}

body.high-contrast .btn-primary,
body.high-contrast .btn-secondary {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

body.high-contrast .section-title {
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 1)) drop-shadow(0 0 20px rgba(0, 0, 0, 1));
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--blaugrana-stripes);
    background-size: 100px 100%;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    min-height: 100vh;
}

/* Overlay oscuro adaptativo para mejorar legibilidad del texto */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Overlay adicional para secciones con mucho texto */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, var(--overlay-opacity-text)) 100%);
    z-index: 0;
    pointer-events: none;
}

.section {
    position: relative;
    z-index: 1;
}

/* Cursor personalizado */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(165, 0, 68, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.05s ease, background 0.05s ease, left 0.05s linear, top 0.05s linear;
    mix-blend-mode: difference;
    will-change: transform, left, top;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .custom-cursor {
        display: none;
    }
}

/* Animated Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 48, 135, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(165, 0, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 48, 135, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.9) 0%, rgba(165, 0, 68, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(165, 0, 68, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.95) 0%, rgba(165, 0, 68, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(165, 0, 68, 0.5);
}

/* Scroll Progress Indicator - Fase 2 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--barca-blue) 0%, var(--barca-granate) 100%);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(165, 0, 68, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-brand h2,
body.high-contrast .nav-brand h2 {
    color: #ffffff;
    text-shadow: 
        3px 3px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 1),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-menu a:focus {
    outline: 3px solid var(--barca-granate);
    outline-offset: 5px;
    border-radius: 3px;
}

/* Toggles de Contraste y Dark Mode */
.contrast-toggle,
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1001;
}

.contrast-toggle:hover,
.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--barca-granate);
    transform: scale(1.1);
}

.contrast-toggle:focus,
.dark-mode-toggle:focus {
    outline: 3px solid var(--barca-granate);
    outline-offset: 3px;
}

.contrast-icon,
.dark-mode-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

body.high-contrast .contrast-toggle {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--barca-blue);
    box-shadow: 0 0 10px rgba(0, 48, 135, 0.5);
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .contrast-toggle,
    .dark-mode-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .dark-mode-toggle {
        bottom: 80px;
    }
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-barca);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(165, 0, 68, 0.1);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
    box-shadow: 0 0 10px rgba(165, 0, 68, 0.5);
}

.nav-menu a:hover::after {
    width: 120%;
    height: 120%;
}

/* Badge especial para Museu 1899 en el menú */
.nav-badge-museo {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.3) 0%, rgba(165, 0, 68, 0.3) 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-badge-museo::before {
    display: none;
}

.nav-badge-museo::after {
    display: none;
}

.nav-badge-museo:hover {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.5) 0%, rgba(165, 0, 68, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.4), 0 4px 15px rgba(165, 0, 68, 0.4);
    transform: translateY(-2px);
}

.museo-badge {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.1rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--barca-granate);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--barca-granate);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-overlay {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 48, 135, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(165, 0, 68, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 48, 135, 0.1) 0%, rgba(165, 0, 68, 0.1) 100%);
    animation: gradient-shift 15s ease infinite, pulse 8s ease-in-out infinite;
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(0, 48, 135, 0.2) 0%, transparent 70%),
        radial-gradient(circle, rgba(165, 0, 68, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradient-shift {
    0% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
    100% { 
        background-position: 0% 50%;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación de entrada mejorada */
.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reveal Animations - Fase 2 */
.section-title,
.section-subtitle,
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-title.revealed,
.section-subtitle.revealed,
.hero-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Effects para todas las tarjetas - Fase 2 */
.news-card,
.membership-card,
.event-card,
.featured-event-card,
.gallery-item,
.payment-card,
.contact-info-card,
.timeline-item,
.process-step {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Box Shadow Animado para Profundidad - Fase 2 */
.info-card:hover,
.social-card:hover,
.news-card:hover,
.event-card:hover,
.gallery-item:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 48, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite, glow 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-logo:hover {
    transform: translateY(-15px) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(0, 48, 135, 0.5));
}

.hero-logo:hover::before {
    opacity: 1;
}

.hero-logo:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(0, 48, 135, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(165, 0, 68, 0.5));
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
}

.gradient-text {
    background: var(--gradient-barca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    position: relative;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-barca);
    color: var(--text-primary);
    box-shadow: var(--shadow-md), 0 0 20px rgba(165, 0, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(165, 0, 68, 0.6);
}

.btn-primary:focus {
    outline: 3px solid var(--barca-granate);
    outline-offset: 4px;
    border-radius: 50px;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Ripple Effect - Fase 2 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-secondary {
    background: rgba(0, 48, 135, 0.3);
    color: #ffffff;
    border: 2px solid var(--barca-blue);
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    background: var(--barca-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 48, 135, 0.6);
    border-color: var(--barca-blue-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
}

.btn-secondary:focus {
    outline: 3px solid var(--barca-blue);
    outline-offset: 4px;
    border-radius: 50px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--barca-granate);
}

.btn-outline:hover {
    background: var(--barca-granate);
    transform: translateY(-2px);
}

.btn-outline:focus {
    outline: 3px solid var(--barca-granate);
    outline-offset: 4px;
    border-radius: 50px;
}

/* FASE 7: Botón Instagram CTA principal */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md), 0 0 20px rgba(225, 48, 108, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-instagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-instagram:hover::before {
    width: 300px;
    height: 300px;
}

.btn-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(225, 48, 108, 0.6);
    color: #ffffff;
}

.btn-instagram:focus {
    outline: 3px solid #dc2743;
    outline-offset: 4px;
    border-radius: 50px;
}

.btn-instagram svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-instagram span {
    position: relative;
    z-index: 1;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-instagram.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-instagram.btn-small svg {
    width: 16px;
    height: 16px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator:hover .mouse {
    border-color: var(--barca-granate);
    transform: scale(1.1);
}

.scroll-indicator:hover .mouse::before {
    background: var(--barca-granate);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Secciones */
.section {
    padding: 100px 0;
}

.section-alt {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.85) 0%, rgba(165, 0, 68, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #003087 0%, #a50044 50%, #003087 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradient-shift 5s ease infinite;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.6));
    letter-spacing: 1px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-barca);
    border-radius: 2px;
    animation: expandWidth 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: var(--text-shadow-base);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* Content Cards */
.content-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.content-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.content-card > * {
    position: relative;
    z-index: 1;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    text-shadow: var(--text-shadow-base);
    position: relative;
    z-index: 1;
}

.lead-text::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: calc(100% + 40px);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.lead-text strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(165, 0, 68, 0.6);
    background: linear-gradient(135deg, rgba(165, 0, 68, 0.9) 0%, rgba(165, 0, 68, 0.7) 100%);
    padding: 0 0.3rem;
    border-radius: 4px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(0, 48, 135, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}

.info-card > * {
    position: relative;
    z-index: 1;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 48, 135, 0.4);
    border-color: var(--barca-blue);
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.85) 0%, rgba(165, 0, 68, 0.85) 100%);
}

.info-card:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.info-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.info-card p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 400;
}

.info-card p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

.info-detail {
    font-size: 0.9rem;
    color: #f0f0f0;
    font-style: italic;
    margin-top: 0.5rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 400;
    line-height: 1.7;
}

/* News Card */
.news-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.85) 0%, rgba(165, 0, 68, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--barca-granate);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}

.news-card > * {
    position: relative;
    z-index: 1;
}

.news-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(165, 0, 68, 0.4);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--barca-blue) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.news-badge {
    display: inline-block;
    background: var(--gradient-barca);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.news-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.news-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 400;
}

.news-card p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

/* Membership Card */
.membership-card {
    background: var(--gradient-barca);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(165, 0, 68, 0.5);
    position: relative;
    overflow: hidden;
    animation: gradient-shift 10s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.membership-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.membership-card > * {
    position: relative;
    z-index: 1;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.membership-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(165, 0, 68, 0.7);
}

.membership-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.membership-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    font-weight: 400;
    text-shadow: var(--text-shadow-base);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.social-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.75) 0%, rgba(165, 0, 68, 0.75) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
    display: block;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.social-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.social-card:hover::after {
    width: 300px;
    height: 300px;
}

.social-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 48, 135, 0.5);
    border-color: var(--barca-blue);
}

.social-card > * {
    position: relative;
    z-index: 1;
}

.social-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.social-card p {
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.social-link-text {
    color: var(--barca-granate);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-card:hover .social-link-text {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.9) 0%, rgba(165, 0, 68, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(165, 0, 68, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--barca-granate), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.footer-section p {
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.footer-motto {
    color: var(--barca-granate) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.footer-section a:hover {
    color: #ffd700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.6);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* FASE 7: Asegurar que botones Instagram en footer se vean bien */
.social-links .btn-instagram {
    width: 100%;
    justify-content: center;
}

.footer-location {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.footer-barca {
    color: #ffffff;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8), 0 0 10px rgba(165, 0, 68, 0.6);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-barca);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--barca-granate);
    border-radius: 50%;
    border: 4px solid rgba(0, 48, 135, 0.8);
    z-index: 1;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-barca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.75) 0%, rgba(165, 0, 68, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--barca-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.timeline-content > * {
    position: relative;
    z-index: 2;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-barca);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    z-index: 1;
}

.timeline-item:hover .timeline-content::before {
    transform: scaleY(1);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 48, 135, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.timeline-content p {
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.timeline-content p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.75) 0%, rgba(165, 0, 68, 0.75) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 25px;
    border-left: 4px solid var(--barca-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.process-step > * {
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 48, 135, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.process-step:hover::after {
    left: 100%;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-barca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.step-content p {
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.step-content a {
    color: var(--barca-granate);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.step-content a:hover {
    color: var(--barca-blue);
}

/* Payment Cards */
.payment-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.payment-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.payment-card > * {
    position: relative;
    z-index: 2;
}

.payment-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 48, 135, 0.3);
    border-color: rgba(0, 48, 135, 0.5);
}

.payment-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.6) 0%, rgba(165, 0, 68, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-item.payment-total {
    background: var(--gradient-barca);
    border: none;
    padding: 1.5rem;
}

.payment-label {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
}

.payment-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
}

.payment-total .payment-label,
.payment-total .payment-value {
    color: #ffffff;
    font-size: 1.3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-details p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.bank-details p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.contact-info-card > * {
    position: relative;
    z-index: 1;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.contact-info-card p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.email-link {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.email-link a {
    color: var(--barca-granate);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.email-link a:hover {
    color: var(--barca-blue);
}

.note-text {
    background: rgba(165, 0, 68, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--barca-granate);
    margin-top: 1.5rem;
}

/* Contact Links */
.contact-link {
    color: var(--barca-granate);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--barca-blue);
    transform: translateX(5px);
}

.link-highlight {
    color: var(--barca-granate);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.link-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--barca-granate);
    transition: width 0.3s ease;
}

.link-highlight:hover::after {
    width: 100%;
}

.link-highlight:hover {
    border-bottom-color: var(--barca-granate);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(165, 0, 68, 0.5);
}

.link-highlight:focus {
    outline: 3px solid var(--barca-granate);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.75) 0%, rgba(165, 0, 68, 0.75) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.event-card > * {
    position: relative;
    z-index: 2;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--barca-blue) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--barca-blue);
}

.event-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.event-badge.upcoming {
    background: var(--gradient-barca);
    color: var(--text-primary);
}

.event-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.event-details {
    margin-bottom: 1.5rem;
    text-align: left;
}

.event-details p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.event-details p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

.event-description {
    color: #ffffff;
    line-height: 1.8;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

/* Featured Events */
.featured-events {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-event-card {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    border-left: 4px solid var(--barca-granate);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.featured-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(165, 0, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: transform 0.4s ease;
}

.featured-event-card:hover::before {
    transform: translate(30%, -30%) scale(1.2);
}

.featured-event-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.featured-event-year {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-barca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 100px;
    flex-shrink: 0;
}

.featured-event-content {
    flex: 1;
}

.featured-event-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.featured-event-content p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.featured-event-content p strong {
    color: var(--barca-granate);
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.75) 0%, rgba(165, 0, 68, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.5) 0%, rgba(165, 0, 68, 0.5) 100%);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: var(--text-primary);
}

.gallery-caption {
    padding: 2rem;
}

.gallery-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.gallery-caption p {
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.contact-item p {
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.contact-form {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.6) 0%, rgba(165, 0, 68, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid var(--barca-blue);
    outline-offset: 2px;
    border-color: var(--barca-blue);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.2), 0 0 20px rgba(0, 48, 135, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.85) 0%, rgba(165, 0, 68, 0.85) 100%);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mensajes del formulario de contacto */
.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    animation: slideInUp 0.3s ease;
    text-shadow: var(--text-shadow-base);
}

.form-message-success {
    background: rgba(0, 128, 0, 0.3);
    border: 2px solid rgba(0, 128, 0, 0.5);
    color: #ffffff;
}

.form-message-error {
    background: rgba(220, 20, 60, 0.3);
    border: 2px solid rgba(220, 20, 60, 0.5);
    color: #ffffff;
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== FASE 3: Contenido Dinámico y Engagement ========== */

/* Contador Animado */
.counter {
    display: inline-block;
    font-weight: 700;
    color: var(--barca-granate);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-barca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Lightbox Mejorado */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(165, 0, 68, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--barca-granate);
    background: rgba(255, 255, 255, 0.9);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Event Countdown */
.event-countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-label {
    font-size: 0.7rem;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.event-past {
    color: var(--barca-granate);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Timeline Interactivo Mejorado */
.timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px) scale(1.02);
}

.timeline-item:active {
    transform: translateX(5px) scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 48, 135, 0.9) 0%, rgba(165, 0, 68, 0.9) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid var(--barca-granate);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }
    
    .nav-badge-museo {
        margin-top: 0.5rem;
        display: inline-block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .hero-logo {
        height: 80px;
    }

    .section {
        padding: 60px 0;
    }

    .content-card,
    .news-card,
    .membership-card {
        padding: 2rem;
    }

    .info-grid,
    .social-grid,
    .payment-wrapper,
    .events-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo {
        height: 40px;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-year {
        min-width: auto;
    }

    .process-step {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-number {
        min-width: auto;
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-event-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .featured-event-year {
        min-width: auto;
    }

    .gallery-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-logos {
        gap: 1rem;
    }

    .hero-logo {
        height: 60px;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0.75rem;
    }

    .timeline-item::before {
        left: -1.75rem;
        width: 15px;
        height: 15px;
    }

    .payment-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    .event-card,
    .featured-event-card {
        padding: 1.5rem;
    }

    .gallery-image-wrapper {
        height: 180px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .stats-banner {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .event-countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.4rem 0.8rem;
    }

    .countdown-number {
        font-size: 1.4rem;
    }
    
    .instagram-feed-wrapper {
        gap: 1.5rem;
    }
}

/* Museo 1899 Section */
.museo-wrapper {
    margin-top: 2rem;
}

.museo-content {
    max-width: 900px;
    margin: 0 auto;
}

.museo-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.museo-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.museo-title-section h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 700;
}

.museo-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    text-shadow: var(--text-shadow-base);
    margin: 0;
}

.museo-description {
    margin-bottom: 2rem;
}

.museo-description .lead-text {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.museo-collection {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.3) 0%, rgba(165, 0, 68, 0.3) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.museo-collection h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow-base);
    text-align: center;
}

.collection-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.collection-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.collection-item span:last-child {
    color: #ffffff;
    font-weight: 500;
    text-shadow: var(--text-shadow-base);
    font-size: 1rem;
}

.museo-story {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(165, 0, 68, 0.2) 0%, rgba(0, 48, 135, 0.2) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.museo-story h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow-base);
}

.museo-story p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow-base);
    font-size: 1.05rem;
}

.museo-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.museo-social p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow-base);
}

@media (max-width: 768px) {
    .museo-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .museo-icon {
        font-size: 3rem;
    }
    
    .museo-title-section h3 {
        font-size: 2rem;
    }
    
    .collection-items {
        grid-template-columns: 1fr;
    }
    
    .museo-collection,
    .museo-story {
        padding: 1.5rem;
    }
}

/* Instagram Feed Integration */
.instagram-feed-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.instagram-embed-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.instagram-feed-placeholder {
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.85) 0%, rgba(165, 0, 68, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.instagram-feed-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
}

.instagram-feed-placeholder > * {
    position: relative;
    z-index: 1;
}

.instagram-feed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.instagram-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.8) 0%, rgba(165, 0, 68, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.instagram-info h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 700;
}

.instagram-info p {
    color: #f0f0f0;
    font-size: 0.9rem;
    text-shadow: var(--text-shadow-base);
    font-weight: 400;
}

.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.instagram-post-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.instagram-post-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.instagram-post-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.6) 0%, rgba(165, 0, 68, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.instagram-post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.post-icon {
    font-size: 2rem;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.instagram-feed-footer {
    text-align: center;
}

.instagram-feed-info {
    display: flex;
    align-items: center;
}

.instagram-feed-info .content-card {
    width: 100%;
}

@media (max-width: 968px) {
    .instagram-feed-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .instagram-embed-container {
        max-width: 100%;
    }
    
    .instagram-posts-grid {
        gap: 0.4rem;
    }
}

/* ========== FASE 4: Polish Final y Experiencia Premium ========== */

/* Lazy Loading Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--barca-granate);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible Mejorado */
*:focus-visible {
    outline: 3px solid var(--barca-granate);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Optimización GPU */
.info-card,
.social-card,
.news-card,
.event-card,
.gallery-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error State */
.error-state {
    color: var(--barca-granate);
    text-align: center;
    padding: 2rem;
    background: rgba(165, 0, 68, 0.1);
    border-radius: 10px;
    border: 2px solid var(--barca-granate);
}