/* styles.css */
:root {
    --primary-red: #CB2821; /* Red Atleti */
    --primary-red-hover: #A51E18;
    --primary-blue: #273B69; /* Blue Atleti logo */
    --dark-bg: #0F1115;
    --darker-bg: #08090B;
    --glass-bg: rgba(25, 28, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden !important;
}

/* Typography utilities */
.text-red { color: var(--primary-red); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.dark-bg {
    background-color: var(--darker-bg);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(203, 40, 33, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 9, 11, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Carnet de Abonado - Zona Socios */
.nav-carnet-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-carnet-btn img {
    height: 44px;
    width: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 215, 0, 0.4); /* Borde dorado sutil */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-carnet-btn .carnet-text-tag {
    display: none; /* Oculto en desktop */
}

.nav-carnet-btn:hover img {
    transform: translateY(-3px) scale(1.06);
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(228, 17, 24, 0.5); /* Resplandor rojiblanco */
}

.nav-carnet-btn:active img {
    transform: translateY(1px) scale(0.97);
}


/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    z-index: -2;
    /* Fallback gradient when no banner image is present */
    background-image: 
        radial-gradient(ellipse at 30% 50%, rgba(203, 40, 33, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(39, 59, 105, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, #08090B 0%, #120509 40%, #0d0f1e 100%);
    animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.08); }
}

@keyframes zoomOut {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 9, 11, 0.4), var(--dark-bg));
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red-hover); }

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 850px;
    padding: 2rem;
    position: relative;
}

