/* Estilos personalizados para Registro Memorial Cuba */

/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables CSS */
:root {
    --primary-color: #1e3a8a; /* Azul más oscuro */
    --primary-dark: #1e293b; /* Azul oscuro */
    --secondary-color: #475569; /* Gris más oscuro */
    --success-color: #059669; /* Verde más oscuro */
    --warning-color: #d97706; /* Naranja más oscuro */
    --danger-color: #dc2626; /* Rojo más oscuro */
    --light-bg: #0f172a; /* Fondo más oscuro */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;

    /* Colores de la bandera cubana */
    --cuba-blue: #002a8f;
    --cuba-white: #ffffff;
    --cuba-red: #cc0000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    margin: 0;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Elementos decorativos de la bandera cubana */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, var(--cuba-blue) 48%, var(--cuba-blue) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--cuba-white) 48%, var(--cuba-white) 52%, transparent 52%);
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--cuba-red) 20%, transparent 70%);
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(15px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red)) 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 42, 143, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(204, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cuba-white), transparent);
    opacity: 0.3;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--cuba-white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    z-index: 2;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: var(--cuba-white) !important;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(1px);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
    font-weight: 600;
    color: #cbd5e1 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.nav-link:hover {
    color: var(--cuba-white) !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    color: var(--cuba-white) !important;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 42, 143, 0.8), rgba(204, 0, 0, 0.8));
    box-shadow: 0 2px 10px rgba(0, 42, 143, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--cuba-white);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Animación de entrada para el navbar */
.navbar {
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .navbar-nav {
        padding: 0 1rem;
    }

    .nav-link {
        margin: 0.25rem 0;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red)) 1;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cuba-blue);
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
    margin: 0;
}

.cta-button {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 42, 143, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 42, 143, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::after {
    content: "→";
    transition: var(--transition);
}

.cta-button:hover::after {
    transform: translateX(3px);
}

/* Form Section */
.form-container {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon points="0,0 100,0 50,20" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 10px;
    background-repeat: repeat-x;
    opacity: 0.3;
}

.form-header h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.form-body {
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.8);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
}

.form-control:focus {
    border-color: var(--cuba-blue);
    box-shadow: 0 0 0 3px rgba(0, 42, 143, 0.1);
    background: rgba(30, 41, 59, 0.9);
    outline: none;
    color: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: rgba(220, 38, 38, 0.1);
}

.captcha-section {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    position: relative;
}

.captcha-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red));
    border-radius: 4px 0 0 4px;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-submit {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 42, 143, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 42, 143, 0.4);
    color: white;
}

.btn-submit:hover::before {
    left: 100%;
}

/* Success Page */
.success-container {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 1s ease-out;
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 2rem;
    animation: bounceIn 1s ease-out;
    position: relative;
    z-index: 1;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.success-message {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-custom {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: rgba(71, 85, 105, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Botón especial para lista memorial */
.btn-cuba-list {
    background: linear-gradient(135deg, rgba(0, 42, 143, 0.9), rgba(204, 0, 0, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 42, 143, 0.4);
    animation: fadeInUp 1s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
}

.btn-cuba-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-cuba-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 42, 143, 0.6);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
}

.btn-cuba-list:hover::before {
    left: 100%;
}

/* Admin Panel */
.admin-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.admin-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.search-section {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
}

.search-input:focus {
    border-color: var(--cuba-blue);
    box-shadow: 0 0 0 3px rgba(0, 42, 143, 0.1);
    outline: none;
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
}

.search-input::placeholder {
    color: #94a3b8;
}

.btn-search {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 42, 143, 0.3);
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--cuba-red), var(--cuba-blue));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 42, 143, 0.4);
}

