/* =============================================================================
   ARCHIVO: assets/style.css - Estilos principales
   ============================================================================= */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Container principal */
.container {
    min-height: 100vh;
    background: white;
}

/* =============================================================================
   HEADER Y NAVEGACIÓN
   ============================================================================= */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8em;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95em;
}

/* Navegación */
.nav {
    background: #2c3e50;
    padding: 0;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: background 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #34495e;
}

.nav-link.active {
    background: #3498db;
}

/* Right-aligned item in nav */
.nav .nav-right {
    margin-left: auto;
}

/* =============================================================================
   CONTENIDO PRINCIPAL
   ============================================================================= */

.main {
    padding: 30px 40px;
    min-height: calc(100vh - 120px);
}

/* Sections */
.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

/* =============================================================================
   FORMULARIOS
   ============================================================================= */

.form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* =============================================================================
   BOTONES
   ============================================================================= */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-info {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   TABLAS
   ============================================================================= */

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.table thead {
    background: #fae56f;
    color: white;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}
    
.table tbody tr.row-warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

/* Filas de socios inactivos */
.table tbody tr.row-inactive {
    opacity: 0.6;
    background-color: #f4f6f7;
}

/* =============================================================================
   BADGES Y ETIQUETAS
   ============================================================================= */

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-info {
    background: #1abc9c;
    color: white;
}

/* =============================================================================
   ALERTAS
   ============================================================================= */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* =============================================================================
   ESTADÍSTICAS
   ============================================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1em;
    font-weight: 500;
}

/* =============================================================================
   MODALES
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-large {
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

/* =============================================================================
   FILTROS
   ============================================================================= */

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filters .form-control {
    margin-bottom: 0;
}

/* =============================================================================
   UTILIDADES
   ============================================================================= */

.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #27ae60 !important;
}

.text-warning {
    color: #f39c12 !important;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* =============================================================================
   ELEMENTOS ESPECÍFICOS
   ============================================================================= */

/* Game info display */
.game-info {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #4caf50;
    font-size: 14px;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Socio detalle */
.socio-detalle {
    margin-top: 20px;
}

.info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* Code styling */
code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .main {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters .form-control {
        max-width: none !important;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4em;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table th,
    .table td {
        padding: 6px 8px;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .header,
    .nav,
    .btn,
    .modal {
        display: none !important;
    }
    
    .main {
        padding: 0;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .badge {
        border: 1px solid #333;
    }
}

/* =============================================================================
   ANIMACIONES ADICIONALES
   ============================================================================= */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hover effects para tarjetas */
.section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
}

/* Focus visible para accesibilidad */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.badge

/* Extra badge variants */
.badge-secondary {
    background: #95a5a6;
    color: white;
}

/* =============================================================================
   ARCHIVO: assets/style.css - Estilos principales
   ============================================================================= */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Container principal */
.container {
    min-height: 100vh;
    background: white;
}

/* =============================================================================
   HEADER Y NAVEGACIÓN
   ============================================================================= */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8em;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95em;
}

/* Navegación */
.nav {
    background: #2c3e50;
    padding: 0;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: background 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #34495e;
}

.nav-link.active {
    background: #3498db;
}

/* Right-aligned item in nav */
.nav .nav-right {
    margin-left: auto;
}

/* =============================================================================
   CONTENIDO PRINCIPAL
   ============================================================================= */

.main {
    padding: 30px 40px;
    min-height: calc(100vh - 120px);
}

/* Sections */
.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

/* =============================================================================
   FORMULARIOS
   ============================================================================= */

.form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* =============================================================================
   BOTONES
   ============================================================================= */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-info {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   TABLAS
   ============================================================================= */

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.table thead {
    background: #fae56f;
    color: white;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}
    
.table tbody tr.row-warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

/* Filas de socios inactivos */
.table tbody tr.row-inactive {
    opacity: 0.6;
    background-color: #f4f6f7;
}

/* =============================================================================
   BADGES Y ETIQUETAS
   ============================================================================= */

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #3498db;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

/* ... (contenido original omitido para brevedad en esta inserción; el archivo completo conserva el contenido existente) ... */

/* Ajustes de elementos varios */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

.logo, .logo img {
    max-width: 100%;
    height: auto;
}

/* Mejoras de scroll táctil */
.nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Utilidades de visibilidad */
.show-mobile { display: none !important; }
.hide-mobile { display: initial !important; }

/* Breakpoint tablet */
@media (max-width: 992px) {
    .header { padding: 16px 20px; }
    .nav-link { padding: 12px 16px; font-size: 0.95em; }
    .main { padding: 20px; }
}

/* =============================================================================
   RESPONSIVE DESIGN
   (Se mantienen las reglas existentes y se añaden mejoras específicas)
   ============================================================================= */

@media (max-width: 768px) {
    /* Mantener columnas, pero permitir wrap y scroll si hay muchos items */
    .nav { flex-wrap: wrap; }
    .nav-link { padding: 12px 14px; }

    /* Asegurar que tablas grandes puedan desplazarse dentro del contenedor */
    .table { min-width: 600px; }

    /* Botones que deban ocupar todo el ancho en móvil */
    .btn-full-mobile { width: 100%; }

    /* Ajustes de formularios */
    .form { max-width: 100%; }
}

@media (max-width: 480px) {
    .show-mobile { display: initial !important; }
    .hide-mobile { display: none !important; }

    .section { padding: 16px; }
    .form-control { padding: 10px 12px; font-size: 15px; }
    .btn { width: 100%; padding: 12px 16px; }

    /* Tablas aún más compactas en pantallas muy estrechas */
    .table { min-width: 520px; font-size: 12px; }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .header,
    .nav,
    .btn,
    .modal {
        display: none !important;
    }
    
    .main {
        padding: 0;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .badge {
        border: 1px solid #333;
    }
}

/* =============================================================================
   ANIMACIONES ADICIONALES
   ============================================================================= */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hover effects para tarjetas */
.section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
}

/* Focus visible para accesibilidad */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Extra badge variants */
.badge-secondary {
    background: #95a5a6;
    color: white;
}