/* Floating particles decoration on hero */
.hero-content::before {
    content: '';
    position: absolute;
    inset: -100px;
    background: radial-gradient(ellipse at center, rgba(203, 40, 33, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

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

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 25%;
}

/* About Text */
.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text b {
    color: white;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-main);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-red);
    border: 4px solid var(--darker-bg);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.timeline-content h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Cards Grid (Eventos) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.event-date {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-bottom-left-radius: 16px;
    font-size: 0.9rem;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Match & News Panel */
.panel-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.match-panel, .news-panel {
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 12px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.team span {
    font-weight: bold;
    font-size: 1.1rem;
}

.team img, .placeholder-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.placeholder-logo {
    background: #fff;
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.vs {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vs .time {
    font-size: 2.5rem;
    font-weight: 800;
}

.vs .date {
    color: var(--text-muted);
}

.vs .competition {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s;
    cursor: pointer;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.news-item img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.news-text h4 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.1rem;
}

.news-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background: #050608;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 120px;
}

.credo-rojo {
    color: var(--primary-red);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    color: white;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* AI Agent Chat */
.ai-agent-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 450px;
    height: 650px;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 1500;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-agent-container.hidden {
    transform: translateY(150%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.ai-agent-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-status::before {
    content: '●';
    color: #10B981;
    margin-right: 5px;
    transition: color 0.3s;
}

.ai-status.error::before {
    color: #ef4444;
}

.ai-status.loading::before {
    color: #f59e0b;
    animation: statusPulse 1s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ai-close {
    background: transparent;
    color: white;
    font-size: 1.2rem;
}

.ai-header-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s;
}
.ai-header-btn:hover {
    color: white;
}

.ai-chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: msgSlideIn 0.3s ease;
}

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

.ai-message {
    background: var(--glass-bg);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: white;
}

.user-message {
    background: var(--primary-red);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-message.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.share-whatsapp-btn {
    margin-top: 10px;
    background: #25D366;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.share-whatsapp-btn:hover {
    background: #128C7E;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    align-self: flex-start;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    animation: msgSlideIn 0.3s ease;
}
.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: typingBounce 1.4s infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
.typing-indicator span {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Reconnect Banner */
.ai-reconnect-banner {
    background: rgba(239, 68, 68, 0.1);
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #fca5a5;
}
.ai-reconnect-banner.hidden { display: none; }
.ai-reconnect-banner button {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.ai-reconnect-banner button:hover { background: rgba(239, 68, 68, 0.4); }

.ai-input-area {
    padding: 1rem;
    background: rgba(25, 28, 35, 0.9);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

.ai-input-area input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    transition: border-color 0.3s, opacity 0.3s;
}
.ai-input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-input-area button {
    background: var(--primary-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s, opacity 0.3s;
}
.ai-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-input-area button:hover {
    background: var(--primary-red-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.6rem 1.2rem !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .logo {
        gap: 0.6rem !important;
        font-size: 0.85rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    .logo img {
        height: 48px !important;
        width: 48px !important;
        object-fit: contain !important;
    }
    .logo span {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    .mobile-menu-btn {
        margin: 0 !important;
        display: block !important;
        z-index: 1001 !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        color: white !important;
        padding: 0.5rem !important;
    }
    .nav-links, .nav-actions {
        display: none;
    }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 9, 11, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 5.5rem 2rem 14rem;
        gap: 0;
        z-index: 998;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .nav-links.mobile-open a, 
    .nav-links.mobile-open button {
        padding: 0.8rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
        text-align: center;
        background: transparent;
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 0;
        color: white;
        font-family: inherit;
        font-weight: 500;
        cursor: pointer;
    }
    .nav-links.mobile-open button i {
        margin-right: 6px;
    }
    .nav-links.mobile-open a:last-child {
        border-bottom: none;
    }
    .nav-actions.mobile-open {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(8, 9, 11, 1) 60%, rgba(8, 9, 11, 0.8) 80%, rgba(8, 9, 11, 0) 100%);
        padding: 2rem 2rem 2.5rem;
        z-index: 999;
        border: none;
        box-shadow: none;
        animation: slideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .nav-actions.mobile-open .nav-carnet-btn img {
        height: 75px;
        width: 115px;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(203, 40, 33, 0.2);
        border: 1px solid rgba(203, 40, 33, 0.3);
        transition: transform 0.2s;
    }
    .nav-actions.mobile-open .nav-carnet-btn img:active {
        transform: scale(0.95);
    }
    .nav-actions.mobile-open .nav-carnet-btn .carnet-text-tag {
        display: block;
        margin-top: 8px;
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--gold);
        letter-spacing: 1.8px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
        text-align: center;
    }

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

    .nav-container {
        position: relative;
    }
    .mobile-menu-btn {
        display: block;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 1.2rem;
    }
    .match-panel, .news-panel {
        padding: 1.5rem;
    }
    .match-info {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
    }
    .guerreros-form-row {
        flex-direction: column !important;
        width: 100% !important;
    }
    .guerreros-form-row input, 
    .guerreros-form-row select, 
    .guerreros-form-row button {
        width: 100% !important;
        flex: none !important;
    }
    .table-responsive {
        overflow-x: auto !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        max-width: 100vw;
        word-wrap: break-word;
    }
    .section-title {
        font-size: 1.8rem !important;
        max-width: 100vw;
        word-wrap: break-word;
    }
    .event-featured .grid-2 {
        padding: 1.2rem !important;
        gap: 1.5rem !important;
    }
    .event-featured .event-poster-container img {
        max-height: none !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    .event-featured {
        border-radius: 12px !important;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .credo-rojo {
        font-size: 1.4rem;
        word-break: break-word;
    }
    .footer-social {
        justify-content: center;
    }
    .ai-agent-container {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0;
        overflow: hidden;
    }
    .ai-agent-header {
        order: 1 !important;
    }
    .ai-input-area {
        order: 2 !important;
        border-top: none !important;
        border-bottom: 1px solid var(--glass-border) !important;
    }
    .ai-reconnect-banner {
        order: 3 !important;
    }
    .ai-chat-messages {
        order: 4 !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    /* Gallery modal full-screen on mobile */
    #socios-gallery-modal .modal-content {
        padding: 1rem 0.5rem;
    }
    #socios-gallery-modal .gallery-slider-container {
        width: 95vw;
        max-width: 95vw;
    }
    #socios-gallery-modal #socios-gallery-img {
        max-height: 55vh;
    }
    /* Contact modal on small screens */
    .contact-modal-content {
        max-height: 95vh;
        padding: 2rem 1.25rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    /* Section padding reduced */
    .section {
        padding: 4rem 0;
    }
    /* Bigger touch targets */
    .btn-outline,
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
    }
    /* Hero on tiny screens */
    .hero-subtitle {
        font-size: 1.15rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .btn-ia-rojo {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .ai-agent-container {
        width: 380px;
        height: 600px;
    }
    .grid-2 {
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .container {
        padding: 0 1.5rem;
    }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Gallery Entry Card Hover (CSS, not inline JS) */
.gallery-entry-card {
    cursor: pointer;
}
.gallery-entry-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.35) !important;
    border-color: rgba(229, 62, 62, 0.55) !important;
}
.gallery-entry-card:hover img {
    transform: scale(1.04);
}
.gallery-entry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    gap: 0.75rem;
}
.gallery-entry-card:hover .gallery-entry-overlay {
    opacity: 1;
}
.gallery-entry-play {
    background: var(--primary-red);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(229, 62, 62, 0.7);
    transition: transform 0.3s ease;
}
.gallery-entry-card:hover .gallery-entry-play {
    transform: scale(1.1);
}
.gallery-entry-label {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(25, 28, 35, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--primary-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    text-align: center;
    pointer-events: none;
}
.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-notification.toast-info {
    border-left-color: #3b82f6;
}
.toast-notification.toast-success {
    border-left-color: #10b981;
}
.toast-notification.hidden {
    display: none;
}

/* Section scroll animation */
.animate-in {
    animation: sectionFadeIn 0.8s ease both;
}
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.mt-2 {
    margin-top: 2rem;
}

/* Guerreros Table and Form Styles */
.guerreros-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
    font-size: 0.95rem;
}
.guerreros-table th {
    color: var(--primary-red);
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.guerreros-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.guerreros-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
    padding: 0.25rem 0.5rem;
}
.delete-btn:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

/* Contacto Button Styles */
.btn-contacto {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contacto:hover {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-contacto i {
    font-size: 1.1rem;
}

/* Contact Modal Layout adjustments */
.contact-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    max-height: 90vh;
    overflow-y: auto;
}

.service-chip {
    transition: all 0.3s ease;
    cursor: default;
}

.service-chip:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.detail-row a {
    transition: color 0.2s ease;
}

.detail-row a:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

/* Premium Logo Micro-interactions */
.contact-logo-wrapper {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.contact-logo-wrapper:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5) !important;
    border-color: #60a5fa !important;
}

/* Premium Single Centered AI Red Button */
.btn-ia-rojo {
    background: linear-gradient(135deg, var(--primary-red), #e11d48);
    color: white;
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    box-shadow: 0 6px 25px rgba(203, 40, 33, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-ia-rojo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 35px rgba(203, 40, 33, 0.8);
    background: linear-gradient(135deg, #e11d48, var(--primary-red));
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ia-rojo i {
    font-size: 1.3rem;
    animation: pulseRobot 2.5s infinite ease-in-out;
}

@keyframes pulseRobot {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; filter: drop-shadow(0 0 2px white); }
    50% { transform: scale(1.2) rotate(15deg); opacity: 0.85; filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
}

/* ====== HIMNO DEL ATLÉTICO - NAV BUTTON ====== */
.nav-himno-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary-red), #a51e18) !important;
    color: white !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 15px rgba(203,40,33,0.5) !important;
    transition: all 0.3s ease !important;
    animation: himnoNavPulse 2.5s ease-in-out infinite !important;
    border: none !important;
    cursor: pointer;
}

.nav-himno-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 30px rgba(203,40,33,0.9) !important;
    background: linear-gradient(135deg, #e53030, var(--primary-red)) !important;
}

.nav-himno-btn::after {
    display: none !important;
}

@keyframes himnoNavPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(203,40,33,0.5); }
    50% { box-shadow: 0 0 28px rgba(203,40,33,0.9), 0 0 50px rgba(203,40,33,0.3); }
}

/* ====== BOTÓN PEÑAS EN NAVBAR ====== */
.nav-penas-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #273B69, #1a2a50) !important;
    color: white !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 15px rgba(39,59,105,0.6) !important;
    transition: all 0.3s ease !important;
    animation: penasNavPulse 2.8s ease-in-out infinite !important;
    border: none !important;
    cursor: pointer;
}

.nav-penas-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 30px rgba(39,59,105,1) !important;
    background: linear-gradient(135deg, #3a54a0, #273B69) !important;
}

.nav-penas-btn::after { display: none !important; }

@keyframes penasNavPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(39,59,105,0.6); }
    50% { box-shadow: 0 0 28px rgba(39,59,105,1), 0 0 50px rgba(39,59,105,0.35); }
}

/* ====== BOTÓN PWA EN MENÚ HAMBURGUESA ====== */
.nav-pwa-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: white !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 14px rgba(22,163,74,0.45) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.nav-pwa-btn:hover {
    transform: scale(1.07) !important;
    box-shadow: 0 0 28px rgba(22,163,74,0.9) !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.nav-pwa-btn::after { display: none !important; }

/* Ocultar en escritorio — solo aparece en móvil dentro de la hamburguesa */
@media (min-width: 769px) {
    .nav-pwa-btn { display: none !important; }
}

/* Fondo animado modal Peñas */
.penas-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(39,59,105,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(203,40,33,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(39,59,105,0.2) 0%, transparent 60%);
    animation: penasGlowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes penasGlowPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ====== PWA INSTALL — Botón integrado en hamburguesa (ver .nav-pwa-btn) ====== */
/* El botón flotante ha sido eliminado. El control PWA vive ahora en nav-links. */

.himno-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(203,40,33,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(203,40,33,0.15) 0%, transparent 60%);
    animation: himnoGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes himnoGlowPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes himnoLogoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(203,40,33,0.6)) drop-shadow(0 0 20px rgba(203,40,33,0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(203,40,33,1)) drop-shadow(0 0 50px rgba(203,40,33,0.5));
        transform: scale(1.05);
    }
}

/* ====== VISUALIZADOR BARRAS HIMNO ====== */
.himno-bar { min-height: 8px; }

@keyframes himnoBar1 {
    0%, 100% { height: 12px; }
    50% { height: 55px; }
}
@keyframes himnoBar2 {
    0%, 100% { height: 30px; }
    50% { height: 20px; }
}
@keyframes himnoBar3 {
    0%, 100% { height: 45px; }
    50% { height: 10px; }
}

/* Barra de volumen styling */
#himno-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(203,40,33,0.6);
}
#himno-volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ================= GALERÍA PREMIUM ================= */
.gallery-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.gallery-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-tab-btn i {
    font-size: 1.25rem;
}

.gallery-tab-btn:hover {
    color: white;
}

.gallery-tab-btn.active {
    color: var(--primary-red);
}

.gallery-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.15rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.6);
}

/* Ocultar/Mostrar pestañas */
.gallery-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.gallery-tab-content.active {
    display: block;
}

/* Grid de Imágenes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: #0d0f12;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 9, 11, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
    text-align: center;
}

.gallery-icon-lupa {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.5);
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-caption-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s;
}

/* Hover de Item de Galería */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.3); /* Borde dorado sutil */
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon-lupa,
.gallery-item:hover .gallery-caption-text {
    transform: translateY(0);
}

/* Galería de Vídeos */
.video-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 62, 62, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-info {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.video-info h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Vídeo Futuro */
.future-video {
    opacity: 0.65;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.15);
}

.future-video-placeholder {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    gap: 0.75rem;
}

.future-video-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.video-card:hover .future-video-placeholder i {
    transform: scale(1.15);
    color: var(--primary-red);
}

.future-video-placeholder span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= PORTADA VIDEO GALERÍA ================= */
.gallery-video-cover-container {
    max-width: 850px;
    margin: 0 auto 3.5rem;
    cursor: pointer;
    perspective: 1000px;
}

.gallery-video-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.4); /* Toque dorado */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.gallery-cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65) contrast(1.1);
    transition: transform 0.8s ease;
}

.gallery-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 9, 11, 0.2) 0%, rgba(8, 9, 11, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 2;
    transition: background 0.4s ease;
}

.gallery-cover-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(30px);
    width: 100%;
}

.gallery-cover-badge {
    background: rgba(228, 17, 24, 0.9); /* Rojo Atlético */
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(228, 17, 24, 0.4);
    transform: translateZ(30px);
}

.gallery-cover-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transform: translateZ(40px);
}

.gallery-cover-actions {
    display: flex;
    gap: 1.25rem;
    transform: translateZ(50px);
}

.btn-cover-action {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cover-images:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(228, 17, 24, 0.5);
    transform: scale(1.05);
}

.btn-cover-videos:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: black;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

/* Hover de la Portada Completa */
.gallery-video-cover-container:hover .gallery-video-cover-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-color: var(--primary-red);
}

.gallery-video-cover-container:hover .gallery-cover-video {
    transform: scale(1.05);
}

.gallery-video-cover-container:hover .gallery-cover-overlay {
    background: linear-gradient(to bottom, rgba(8, 9, 11, 0.15) 0%, rgba(8, 9, 11, 0.9) 100%);
}

/* Adaptación responsive */
@media (max-width: 768px) {
    .gallery-video-cover-container {
        margin-bottom: 2.5rem;
    }
    .gallery-cover-overlay {
        padding: 1.5rem 1rem;
    }
    .gallery-cover-title {
        font-size: 1.5rem;
    }
    .gallery-cover-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 0.75rem;
    }
    .btn-cover-action {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Animación pulsante para el texto dorado de instrucción */
@keyframes pulseGold {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}



