/*
Theme Name: Federación Argentina de Karate (FAK) Oficial
Theme URI: http://www.karatefak.com.ar/
Author: FAK Digital Team
Author URI: http://www.karatefak.com.ar/
Description: Tema oficial moderno y modular para la Federación Argentina de Karate (FAK). Optimizado para WordPress, compatible con Elementor, Gutenberg y dispositivos móviles. Incluye buscador dinámico de Dojos y Federaciones Provinciales, calendario de torneos, noticias categorizadas y accesos institucionales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fak-karate
Tags: sports, federation, karate, responsive-layout, custom-menu, custom-logo, featured-images
*/

:root {
    --fak-navy: #0A192F;
    --fak-navy-light: #112240;
    --fak-celeste: #38BDF8;
    --fak-celeste-dark: #0284C7;
    --fak-red: #DC2626;
    --fak-red-hover: #B91C1C;
    --fak-gold: #D97706;
    --fak-gold-light: #F59E0B;
    --fak-white: #FFFFFF;
    --fak-bg-light: #F8FAFC;
    --fak-border: #E2E8F0;
    --fak-text-dark: #0F172A;
    --fak-text-muted: #475569;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 25, 47, 0.12);
    --shadow-lg: 0 12px 32px rgba(10, 25, 47, 0.18);
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--fak-text-dark);
    background-color: var(--fak-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.fak-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Institutional Bar */
.fak-topbar {
    background-color: #060F1E;
    color: #CBD5E1;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fak-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fak-affiliations span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-weight: 500;
}

.fak-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--fak-celeste);
}

/* Header & Navigation */
.fak-header {
    background-color: var(--fak-navy);
    color: var(--fak-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.fak-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
}

.fak-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fak-logo-svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.fak-brand-text {
    display: flex;
    flex-direction: column;
}

.fak-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--fak-white);
}

.fak-brand-sub {
    font-size: 0.72rem;
    color: var(--fak-celeste);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.fak-nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.fak-nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E2E8F0;
    padding: 6px 0;
    position: relative;
}

.fak-nav-list a:hover {
    color: var(--fak-celeste);
}

.fak-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--fak-celeste);
    transition: width 0.25s ease;
}

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

.fak-btn-portal {
    background-color: var(--fak-red);
    color: var(--fak-white) !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.fak-btn-portal:hover {
    background-color: var(--fak-red-hover);
    transform: translateY(-1px);
}

.fak-btn-portal::after {
    display: none !important;
}

.fak-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.fak-hero {
    background: linear-gradient(135deg, var(--fak-navy) 0%, #0F294A 55%, #0C3B66 100%);
    color: var(--fak-white);
    padding: 85px 0 110px;
    position: relative;
    overflow: hidden;
}

.fak-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.fak-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
}

.fak-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--fak-celeste);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.fak-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.fak-hero h1 span {
    color: var(--fak-celeste);
}

.fak-hero p {
    font-size: 1.08rem;
    color: #CBD5E1;
    margin-bottom: 30px;
    max-width: 600px;
}

.fak-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fak-btn-primary {
    background-color: var(--fak-celeste);
    color: var(--fak-navy);
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fak-btn-primary:hover {
    background-color: #7DD3FC;
    transform: translateY(-2px);
}

.fak-btn-outline {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.28);
    color: var(--fak-white);
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.fak-btn-outline:hover {
    background-color: rgba(255,255,255,0.14);
    border-color: var(--fak-celeste);
}

.fak-hero-card {
    background: rgba(17, 34, 64, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.fak-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fak-tag-gold {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fak-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.fak-stat-box {
    background: rgba(6, 15, 30, 0.55);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

.fak-stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fak-celeste);
}

.fak-stat-label {
    font-size: 0.76rem;
    color: #94A3B8;
}

/* Quick Access Cards */
.fak-quick-section {
    margin-top: -54px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.fak-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fak-quick-card {
    background: var(--fak-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--fak-celeste);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fak-quick-card:nth-child(2) { border-top-color: var(--fak-red); }
.fak-quick-card:nth-child(3) { border-top-color: var(--fak-gold); }
.fak-quick-card:nth-child(4) { border-top-color: var(--fak-navy); }

.fak-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.fak-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--fak-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.fak-quick-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--fak-navy);
}

.fak-quick-card p {
    font-size: 0.85rem;
    color: var(--fak-text-muted);
    margin-bottom: 12px;
}

.fak-quick-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fak-celeste-dark);
}

/* Section Headers */
.fak-section {
    padding: 70px 0;
}

.fak-section-alt {
    background-color: var(--fak-white);
    border-top: 1px solid var(--fak-border);
    border-bottom: 1px solid var(--fak-border);
}

.fak-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.fak-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--fak-red);
    margin-bottom: 6px;
}

