@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   SISTEMA DE DISEÑO - TIRO FEDERAL ESQUEL
   ========================================================================== */
:root {
    /* Paleta de Colores */
    --bg-dark-100: #07080a; /* Negro de fondo profundo */
    --bg-dark-200: #0f1115; /* Fondo secundario */
    --bg-dark-300: #181b22; /* Fondo de tarjetas */
    --bg-dark-glass: rgba(15, 17, 21, 0.75);
    
    --gold-accent: #c5a059;   /* Oro / Bronce de precisión */
    --gold-bright: #e5c17e;   /* Oro brillante para hovers */
    --gold-dark: #8c6e35;
    --gold-glow: rgba(197, 160, 89, 0.3);
    
    --green-tactical: #2d5a3e;
    --green-tactical-glow: rgba(45, 90, 62, 0.2);
    
    --text-light-100: #f5f6f8; /* Texto principal */
    --text-light-200: #bec2cf; /* Texto secundario */
    --text-light-300: #7b8092; /* Texto atenuado */
    
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    
    /* Tipografía */
    --font-display: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    /* Efectos y bordes */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-glass: rgba(197, 160, 89, 0.15);
    --border-glass-light: rgba(255, 255, 255, 0.05);
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(197, 160, 89, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reseteo y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Ocultar barra de scroll pero mantener funcionalidad */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-100);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-300);
    border-radius: 4px;
    border: 2px solid var(--bg-dark-100);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-light-100);
    letter-spacing: 1px;
}

/* ==========================================================================
   COMPONENTES DE UTILIDAD Y DISEÑO PREMIUM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }

.glass-card {
    background: rgba(24, 27, 34, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-premium), var(--shadow-gold);
    transform: translateY(-5px);
}

/* Títulos Secciones */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}
.section-title span {
    color: var(--gold-accent);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light-200);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border: 1px solid var(--gold-accent);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}
.btn-primary:hover {
    background: var(--gold-bright);
    color: var(--bg-dark-100);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light-100);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-tactical {
    background: var(--green-tactical);
    color: var(--text-light-100);
    border: 1px solid var(--green-tactical);
    box-shadow: 0 4px 15px rgba(45, 90, 62, 0.2);
}
.btn-tactical:hover {
    background: #39734e;
    box-shadow: 0 6px 20px rgba(45, 90, 62, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}
.main-header.scrolled {
    background: var(--bg-dark-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass-light);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, var(--bg-dark-300) 0%, var(--bg-dark-100) 100%);
    box-shadow: var(--shadow-gold);
}
.logo-icon i {
    color: var(--gold-accent);
    font-size: 1.2rem;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--text-light-100);
}
.logo-text span {
    font-size: 0.8rem;
    display: block;
    color: var(--gold-accent);
    letter-spacing: 2px;
    font-family: var(--font-sans);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light-200);
    padding: 8px 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--gold-accent);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light-100);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, rgba(15, 17, 21, 0.4) 0%, rgba(7, 8, 10, 0.95) 100%), 
                url('../img/hero_bg.png') no-repeat center center/cover;
    overflow: hidden;
}
.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}
.hero-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-accent);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold-accent);
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.hero-title span {
    color: var(--gold-accent);
    display: block;
}
.hero-description {
    font-size: 1.2rem;
    color: var(--text-light-200);
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Decoraciones Visuales de Mira */
.hero-reticle {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 60s linear infinite;
}
.hero-reticle::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.2), transparent);
}
.hero-reticle::after {
    content: '';
    position: absolute;
    height: 120%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.2), transparent);
}
.hero-reticle-inner {
    width: 250px;
    height: 250px;
    border: 2px dashed rgba(197, 160, 89, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-reticle-dot {
    width: 10px;
    height: 10px;
    background: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-accent);
}

@keyframes rotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ==========================================================================
   SECCIÓN HISTORIA
   ========================================================================== */
.history-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.history-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-glass-light);
}
.history-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.8), transparent);
}
.history-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--bg-dark-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    z-index: 2;
}
.history-badge-year {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
}
.history-badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light-200);
}
.history-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold-accent);
}
.history-text p {
    color: var(--text-light-200);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ==========================================================================
   SECCIÓN CATALOGO DE ARMAS
   ========================================================================== */
.weapons-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--bg-dark-300);
    color: var(--text-light-200);
    border: 1px solid var(--border-glass-light);
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border-color: var(--gold-accent);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.weapon-card {
    background: var(--bg-dark-200);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.weapon-card:hover {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-premium), var(--shadow-gold);
    transform: translateY(-8px);
}
.weapon-image {
    position: relative;
    height: 220px;
    background: radial-gradient(circle, var(--bg-dark-300) 0%, var(--bg-dark-100) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.weapon-image img {
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.weapon-card:hover .weapon-image img {
    transform: scale(1.08) rotate(-2deg);
}
.weapon-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-dark-glass);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accent);
    letter-spacing: 1px;
}
.weapon-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.weapon-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}
.weapon-calibre {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.weapon-description {
    color: var(--text-light-200);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.weapon-specs-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-glass-light);
}
.spec-item {
    font-size: 0.8rem;
}
.spec-label {
    color: var(--text-light-300);
    display: block;
}
.spec-val {
    color: var(--text-light-100);
    font-weight: 600;
}
.weapon-details-btn {
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--gold-accent);
    padding: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.weapon-details-btn:hover {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border-color: var(--gold-accent);
}