.table-container {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container .table {
    margin: 0;
    background: transparent;
}

.table-container .table thead th {
    background: rgba(30, 41, 59, 0.9) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #ffffff !important;
    padding: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.table-container .table tbody tr {
    background: rgba(15, 23, 42, 0.9) !important;
}

.table-container .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    color: #f1f5f9 !important;
    font-weight: 500;
    background: transparent !important;
}

.table-container .table tbody tr:hover {
    background: rgba(51, 65, 85, 0.5) !important;
}

.table-container .table tbody tr:hover td {
    color: #ffffff !important;
    font-weight: 600;
}

.table-container .table code {
    background: rgba(0, 42, 143, 0.3);
    color: #93c5fd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.btn-danger-custom {
    background: var(--danger-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-danger-custom:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

/* Pagination */
.pagination-container {
    margin-top: 2rem;
}

.pagination {
    justify-content: center;
}

.page-link {
    color: #e2e8f0;
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px !important;
    margin: 0 2px;
    transition: var(--transition);
    font-weight: 500;
}

.page-link:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    border-color: var(--cuba-blue);
    color: white;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
    color: #94a3b8;
}

.footer-content {
    text-align: center;
}

.footer-text {
    margin: 0;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .form-body {
        padding: 2rem 1.5rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-group .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Tabla con scroll horizontal para móvil */
    .table-container {
        background: rgba(15, 23, 42, 0.9);
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        width: 100%;
        display: block;
    }

    .table {
        width: 100%;
        margin-bottom: 0;
        background: transparent !important;
        border-collapse: collapse;
        min-width: 800px; /* Forzar ancho mínimo para activar scroll */
    }

    .table thead {
        display: table-header-group;
    }

    .table tbody {
        display: table-row-group;
    }

    .table tbody tr {
        display: table-row;
        background: transparent !important;
        border: none;
        box-shadow: none;
    }

    .table tbody tr:hover {
        background: rgba(51, 65, 85, 0.5) !important;
        transform: none;
        box-shadow: none;
    }

    .table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(30, 41, 59, 0.95) !important;
        white-space: nowrap;
    }

    .table tbody td {
        display: table-cell;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        background: transparent !important;
        color: #e2e8f0 !important;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .table tbody td::before {
        display: none;
    }

    /* Ajustes específicos para columnas */
    .table td[data-label="Carnet"] {
        background: transparent !important;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: flex-start;
    }

    .table td[data-label="Carnet"] code {
        font-size: 0.9rem;
        background: rgba(0, 42, 143, 0.3);
        border: 1px solid rgba(147, 197, 253, 0.3);
        padding: 0.25rem 0.5rem;
        box-shadow: none;
    }

    .table td[data-label="Nombre"],
    .table td[data-label="Apellidos"] {
        font-size: 0.9rem;
        font-weight: normal;
    }

    .table td[data-label="Provincia"] {
        color: #e2e8f0 !important;
    }

    /* Scrollbar personalizado para la tabla */
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.5);
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .form-header h4 {
        font-size: 1.5rem;
    }

    .admin-title {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--cuba-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow);
    animation: slideInUp 0.5s ease-out;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #86efac;
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-left: 4px solid var(--primary-color);
}

/* Elementos decorativos adicionales de la bandera cubana */
.success-container::after {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Estilos específicos para tabla de admin */
.table-admin {
    font-size: 0.75rem;
    table-layout: fixed;
    width: 100%;
}

.table-admin thead th {
    padding: 0.7rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
}

.table-admin tbody td {
    padding: 0.7rem 0.4rem;
    vertical-align: middle;
    font-weight: 500;
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.75rem;
}

.table-admin tbody tr:nth-child(even) td {
    background: rgba(51, 65, 85, 0.95);
}

.table-admin tbody tr:hover td {
    background: rgba(71, 85, 105, 0.9);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Anchos específicos para columnas de admin - ajustados para caber sin scroll */
.table-admin th:nth-child(1), .table-admin td:nth-child(1) { width: 9%; } /* DNI */
.table-admin th:nth-child(2), .table-admin td:nth-child(2) { width: 7%; } /* Nombre */
.table-admin th:nth-child(3), .table-admin td:nth-child(3) { width: 11%; } /* Apellidos */
.table-admin th:nth-child(4), .table-admin td:nth-child(4) { width: 8%; } /* Fecha Nac */
.table-admin th:nth-child(5), .table-admin td:nth-child(5) { width: 9%; } /* Fecha Fall */
.table-admin th:nth-child(6), .table-admin td:nth-child(6) { width: 8%; } /* Provincia */
.table-admin th:nth-child(7), .table-admin td:nth-child(7) { width: 10%; } /* Teléfono */
.table-admin th:nth-child(8), .table-admin td:nth-child(8) { width: 12%; } /* IP */
.table-admin th:nth-child(9), .table-admin td:nth-child(9) { width: 6%; } /* Estado */
.table-admin th:nth-child(10), .table-admin td:nth-child(10) { width: 8%; } /* Fecha Reg */
.table-admin th:nth-child(11), .table-admin td:nth-child(11) { width: 15%; } /* Acciones */

.table-admin code {
    font-size: 0.65rem;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.table-admin .btn-danger-custom {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}

.table-admin .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}

.table-admin .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Ocultar barra de scroll horizontal en tablas admin */
.table-responsive::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

.table-responsive {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.table-container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.table-container::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

/* Admin Login Styles */
.admin-login-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--cuba-blue), var(--cuba-white), var(--cuba-red)) 1;
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

.admin-login-header {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon points="0,0 100,0 50,20" fill="white" opacity="0.1"/></svg>');
    background-size: 60px 12px;
    background-repeat: repeat-x;
    opacity: 0.3;
}

.admin-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.admin-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.admin-login-body {
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.95);
    position: relative;
    z-index: 2;
}

.admin-login-form {
    position: relative;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-label-admin {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 0.95rem;
}

.input-group-text {
    background: rgba(51, 65, 85, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-right: none;
}

.form-control-admin {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
}

.form-control-admin:focus {
    border-color: var(--cuba-blue);
    box-shadow: 0 0 0 3px rgba(0, 42, 143, 0.1);
    background: rgba(30, 41, 59, 0.9);
    outline: none;
    color: #ffffff;
}

.form-control-admin::placeholder {
    color: #94a3b8;
}

.btn-admin-login {
    background: linear-gradient(135deg, var(--cuba-blue), var(--cuba-red));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 42, 143, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-admin-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-admin-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 42, 143, 0.4);
    color: white;
}

.btn-admin-login:hover::before {
    left: 100%;
}

.btn-admin-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.admin-login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-admin {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.5s ease-out;
}

.alert-admin ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-admin li {
    margin-bottom: 0.25rem;
}

.alert-admin li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for admin login */
@media (max-width: 576px) {
    .admin-login-container {
        margin: 1rem;
        border-radius: 12px;
    }

    .admin-login-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .admin-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .admin-title {
        font-size: 1.5rem;
    }

    .admin-subtitle {
        font-size: 0.9rem;
    }

    .admin-login-body {
        padding: 2rem 1.5rem;
    }
}