.fak-section-title {
    font-size: 2rem;
    color: var(--fak-navy);
}

/* Dojo Finder */
.fak-finder-box {
    background: var(--fak-white);
    border: 1px solid var(--fak-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.fak-finder-controls {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 14px;
}

.fak-input, .fak-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--fak-text-dark);
    background-color: #F8FAFC;
}

.fak-input:focus, .fak-select:focus {
    outline: none;
    border-color: var(--fak-celeste-dark);
    background-color: var(--fak-white);
}

.fak-dojo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fak-dojo-card {
    background: var(--fak-white);
    border: 1px solid var(--fak-border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all 0.2s ease;
}

.fak-dojo-card:hover {
    border-color: var(--fak-celeste);
    box-shadow: var(--shadow-md);
}

.fak-dojo-prov {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 5px;
    background: #E0F2FE;
    color: #0369A1;
    margin-bottom: 10px;
}

.fak-dojo-card h4 {
    font-size: 1.08rem;
    color: var(--fak-navy);
    margin-bottom: 8px;
}

.fak-dojo-meta {
    font-size: 0.85rem;
    color: var(--fak-text-muted);
    margin-bottom: 4px;
}

/* News & Calendar */
.fak-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fak-tab-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--fak-border);
    background: var(--fak-white);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--fak-text-muted);
    cursor: pointer;
}

.fak-tab-btn.active, .fak-tab-btn:hover {
    background: var(--fak-navy);
    color: var(--fak-white);
    border-color: var(--fak-navy);
}

.fak-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fak-news-card {
    background: var(--fak-bg-light);
    border: 1px solid var(--fak-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fak-news-banner {
    height: 150px;
    background: linear-gradient(135deg, var(--fak-navy), #1E3A8A);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.fak-news-cat {
    align-self: flex-start;
    background: var(--fak-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fak-news-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fak-news-body h3 {
    font-size: 1.08rem;
    color: var(--fak-navy);
    margin-bottom: 10px;
}

.fak-news-body p {
    font-size: 0.88rem;
    color: var(--fak-text-muted);
    margin-bottom: 16px;
}

/* Calendar Table */
.fak-table-wrap {
    overflow-x: auto;
    background: var(--fak-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--fak-border);
    box-shadow: var(--shadow-sm);
}

.fak-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.fak-table th {
    background: var(--fak-navy);
    color: var(--fak-white);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 18px;
}

.fak-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--fak-border);
    font-size: 0.9rem;
}

.fak-table tr:last-child td {
    border-bottom: none;
}

.fak-status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-open { background: #DCFCE7; color: #166534; }
.status-upcoming { background: #E0F2FE; color: #075985; }
.status-intl { background: #FEF3C7; color: #92400E; }

/* Institutional & Footer */
.fak-inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.fak-inst-box {
    background: var(--fak-navy);
    color: var(--fak-white);
    padding: 36px;
    border-radius: var(--radius-lg);
}

.fak-inst-box h3 {
    color: var(--fak-celeste);
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.fak-inst-list {
    list-style: none;
    margin-top: 18px;
}

.fak-inst-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.92rem;
    color: #E2E8F0;
}

.fak-footer {
    background-color: #060F1E;
    color: #94A3B8;
    padding: 60px 0 28px;
    font-size: 0.88rem;
}

.fak-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fak-footer h4 {
    color: var(--fak-white);
    font-size: 0.98rem;
    margin-bottom: 16px;
}

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

.fak-footer ul li {
    margin-bottom: 9px;
}

.fak-footer ul a:hover {
    color: var(--fak-celeste);
}

.fak-footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

/* Modal */
.fak-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 30, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.fak-modal-backdrop.open {
    display: flex;
}

.fak-modal {
    background: var(--fak-white);
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.fak-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--fak-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .fak-hero-grid, .fak-inst-grid { grid-template-columns: 1fr; }
    .fak-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .fak-dojo-grid, .fak-news-grid { grid-template-columns: repeat(2, 1fr); }
    .fak-finder-controls { grid-template-columns: 1fr 1fr; }
    .fak-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .fak-mobile-toggle { display: block; }
    .fak-nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: var(--fak-navy);
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .fak-nav-list.active { display: flex; }
    .fak-quick-grid, .fak-dojo-grid, .fak-news-grid, .fak-finder-controls, .fak-footer-grid {
        grid-template-columns: 1fr;
    }
    .fak-hero h1 { font-size: 2.15rem; }
}
