/* GENERAL */
:root {
  --primary-color: #d32f2f; /* Rojo Güemes */
  --dark-bg: #111111;
  --light-bg: #ffffff;
  --dark-card: #1c1c1c;
  --light-card-bg: #f8f9fa;
  --text-light: #f5f5f5;
  --text-dark: #333333;
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; }
body.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: 60px 0; }
.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.section-title { font-family: var(--font-title); font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 40px; text-transform: uppercase; }
.bg-dark .section-title { color: var(--text-light); }
.section:not(.bg-dark) .section-title { color: var(--text-dark); }
.accent { color: var(--primary-color); }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); }
.text-center { text-align: center; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(17, 17, 17, 0.9); backdrop-filter: blur(10px); padding: 15px 0; z-index: 1000; border-bottom: 1px solid #333; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; }
.logo-image { height: 45px; width: auto; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-light); font-weight: 700; padding: 5px 10px; border-radius: 5px; transition: background-color 0.3s; }
.nav-links a:hover { background-color: var(--primary-color); }
.socios-link { background-color: var(--primary-color); }
.socios-link:hover { background-color: #a02424; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* HERO */
.hero { height: 80vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/mural_guemes.png') no-repeat center center/cover; position: relative; margin-top: 71px; }
.hero-title { font-family: var(--font-title); font-size: 3.5rem; font-weight: 900; text-transform: uppercase; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; }

/* BOTÓN */
.btn { padding: 12px 24px; border-radius: 5px; font-weight: 700; text-transform: uppercase; transition: transform 0.3s, box-shadow 0.3s; display: inline-block; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary-color); color: var(--text-light); }
.btn-secondary { background-color: #6c757d; color: var(--text-light); border: 2px solid #6c757d; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-secondary:hover { background-color: #5a6268; border-color: #5a6268; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; font-weight: normal; }


/* PRÓXIMO PARTIDO */
.match-card { text-align: center; border: 2px solid var(--primary-color); padding: 30px; width: 100%; max-width: 700px; margin: 0 auto; background-color: var(--light-card-bg); color: var(--text-dark); }
.match-card h3 { font-family: var(--font-title); text-transform: uppercase; font-size: 1rem; color: #777; margin-bottom: 10px; }
.match-details { display: flex; flex-direction: column; gap: 5px; }
.match-teams { font-size: 1.8rem; font-weight: 700; }
.vs { color: var(--primary-color); font-size: 1.2rem; margin: 0 10px; }
.match-info { font-size: 1.1rem; color: #555; }

/* CARD */
.card { background-color: var(--light-bg); padding: 25px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.bg-dark .card { background-color: var(--dark-card); color: var(--text-light); box-shadow: none; }
.card.light { background-color: var(--light-card-bg); color: var(--text-dark); }
.card h3 { margin-bottom: 15px; font-family: var(--font-title); }
.card ul li { padding: 5px 0; border-bottom: 1px solid #eee; }
.bg-dark .card ul li { border-bottom: 1px solid #333; }
.card.light ul li { border-bottom: 1px solid #ddd; }
.card ul li:last-child { border-bottom: none; }

/* ACCORDION */
.accordion-item { border-bottom: 1px solid #ddd; }
.bg-dark .accordion-item { border-bottom: 1px solid #444; }
.accordion.light .accordion-item { border-bottom: 1px solid #ddd; } /* For light accordions on light bg */
.accordion-header { width: 100%; background: none; border: none; font-family: var(--font-title); font-size: 1.3rem; text-align: left; padding: 20px; cursor: pointer; position: relative; color: var(--text-dark); }
.bg-dark .accordion-header { color: var(--text-light); }
.accordion.light .accordion-header { color: var(--text-dark); } /* Ensure dark text on light accordion */
.accordion-header::after { content: '+'; position: absolute; right: 20px; font-size: 2rem; transition: transform 0.3s; }
.accordion-body { display: none; padding: 0 20px 20px 20px; color: #555; }
.bg-dark .accordion-body { color: #ccc; }
.accordion.light .accordion-body { color: #555; } /* Ensure dark text on light accordion */
.accordion-body ul { list-style-type: disc; padding-left: 20px; margin-top: 10px; }

/* NEWS CARD */
.news-card { padding: 0; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-content { padding: 20px; }
.news-date { font-size: 0.8rem; font-weight: 700; color: #777; margin-bottom: 10px; display: block; }
.bg-dark .news-card .card-content { color: var(--text-light); }
.bg-dark .news-card .news-date { color: #aaa; }
.news-card.light { background-color: var(--light-card-bg); color: var(--text-dark); }
.news-card.light .news-date { color: #777; }


/* SLIDER PRÓXIMOS PARTIDOS */
.slider-container { position: relative; width: 100%; overflow: hidden; }
.slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; box-sizing: border-box; padding: 0 10px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.3); color: white; border: none; padding: 10px 15px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; z-index: 10; transition: background-color 0.3s; }
.slider-btn:hover { background-color: var(--primary-color); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* MINUTO A MINUTO */
.live-match-card { background-color: var(--dark-card); border-radius: 10px; padding: 30px; max-width: 800px; margin: 0 auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.live-score { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #444; }
.team { display: flex; flex-direction: column; align-items: center; width: 120px; text-align: center; }
.team-crest { height: 80px; width: 80px; object-fit: contain; margin-bottom: 10px; }
.team-name { font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--text-light); }
.score-timer { display: flex; flex-direction: column; align-items: center; }
.live-timer { font-size: 1.2rem; font-weight: 700; color: #ccc; margin-bottom: 5px; background-color: rgba(0,0,0,0.2); padding: 3px 10px; border-radius: 5px; transition: color 0.3s; }
.live-timer.active-timer { color: var(--primary-color); }
.score { font-family: var(--font-title); font-size: 3.5rem; font-weight: 900; color: var(--text-light); }
.live-events h4 { font-family: var(--font-title); text-align: center; margin-bottom: 15px; color: var(--primary-color); text-transform: uppercase; font-size: 1.1rem; }
#live-events-list { list-style: none; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid #333; border-radius: 5px; padding: 10px; }
#live-events-list li { padding: 8px 10px; border-bottom: 1px dashed #444; font-size: 0.95rem; color: #ccc; text-align: left; }
#live-events-list li:last-child { border-bottom: none; }
#live-events-list li strong { color: var(--primary-color); }
#live-events-list li.event-rival { text-align: right; }
#live-events-list::-webkit-scrollbar { width: 6px; }
#live-events-list::-webkit-scrollbar-track { background: #333; border-radius: 3px;}
#live-events-list::-webkit-scrollbar-thumb { background: #666; border-radius: 3px;}
#live-events-list::-webkit-scrollbar-thumb:hover { background: #888; }
.live-match-card.next-match-mode .score-timer { opacity: 0.5; }
.live-match-card.next-match-mode #live-events-list { text-align: center; font-style: italic; color: #aaa; }


/* GALERÍA */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }


/* RESULTS TABLE */
.results-table { width: 100%; border-collapse: collapse; text-align: center; }
.results-table th, .results-table td { padding: 15px; }
.results-table th { font-family: var(--font-title); text-transform: uppercase; }
.bg-dark .results-table th, .bg-dark .results-table td { border-bottom: 1px solid #444; }
.section:not(.bg-dark) .results-table th, .section:not(.bg-dark) .results-table td { border-bottom: 1px solid #ddd; }
.results-table.light th, .results-table.light td { border-bottom: 1px solid #ddd; color: var(--text-dark); }
.results-table.light th { color: #555; }
.results-table.light .date-separator td { background-color: #eee; color: var(--text-dark); }
.results-table .win { color: #4caf50; font-weight: 700; }
.results-table .loss { color: #f44336; font-weight: 700; }
.results-table .draw { color: #ffc107; font-weight: 700; }

/* CONTACT */
.contact-info li { margin-bottom: 10px; }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; border-radius: 5px; }
/* Inputs en sección CLARA dentro de .card.light */
.section:not(.bg-dark) .card.light .contact-form input[type="text"],
.section:not(.bg-dark) .card.light .contact-form input[type="email"],
.section:not(.bg-dark) .card.light .contact-form textarea {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: var(--text-dark) !important;
}
/* Inputs en sección OSCURA dentro de .card (oscuro por defecto) */
.bg-dark .card .contact-form input[type="text"],
.bg-dark .card .contact-form input[type="email"],
.bg-dark .card .contact-form textarea {
    background-color: #333 !important;
    border: 1px solid #555 !important;
    color: var(--text-light) !important;
}


/* FOOTER */
.site-footer { background-color: var(--dark-bg); color: #777; padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* MODAL */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.85); z-index:99999 }
.modal-content{ position:relative; max-width:90%; max-height:90% }
.modal-content img{ width:auto; height:auto; max-width: 100%; max-height: 100%; border-radius:8px }
.modal-close{ position:absolute; right:-15px; top:-15px; background:var(--primary-color); border:0; color:var(--text-light); width:36px; height:36px; border-radius:50%; cursor:pointer; font-size: 1.2rem; }

/* MODAL LOGIN SOCIOS */
.login-modal-content { max-width: 400px; padding: 30px; background-color: var(--light-bg); color: var(--text-dark); border-radius: 8px; }
.login-modal-content h3 { font-family: var(--font-title); text-align: center; margin-bottom: 20px; }
.login-modal-content .form-group { margin-bottom: 20px; }
.login-modal-content label { display: block; margin-bottom: 5px; font-weight: 700; }
.login-modal-content input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; color: var(--text-dark); background-color: #fff; }
.login-modal-content .btn { width: 100%; }


/* === ESTILOS PARA SOCIOS.HTML === */
body.bg-dark .section, body.bg-dark .card, body.bg-dark .accordion-item, body.bg-dark .results-table, body.bg-dark .filter-btn, body.bg-dark .player-card { color: var(--text-light); }
body.bg-dark .results-table th { color: #bbb; }
body.bg-dark .card.ranking-card { background-color: var(--dark-card); }
body.bg-dark .tournament-title { color: var(--text-light); }
body.bg-dark .filter-btn { border-color: #444; color: #ccc; }
body.bg-dark .player-card { background-color: var(--dark-card); }
body.bg-dark .player-number { border-color: var(--dark-card); }

.socios-main { padding-top: 80px; }
.logout-link { border: 2px solid var(--primary-color); }
.logout-link:hover { background-color: var(--primary-color) !important; }
.ranking-card h3 { text-align: center; border-bottom: 1px solid #444; padding-bottom: 10px; margin-bottom: 20px; }
.ranking-list { list-style: decimal inside; padding-left: 0; }
.ranking-list li { display: flex; justify-content: space-between; padding: 10px 5px; border-bottom: 1px solid #333; font-size: 1.1rem; }
.ranking-list li::marker { color: var(--primary-color); font-weight: 700; padding-right: 10px; }
.ranking-list li:last-child { border-bottom: none; }
.ranking-list .goals { font-weight: 700; color: var(--primary-color); }
.tournament-block { margin-bottom: 20px; }
.collapsible-trigger { cursor: pointer; position: relative; transition: margin-bottom 0.4s ease; }
.toggle-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 2rem; font-weight: 400; transition: transform 0.4s ease; }
.collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.tournament-block.expanded .collapsible-content { max-height: 4000px; transition: max-height 1s ease-in; }
.tournament-block.expanded .toggle-icon { transform: translateY(-50%) rotate(45deg); }
.tournament-block.expanded .collapsible-trigger { margin-bottom: 20px; }
.tournament-title { font-family: var(--font-title); font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); text-align: center; }
.table-wrapper { overflow-x: auto; }
.date-separator td { background-color: #2a2a2a; color: var(--text-light); font-family: var(--font-title); font-weight: 700; text-align: center !important; padding: 8px !important; }
.match-row td { padding: 12px 15px !important; }
.match-row td:first-child { font-weight: 700; }

/* === ESTILOS PARA BOTÓN 'VER TODOS' GOLEADORES === */
.show-all-container { text-align: center; margin-top: 15px; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; font-weight: normal; }
.ranking-list.show-all + .show-all-container .show-all-scorers { display: none; }
.ranking-list:not(.show-all) + .show-all-container .hide-scorers { display: none; }


/* === ESTILOS PARA SECCIÓN JUGADORES (socios.html) === */
.filter-controls { text-align: center; margin-bottom: 40px; }
.filter-btn { background: none; border: 1px solid #444; color: #ccc; padding: 10px 20px; margin: 0 5px; border-radius: 20px; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--text-light); }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--text-light); font-weight: 700; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.player-card { background-color: var(--dark-card); border-radius: 10px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; color: var(--text-light); }
.player-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.player-photo { width: 100%; padding-top: 100%; background-size: cover; background-position: center; border-bottom: 3px solid var(--primary-color); }
.player-info { padding: 20px 15px; position: relative; }
.player-number { position: absolute; top: -25px; right: 15px; width: 50px; height: 50px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 1.5rem; font-weight: 900; color: var(--text-light); border: 3px solid var(--dark-card); }
.player-name { font-family: var(--font-title); font-size: 1.3rem; margin: 0; }
.player-category { color: #aaa; font-size: 0.9rem; margin-top: 5px; }
.category-separator { grid-column: 1 / -1; text-align: center; margin: 40px 0 20px 0; }
.category-separator h3 { font-family: var(--font-title); font-size: 1.8rem; color: var(--primary-color); padding-bottom: 10px; border-bottom: 2px solid #333; display: inline-block; margin: 0; }

/* Efecto de parpadeo suave en el marcador */
.blink-score {
  animation: blinkScore 0.8s ease-in-out alternate;
  animation-iteration-count: 6; /* Parpadea unas 3 veces */
}

@keyframes blinkScore {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.3; transform: scale(1.1); }
}

/* === ESTILOS NUEVA SECCIÓN DISCIPLINAS === */
.discipline-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}
.tab-btn {
    background-color: #f4f4f4;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px 8px 0 0;
}
.tab-btn:hover {
    background-color: #eee;
}
.tab-btn.active {
    background-color: var(--light-bg);
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-dark);
}
.tab-icon {
    height: 30px;
    width: 30px;
    opacity: 0.7;
}
.tab-btn.active .tab-icon {
    opacity: 1;
}
.discipline-content-wrapper {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
.tab-content h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.tab-content > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}
.tab-content .accordion {
    margin-top: 20px;
}
.activity-info {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
    font-size: 1.05rem;
}
.activity-info li {
    margin-bottom: 8px;
    color: #444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === ESTILOS PARA NOTICIAS DINÁMICAS (BADGES) === */
.news-card {
    position: relative; /* Necesario para la etiqueta */
}
.card-badge {
    position: absolute;
    top: 15px;
    left: -8px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.card-badge.badge-patin {
    background-color: #3498db; /* Azul para Patín */
}
.card-badge.badge-taekwondo {
    background-color: #27ae60; /* Verde para Taekwondo */
}
.card-badge.badge-general {
    background-color: #7f8c8d; /* Gris para General */
}

/* === ESTILOS PARA GALERÍA (index.html y galeria.html) === */

/* Estilos para los filtros (Usados en galeria.html y socios.html) */
.filter-controls {
    text-align: center;
    margin-bottom: 40px;
}
.filter-controls .filter-btn {
    background: none;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
/* Filtros en fondo claro (galeria.html) */
.filter-controls:not(.light) .filter-btn {
    border-color: #ccc;
    color: #555;
}
/* Filtros en fondo oscuro (socios.html) */
.filter-controls.light .filter-btn {
    border-color: #444;
    color: #ccc;
}
.filter-controls .filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.filter-controls .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 700;
}

/* Ajuste para las imágenes de la galería (en index.html) */
.gallery-grid img {
    height: 250px; 
    width: 100%;
    object-fit: cover;
}

/* === ESTILO PARA PÁGINA GALERÍA === */
.galeria-main {
    padding-top: 80px; /* Igual que socios-main */
}

/* Contenedor de bloques (galeria.html) */
.gallery-container-categorized {
    width: 100%;
}

/* Bloque de categoría (2012, Patin, etc.) */
.gallery-category-block {
    margin-bottom: 40px;
    /* Por defecto están ocultos hasta que el filtro los muestre */
    display: none; 
}
.gallery-category-block.visible {
    display: block; /* El JS usa esto para mostrarlos */
}

/* Separador de categorías (h3) */
.gallery-category-separator {
    grid-column: 1 / -1; 
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.gallery-category-block:first-of-type .gallery-category-separator {
    margin-top: 0; /* El primer título no necesita tanto margen */
}

/* Grid de imágenes DENTRO de un bloque de categoría */
.gallery-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
/* Las imágenes dentro de este grid */
.gallery-image-grid img {
    height: 250px; 
    width: 100%;
    object-fit: cover;
}

/* En RESPONSIVE, asegurate de tener esto para el nuevo grid */
@media (max-width: 768px) {
    .gallery-image-grid {
        grid-template-columns: 1fr;
    }
}

/* === ESTILOS NUEVA SECCIÓN DISCIPLINAS (index.html) === */
.discipline-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}
.tab-btn {
    background-color: #f4f4f4;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px 8px 0 0;
}
.tab-btn:hover {
    background-color: #eee;
}
.tab-btn.active {
    background-color: var(--light-bg);
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-dark);
}
.tab-icon {
    height: 30px;
    width: 30px;
    opacity: 0.7;
}
.tab-btn.active .tab-icon {
    opacity: 1;
}
.discipline-content-wrapper {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
.tab-content h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.tab-content > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}
.tab-content .accordion {
    margin-top: 20px;
}
.activity-info {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
    font-size: 1.05rem;
}
.activity-info li {
    margin-bottom: 8px;
    color: #444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === ESTILOS PARA NOTICIAS DINÁMICAS (BADGES) === */
.news-card {
    position: relative; 
}
.card-badge {
    position: absolute;
    top: 15px;
    left: -8px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.card-badge.badge-patin {
    background-color: #3498db; /* Azul para Patín */
}
.card-badge.badge-taekwondo {
    background-color: #27ae60; /* Verde para Taekwondo */
}
.card-badge.badge-general {
    background-color: #7f8c8d; /* Gris para General */
}

/* === ESTILOS PARA FILTROS (galeria.html y socios.html) === */
.filter-controls {
    text-align: center;
    margin-bottom: 40px;
}
.filter-controls .filter-btn {
    background: none;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
/* Filtros en fondo claro (galeria.html) */
.filter-controls:not(.light) .filter-btn {
    border-color: #ccc;
    color: #555;
}
/* Filtros en fondo oscuro (socios.html) */
.filter-controls.light .filter-btn {
    border-color: #444;
    color: #ccc;
}
.filter-controls .filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.filter-controls .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 700;
}


/* === ESTILOS PARA PÁGINA GALERÍA (galeria.html) === */
.galeria-main {
    padding-top: 80px; 
}

/* Contenedor de bloques (galeria.html) */
.gallery-container-categorized {
    width: 100%;
}

/* Bloque de categoría (2012, Patin, etc.) */
.gallery-category-block {
    margin-bottom: 40px;
    display: none; /* Por defecto, el JS los activa */
}

/* Separador de categorías (h3) */
.gallery-category-separator {
    grid-column: 1 / -1; 
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.gallery-category-block:first-of-type .gallery-category-separator {
    margin-top: 0; 
}

/* Grid de imágenes DENTRO de un bloque de categoría */
.gallery-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
/* Las imágenes dentro de este grid (heredan .gallery-item de la grilla principal) */
.gallery-image-grid .gallery-item img {
    height: 250px; 
    width: 100%;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.5rem; }
  .grid-2-cols, .grid-3-cols, .gallery-grid { grid-template-columns: 1fr; }
  .match-teams { font-size: 1.3rem; }
  .match-info { font-size: 1rem; }
  .slider-btn { display: none; }
  .nav-links { display: none; position: fixed; top: 71px; right: 0; width: 250px; height: 100vh; background-color: var(--dark-bg); flex-direction: column; padding-top: 20px; gap: 0; }
  .nav-links.show { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 20px; border-radius: 0; border-bottom: 1px solid #333; }
  .nav-toggle { display: block; }
  .category-separator h3 { font-size: 1.5rem; }
  .live-score { flex-direction: column; gap: 15px; }
  .score-timer { order: -1; }
}