/* Modales de Ficha de Armas */
.weapon-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}
.weapon-modal.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: var(--bg-dark-200);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-premium), var(--shadow-gold);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.weapon-modal.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-dark-300);
    border: 1px solid var(--border-glass-light);
    color: var(--text-light-100);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition-smooth);
}
.modal-close:hover {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border-color: var(--gold-accent);
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 40px;
}
.modal-weapon-img {
    background: radial-gradient(circle, var(--bg-dark-300) 0%, var(--bg-dark-100) 100%);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-weapon-img img {
    max-height: 350px;
    object-fit: contain;
}
.modal-weapon-info h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--text-light-100);
}
.modal-weapon-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 600;
}
.modal-weapon-desc {
    font-size: 1rem;
    color: var(--text-light-200);
    margin-bottom: 25px;
}
.modal-weapon-history {
    margin-bottom: 30px;
}
.modal-weapon-history h4 {
    font-size: 1.1rem;
    color: var(--gold-accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.modal-weapon-history p {
    font-size: 0.95rem;
    color: var(--text-light-200);
}
.modal-specs-table h4 {
    font-size: 1.1rem;
    color: var(--gold-accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--border-glass-light);
}
.specs-table td {
    padding: 10px 0;
    font-size: 0.9rem;
}
.specs-table td.spec-name {
    color: var(--text-light-300);
    font-weight: 500;
}
.specs-table td.spec-value {
    color: var(--text-light-100);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .modal-layout {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .modal-weapon-img {
        height: 250px;
    }
}

/* ==========================================================================
   SECCIÓN NOTICIAS
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.news-card {
    background: var(--bg-dark-200);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.news-card:hover {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-premium), var(--shadow-gold);
    transform: translateY(-8px);
}
.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.news-card:hover .news-image img {
    transform: scale(1.05);
}
.news-cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
}
.news-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-date {
    font-size: 0.8rem;
    color: var(--text-light-300);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
}
.news-copete {
    color: var(--text-light-200);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.news-read-more:hover {
    color: var(--gold-bright);
}

/* ==========================================================================
   SECCIÓN AGENDA
   ========================================================================== */
.agenda-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.agenda-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: var(--bg-dark-200);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}
.agenda-item:hover {
    border-color: var(--border-glass);
    background: rgba(24, 27, 34, 0.6);
    box-shadow: var(--shadow-gold);
}
.agenda-date-box {
    width: 90px;
    height: 90px;
    border: 2px solid var(--gold-accent);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.05);
}
.agenda-day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
}
.agenda-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light-200);
}
.agenda-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-light-100);
}
.agenda-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light-200);
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.agenda-meta i {
    color: var(--gold-accent);
}
.agenda-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.agenda-badge {
    background: var(--green-tactical-glow);
    border: 1px solid var(--green-tactical);
    color: var(--text-light-100);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .agenda-item {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .agenda-date-box {
        margin: 0 auto;
    }
    .agenda-meta {
        justify-content: center;
    }
    .agenda-action {
        align-items: center;
    }
}

/* ==========================================================================
   SECCIÓN GALERIA
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    border: 1px solid var(--border-glass-light);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light-100);
}
.gallery-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Lightbox de Galería */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.lightbox-close:hover {
    color: var(--gold-accent);
}
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

/* ==========================================================================
   FORMULARIOS DE AUTENTICACION (LOGIN / REGISTRO)
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(15, 17, 21, 0.4) 0%, rgba(7, 8, 10, 0.95) 100%), 
                url('../img/hero_bg.jpg') no-repeat center center/cover;
    padding: 80px 20px 40px;
}
.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border: 1px solid var(--border-glass);
}
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo .logo-icon {
    margin: 0 auto 15px;
}
.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-light-200);
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light-200);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.form-input {
    width: 100%;
    background: rgba(24, 27, 34, 0.6);
    border: 1px solid var(--border-glass-light);
    color: var(--text-light-100);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
    background: rgba(24, 27, 34, 0.8);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light-200);
}
.auth-link a {
    color: var(--gold-accent);
    font-weight: 600;
}
.auth-link a:hover {
    color: var(--gold-bright);
}

.alert-message {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    color: #a3e4d7;
}
.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    color: #fadbd8;
}

/* ==========================================================================
   DASHBOARD SOCIOS & CREDENCIAL VIRTUAL
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Credencial Holográfica / Carnet Digital */
.credential-container {
    perspective: 1000px;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
}
.credential-card {
    position: relative;
    width: 100%;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.credential-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: var(--shadow-premium), 0 0 30px rgba(197, 160, 89, 0.15);
}

/* Frente del Carnet */
.card-front {
    background: linear-gradient(135deg, #13161d 0%, #08090d 100%);
}
.card-front::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: shimmer 8s infinite linear;
}
@keyframes shimmer {
    0% { transform: translate(-30%, -30%) rotate(45deg); }
    100% { transform: translate(30%, 30%) rotate(45deg); }
}

.card-header-tiro {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-club-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light-100);
    line-height: 1.1;
}
.card-club-sub {
    font-size: 0.65rem;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    display: block;
}
.card-logo-mini {
    width: 35px;
    height: 35px;
    border: 1.5px solid var(--gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-logo-mini i {
    color: var(--gold-accent);
    font-size: 0.9rem;
}

.card-body-tiro {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}
.card-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--gold-accent);
    overflow: hidden;
    background: var(--bg-dark-300);
}
.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-details {
    display: flex;
    flex-direction: column;
}
.card-fullname {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light-100);
    line-height: 1.2;
}
.card-number {
    font-size: 0.85rem;
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 3px;
}
.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light-200);
    letter-spacing: 0.5px;
}

.card-footer-tiro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.card-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-activo {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}
.status-pendiente {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}
.status-vencido {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}
.card-signature {
    text-align: right;
}
.card-sig-title {
    font-size: 0.55rem;
    color: var(--text-light-300);
    text-transform: uppercase;
    display: block;
}
.card-sig-val {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--text-light-200);
}

/* Dorso del Carnet */
.card-back {
    background: linear-gradient(135deg, #0b0d12 0%, #13161d 100%);
    transform: rotateY(180deg);
    justify-content: space-between;
}
.card-back-header {
    font-size: 0.8rem;
    color: var(--text-light-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glass-light);
    padding-bottom: 8px;
}
.card-back-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}
.card-back-text {
    font-size: 0.75rem;
    color: var(--text-light-200);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-back-text span strong {
    color: var(--text-light-100);
}
.card-qr-box {
    background: #fff;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-qr-box canvas {
    width: 100% !important;
    height: 100% !important;
}
.card-back-footer {
    font-size: 0.6rem;
    color: var(--text-light-300);
    text-align: center;
    border-top: 1px solid var(--border-glass-light);
    padding-top: 8px;
}

/* Dashboard Info Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.dash-card {
    padding: 20px;
    text-align: center;
}
.dash-card-icon {
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 10px;
}
.dash-card-title {
    font-size: 0.8rem;
    color: var(--text-light-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.dash-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light-100);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--bg-dark-200);
    border-top: 1px solid var(--border-glass-light);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-about .logo {
    margin-bottom: 20px;
}
.footer-about p {
    color: var(--text-light-200);
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-size: 1.1rem;
}
.social-link:hover {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--gold-accent);
    margin-bottom: 25px;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-light-200);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--gold-accent);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 12px;
    color: var(--text-light-200);
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.contact-info i {
    color: var(--gold-accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light-300);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   DISEÑO ADAPTABLE A DISPOSITIVOS MÓVILES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .history-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-section {
        text-align: center;
        justify-content: center;
    }
    .hero-tag {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-reticle {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-dark-200);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: var(--transition-smooth);
    }
    .nav-menu.active {
        right: 0;
    }
}

/* ==========================================================================
   ESTILOS PARA CARRUSEL Y PESTAÑAS (MODAL DE ARMAS DETALLADO)
   ========================================================================== */
.modal-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    background: radial-gradient(circle, var(--bg-dark-300) 0%, var(--bg-dark-100) 100%);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 17, 21, 0.6);
    border: 1px solid var(--border-glass-light);
    color: var(--text-light-100);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-smooth);
}
.carousel-control:hover {
    background: var(--gold-accent);
    color: var(--bg-dark-100);
    border-color: var(--gold-accent);
}
.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.carousel-dot.active {
    background: var(--gold-accent);
    width: 20px;
    border-radius: 4px;
}

/* Pestañas (Tabs) */
.modal-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-glass-light);
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light-200);
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--gold-accent);
}
.tab-btn.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease;
}
.tab-content.active {
    display: block;
}

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