* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header con navegación */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a, .nav-links button {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1em;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-3px) !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #e0e0e0;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero .description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.9s both;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    color: #1e3c72;
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Features Section */
.features {
    background: rgba(0, 0, 0, 0.2);
    padding: 80px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffd700;
}

.feature-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.step-number {
    font-size: 3em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #fff;
}

.step p {
    color: #d0d0d0;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    color: #d0d0d0;
    margin-bottom: 10px;
}

/* Snowflakes Animation */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* ========== ESTILOS PARA FORMULARIOS (REGISTRO/LOGIN) ========== */

.registro-container, .login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    margin: 50px auto;
    animation: slideDown 0.6s ease-out;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo p {
    color: #666;
    font-size: 0.95em;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input.error {
    border-color: #f44336;
}

.email-info {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 5px;
    border-left: 3px solid #2196f3;
}

.email-error {
    font-size: 0.8em;
    color: #c62828;
    margin-top: 5px;
    padding: 8px;
    background: #ffebee;
    border-radius: 5px;
    border-left: 3px solid #f44336;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-requirements {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 5px;
}

.password-requirements ul {
    margin-left: 20px;
    margin-top: 5px;
}

.password-requirements li {
    color: #999;
    transition: color 0.3s ease;
}

.password-requirements li.valid {
    color: #4caf50;
}

.btn-registro, .btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-registro:hover, .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-registro:active, .btn-login:active {
    transform: translateY(-1px);
}

.login-link, .register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95em;
}

.login-link a, .register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover, .register-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    animation: fadeIn 0.5s ease;
}

/* ========== ESTILOS PARA CALENDARIO ========== */

.calendario-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.calendario-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calendario-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.calendario-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Barra de estadísticas */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #e0e0e0;
}

/* Grid del calendario */
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.calendario-day {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendario-day:hover {
    transform: translateY(-5px);
}

.calendario-day.completed {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.calendario-day.available {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.calendario-day.locked {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

.day-number {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.day-icon {
    font-size: 3em;
    margin: 10px 0;
}

.day-status {
    font-size: 0.9em;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.day-title {
    font-size: 1em;
    color: #fff;
    margin: 10px 0;
    font-weight: 500;
}

.day-date {
    font-size: 0.85em;
    color: #d0d0d0;
    margin-top: 5px;
}

.day-difficulty {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 10px 0;
}

.difficulty-fácil {
    background: #4caf50;
    color: white;
}

.difficulty-media {
    background: #ff9800;
    color: white;
}

.difficulty-difícil {
    background: #f44336;
    color: white;
}

.day-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.day-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Leyenda */
.legend {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.legend h3 {
    margin-bottom: 15px;
    color: #ffd700;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-color.completed {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4caf50;
}

.legend-color.available {
    background: rgba(102, 126, 234, 0.5);
    border-color: #667eea;
}

.legend-color.locked {
    background: rgba(128, 128, 128, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero .subtitle {
        font-size: 1.2em;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .registro-container, .login-container {
        padding: 25px;
        margin: 20px;
    }

    .logo h1 {
        font-size: 2em;
    }

    .calendario-title {
        font-size: 2em;
    }

    .calendario-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .stats-bar {
        gap: 20px;
    }

    .stat-item {
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 2em;
    }
}
/* ========== ESTILOS PARA RANKING ========== */

.ranking-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
}

.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ranking-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.ranking-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 60px;
}

/* Podio estilo MotoGP */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 80px;
    padding: 40px 20px;
}

.podium-place {
    position: relative;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.podium-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.podium-medal {
    font-size: 3em;
    margin-bottom: 10px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.podium-crown {
    font-size: 2.5em;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

.podium-avatar {
    margin-bottom: 15px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    border: 5px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.avatar-circle.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
}

.avatar-circle.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border-color: #c0c0c0;
    color: #333;
}

.avatar-circle.bronze {
    background: linear-gradient(135deg, #cd7f32, #e39a5f);
    border-color: #cd7f32;
}

.podium-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    margin: 10px 0 5px 0;
}

.podium-ciclo {
    font-size: 0.9em;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.podium-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.podium-height {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
    border: 2px solid;
    transition: all 0.5s ease;
}

.first-height {
    height: 250px;
    border-color: #ffd700;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
}

.second-height {
    height: 180px;
    border-color: #c0c0c0;
    background: linear-gradient(to top, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
}

.third-height {
    height: 120px;
    border-color: #cd7f32;
    background: linear-gradient(to top, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
}

.podium-place.first {
    order: 2;
}

.podium-place.second {
    order: 1;
}

.podium-place.third {
    order: 3;
}

/* Tabla de Ranking */
.ranking-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.ranking-table-container h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 2em;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.ranking-table th {
    padding: 15px;
    text-align: left;
    color: #ffd700;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.ranking-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ranking-table tbody tr.current-user {
    background: rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
}

.rank-number {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.2em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9em;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.badge-ciclo {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-ciclo.smr {
    background: #4caf50;
    color: white;
}

.badge-ciclo.asir {
    background: #2196f3;
    color: white;
}

.problems-solved {
    color: #4caf50;
    font-weight: 600;
}

.time-total {
    color: #ff9800;
    font-weight: 600;
}

/* Información del Ranking */
.ranking-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #2196f3;
}

.ranking-info h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.ranking-info p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 10px;
}

.no-ranking {
    text-align: center;
    padding: 40px;
    color: #d0d0d0;
}

/* Responsive */
@media (max-width: 768px) {
    .ranking-title {
        font-size: 2em;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
    }

    .podium-place {
        width: 100%;
        max-width: 300px;
    }

    .podium-place.first,
    .podium-place.second,
    .podium-place.third {
        order: unset;
    }

    .first-height,
    .second-height,
    .third-height {
        height: 80px;
    }

    .ranking-table {
        font-size: 0.9em;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 5px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
}
/* Estilos para fotos en el podio */
.podium-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.podium-photo.gold {
    border: 5px solid #ffd700;
}

.podium-photo.silver {
    border: 5px solid #c0c0c0;
}

.podium-photo.bronze {
    border: 5px solid #cd7f32;
}

/* Estilos para fotos en la tabla */
.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    margin-right: 10px;
    vertical-align: middle;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9em;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

/* Responsive para fotos */
@media (max-width: 768px) {
    .podium-photo {
        width: 80px;
        height: 80px;
    }
    
    .user-photo {
        width: 35px;
        height: 35px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
}

/* ========== ESTILOS PARA PANEL DE ADMINISTRACIÓN ========== */

.btn-admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f) !important;
    border: none !important;
    font-weight: 600;
}

.btn-admin:hover {
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-3px) !important;
}

.admin-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Admin Cards */
.admin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-card h2, .admin-card h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

/* Formularios de búsqueda */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
}

.search-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Tabla de usuarios */
.users-table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    text-align: left;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

.status-banned {
    color: #f44336;
    font-weight: 600;
}

/* Acciones sobre usuarios */
.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    padding: 20px;
}

.action-card h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.action-card .form-group {
    margin-bottom: 15px;
}

.action-card .form-group label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.action-card .form-group input,
.action-card .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-card .form-group small {
    display: block;
    color: #999;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Botones de acción */
.btn-danger {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.btn-warning {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.btn-success {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Formulario de crear problema */
.problem-form .form-group {
    margin-bottom: 20px;
}

.problem-form .form-group label {
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-form .form-group input,
.problem-form .form-group select,
.problem-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Courier New', monospace;
}

.problem-form .form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-title {
        font-size: 2em;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }
}
/* Estilos adicionales para gestión de problemas */
.problems-table-wrapper {
    overflow-x: auto;
}

.problems-table {
    width: 100%;
    border-collapse: collapse;
}

.problems-table th {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    text-align: left;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.problems-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.problems-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.difficulty-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.difficulty-badge.difficulty-fácil {
    background: #4caf50;
    color: white;
}

.difficulty-badge.difficulty-media {
    background: #ff9800;
    color: white;
}

.difficulty-badge.difficulty-difícil {
    background: #f44336;
    color: white;
}

.success-count {
    color: #4caf50;
    font-weight: 600;
}

.success-rate {
    color: #2196f3;
    font-weight: 600;
}

.btn-delete-small {
    padding: 5px 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background: #d32f2f;
    transform: scale(1.1);
}
/* ========== ESTILOS PARA TABLA DE PROBLEMAS ========== */

.problems-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.problems-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
}

.problems-table thead {
    background: rgba(102, 126, 234, 0.3);
}

.problems-table th {
    padding: 15px 12px;
    color: #ffd700;
    text-align: left;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
}

.problems-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    vertical-align: middle;
}

.problems-table tbody tr {
    transition: all 0.3s ease;
}

.problems-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.15);
}

.difficulty-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.difficulty-badge.difficulty-fácil {
    background: #4caf50;
    color: white;
}

.difficulty-badge.difficulty-media {
    background: #ff9800;
    color: white;
}

.difficulty-badge.difficulty-difícil {
    background: #f44336;
    color: white;
}

.success-count {
    color: #4caf50;
    font-weight: 600;
    font-size: 1.05em;
}

.success-rate {
    color: #2196f3;
    font-weight: 600;
    font-size: 1.05em;
}

.btn-delete-small {
    padding: 8px 12px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* Estilos para cuando no hay problemas */
.no-problems {
    text-align: center;
    padding: 40px;
    color: #d0d0d0;
    font-size: 1.1em;
}

/* Responsive para tabla de problemas */
@media (max-width: 768px) {
    .problems-table {
        font-size: 0.85em;
    }
    
    .problems-table th,
    .problems-table td {
        padding: 10px 8px;
    }
    
    .difficulty-badge {
        padding: 4px 10px;
        font-size: 0.75em;
    }
}

/* ========== ESTILOS PARA PERFIL (CORREGIDOS) ========== */

.perfil-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
}

.perfil-container {
    max-width: 900px;
    margin: 0 auto;
}

.perfil-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.perfil-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.perfil-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.perfil-card h2 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Sección de foto de perfil */
.profile-photo-section {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.current-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-actions {
    flex: 1;
    min-width: 250px;
}

.btn-upload {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.photo-actions small {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
}

.btn-delete-photo {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-delete-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* Formularios del perfil */
.perfil-form {
    margin-top: 20px;
}

.perfil-form .form-group {
    margin-bottom: 20px;
}

.perfil-form .form-group label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.perfil-form .form-group input,
.perfil-form .form-group select,
.perfil-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.perfil-form .form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.perfil-form .form-group input:focus,
.perfil-form .form-group select:focus,
.perfil-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.perfil-form .form-group small {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.btn-update {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-update:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.btn-update:active {
    transform: translateY(-1px);
}

/* Estilos para el enlace activo en el header */
.active-link {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
}

/* Responsive perfil */
@media (max-width: 768px) {
    .perfil-title {
        font-size: 2em;
    }
    
    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .photo-actions {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .perfil-card {
        padding: 20px;
    }
}
/* Estilos para verificación A2F */
.a2f-verify-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.verify-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 30px auto;
}

.verify-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.verify-card h2 {
    color: #ffd700;
    margin-bottom: 15px;
}

.verify-card p {
    color: #e0e0e0;
    margin-bottom: 30px;
}

.code-input-large {
    width: 100%;
    padding: 20px;
    font-size: 2em;
    text-align: center;
    letter-spacing: 10px;
    font-family: 'Courier New', monospace;
    border: 3px solid #667eea;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 20px;
}

.code-input-large:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-verify-large {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.verify-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-help p {
    margin: 10px 0;
    font-size: 0.9em;
}

.verify-help a {
    color: #667eea;
    text-decoration: none;
}

.verify-help a:hover {
    text-decoration: underline;
}
/* Estilos para sección A2F en perfil */
.a2f-status {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.a2f-status.active {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
}

.a2f-status.inactive {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.a2f-status.active .status-badge {
    background: #4caf50;
    color: white;
}

.a2f-status.inactive .status-badge {
    background: #f44336;
    color: white;
}

.a2f-info-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196f3;
    border-radius: 5px;
}

.a2f-info-box p {
    margin: 5px 0;
    color: #e0e0e0;
    line-height: 1.6;
}

.btn-danger {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.4);
}

.btn-success {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}
/* ========== ESTILOS PARA PROBLEMA.PHP ========== */

.problema-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(-5px);
}

.problema-header {
    margin-bottom: 30px;
}

.problema-header h1 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.problema-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tipo-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.tipo-badge.tipo-codigo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tipo-badge.tipo-test {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.problema-descripcion {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.problema-descripcion h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.problema-descripcion p {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1em;
}

.cronometro-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
}

.cronometro-label {
    color: #d0d0d0;
    font-size: 1.1em;
}

.cronometro-tiempo {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    margin: 0 10px;
    font-family: 'Courier New', monospace;
}

/* Estilos para TEST */
.test-opciones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.test-opcion {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-opcion:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.test-opcion input[type="radio"] {
    display: none;
}

.test-opcion input[type="radio"]:checked + .opcion-letra {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.test-opcion input[type="radio"]:checked ~ .opcion-texto {
    color: #4caf50;
    font-weight: 600;
}

.opcion-letra {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: bold;
    color: #ffd700;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.opcion-texto {
    color: #e0e0e0;
    font-size: 1.1em;
    flex: 1;
    transition: all 0.3s ease;
}

/* Estilos para CÓDIGO */
.problema-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    resize: vertical;
    transition: all 0.3s ease;
}

.problema-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.completado-badge {
    margin-top: 20px;
    padding: 20px;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 10px;
    text-align: center;
    color: #4caf50;
    font-size: 1.1em;
    font-weight: 600;
}

.msg {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.msg-success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.msg-error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .problema-container {
        padding: 15px;
    }
    
    .problema-header h1 {
        font-size: 1.8em;
    }
    
    .cronometro-tiempo {
        font-size: 2em;
    }
    
    .test-opcion {
        padding: 15px;
    }
    
    .opcion-texto {
        font-size: 1em;
    }
}
/* ========== ESTILOS ADICIONALES PARA ADMIN PANEL ========== */

/* Estilos para badges de tipo en admin */
.tipo-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.tipo-badge.tipo-codigo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tipo-badge.tipo-test {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Estilos para formulario de crear problema */
#campos_codigo, #campos_test {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

#campos_test h3 {
    margin-bottom: 15px;
}

.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

.admin-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.ban-select {
    padding: 5px 10px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 5px;
    color: #f44336;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-toggle-admin {
    padding: 5px 10px;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    border-radius: 5px;
    color: #ff9800;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-toggle-admin:hover {
    background: rgba(255, 152, 0, 0.3);
    transform: scale(1.1);
}

.btn-unban {
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 5px;
    color: #4caf50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-unban:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.self-indicator {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9em;
}

.banned-user {
    background: rgba(244, 67, 54, 0.05) !important;
}
/* ========== ESTILOS PARA PANEL DE ADMINISTRACIÓN ========== */

.admin-section {
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Estadísticas Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 3em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #d0d0d0;
    font-weight: 500;
}

/* Admin Cards */
.admin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-card h2 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
}

/* Formularios Admin */
.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form .form-group label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.admin-form textarea {
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Botones Admin */
.btn-create {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-create:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Tablas */
.problems-table-wrapper,
.users-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.problems-table,
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.problems-table thead,
.users-table thead {
    background: rgba(102, 126, 234, 0.2);
}

.problems-table th,
.users-table th {
    padding: 15px;
    text-align: left;
    color: #ffd700;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.problems-table td,
.users-table td {
    padding: 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.problems-table tbody tr,
.users-table tbody tr {
    transition: all 0.3s ease;
}

.problems-table tbody tr:hover,
.users-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Badges */
.difficulty-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.difficulty-badge.difficulty-fácil {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.difficulty-badge.difficulty-media {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.difficulty-badge.difficulty-difícil {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.tipo-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.tipo-badge.tipo-codigo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tipo-badge.tipo-test {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.badge-ciclo {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-ciclo.smr {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.badge-ciclo.asir {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid #9c27b0;
}

.admin-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.user-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.active-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.ban-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.success-count {
    color: #4caf50;
    font-weight: 600;
}

.success-rate {
    font-weight: 600;
    color: #ffd700;
}

/* Botones de acción */
.btn-delete-small {
    padding: 8px 12px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    border-radius: 5px;
    color: #f44336;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-delete-small:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: scale(1.1);
}

.btn-toggle-admin {
    padding: 5px 10px;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    border-radius: 5px;
    color: #ff9800;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-toggle-admin:hover {
    background: rgba(255, 152, 0, 0.3);
    transform: scale(1.1);
}

.btn-unban {
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 5px;
    color: #4caf50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-unban:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

.ban-select {
    padding: 5px 10px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 5px;
    color: #f44336;
    cursor: pointer;
    font-size: 0.85em;
}

.actions-cell {
    white-space: nowrap;
}

.self-indicator {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9em;
}

.banned-user {
    background: rgba(244, 67, 54, 0.05) !important;
}

/* Campos dinámicos de formulario */
#campos_codigo, #campos_test {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

#campos_test h3 {
    margin-bottom: 15px;
}

/* Sin problemas/usuarios */
.no-problems,
.no-users {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .admin-card {
        padding: 20px;
    }
    
    .admin-card h2 {
        font-size: 1.4em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .problems-table,
    .users-table {
        font-size: 0.85em;
    }
    
    .problems-table th,
    .problems-table td,
    .users-table th,
    .users-table td {
        padding: 10px 5px;
    }
}
/* Modal para cambiar contraseña */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(28, 31, 48, 0.95), rgba(40, 44, 63, 0.95));
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    margin-top: 0;
}

.modal-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1em;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.modal-content small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
}

.btn-modal-submit,
.btn-modal-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-modal-submit {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-action {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffd700;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.btn-action:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: scale(1.1);
}
/* ========== CORRECCIÓN PARA BADGES EN TABLA DE USUARIOS ========== */

/* Mejorar alineación de badges */
.admin-badge,
.user-badge,
.active-badge,
.ban-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.admin-badge {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.user-badge {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.active-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.ban-badge {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    display: block;
    max-width: 200px;
}

/* Mejorar tabla de usuarios */
.users-table td {
    padding: 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

/* Columnas específicas con mejor espaciado */
.users-table td:nth-child(7),  /* Columna Admin */
.users-table td:nth-child(8) { /* Columna Estado */
    text-align: center;
}

/* Responsive para tabla de usuarios */
@media (max-width: 1200px) {
    .users-table {
        font-size: 0.85em;
    }
    
    .ban-badge {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .users-table-wrapper {
        overflow-x: auto;
    }
    
    .users-table {
        font-size: 0.75em;
        min-width: 900px;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px 5px;
    }
    
    .admin-badge,
    .user-badge,
    .active-badge,
    .ban-badge {
        font-size: 0.7em;
        padding: 4px 8px;
    }
}
/* ========== ESTILOS PARA PROBLEMA COMPLETADO/BLOQUEADO ========== */

.problema-completado-bloqueado {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.completado-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.problema-completado-bloqueado h1 {
    color: #4caf50;
    margin-bottom: 20px;
    font-size: 2em;
}

.problema-completado-bloqueado p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 15px 0;
    line-height: 1.6;
}

.problema-completado-bloqueado strong {
    color: #ffd700;
}

.btn-volver {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin: 20px 10px 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.btn-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-ranking {
    background: linear-gradient(135deg, #ffd700, #ff9800);
}

.btn-ranking:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Puntos en ranking */
.points-total {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .problema-completado-bloqueado {
        margin: 50px 20px;
        padding: 30px 20px;
    }
    
    .completado-icon {
        font-size: 3em;
    }
    
    .problema-completado-bloqueado h1 {
        font-size: 1.5em;
    }
    
    .btn-volver {
        display: block;
        margin: 10px 0;
        padding: 12px 20px;
    }
}
/* ========== ADVERTENCIAS Y PROBLEMA FALLIDO ========== */

.advertencia-unica {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    color: #ff9800;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 152, 0, 0.6);
    }
}

.oportunidad-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.problema-fallado-bloqueado {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.fallado-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: shake 1s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.problema-fallado-bloqueado h1 {
    color: #f44336;
    margin-bottom: 20px;
    font-size: 2em;
}

.problema-fallado-bloqueado p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 15px 0;
    line-height: 1.6;
}

.consejo-box {
    background: rgba(33, 150, 243, 0.2);
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.consejo-box p {
    margin: 0;
    font-size: 1em;
    color: #2196f3;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .problema-fallado-bloqueado,
    .problema-completado-bloqueado {
        margin: 50px 20px;
        padding: 30px 20px;
    }
    
    .fallado-icon,
    .completado-icon {
        font-size: 3em;
    }
    
    .problema-fallado-bloqueado h1,
    .problema-completado-bloqueado h1 {
        font-size: 1.5em;
    }
}
/* ========== ESTILOS PARA SETUP A2F (MEJORADO) ========== */

.a2f-setup-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1f35 0%, #2d3561 100%);
}

.a2f-container {
    max-width: 900px;
    margin: 0 auto;
}

.a2f-container .logo {
    text-align: center;
    margin-bottom: 40px;
}

.a2f-container .logo h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.a2f-container .logo p {
    color: #d0d0d0;
    font-size: 1.1em;
}

.a2f-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.step-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding-right: 60px;
}

.step-card p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Grid de apps */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.app-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.app-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.app-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.app-item strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.app-item small {
    color: #999;
    font-size: 0.8em;
}

/* QR Code Section */
.qr-code-wrapper {
    text-align: center;
    margin: 25px 0;
}

.qr-image {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 220px;
    width: 100%;
}

.manual-entry {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secret-text {
    text-align: center;
    color: #d0d0d0;
    margin: 15px 0 10px 0;
    font-size: 1em;
}

.secret-code {
    text-align: center;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 0 auto;
    max-width: 400px;
    word-break: break-all;
}

.secret-code:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

/* Code Input */
.code-input {
    width: 100%;
    padding: 20px;
    font-size: 2em;
    text-align: center;
    letter-spacing: 15px;
    font-family: 'Courier New', monospace;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.code-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 15px;
}

/* Button Verify */
.btn-verify {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
}

.btn-verify:active {
    transform: translateY(-1px);
}

/* Time sync warning */
.time-sync-warning {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #ff9800;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Info Box */
.a2f-info {
    background: rgba(33, 150, 243, 0.2);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #2196f3;
    margin-top: 30px;
}

.a2f-info p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 10px;
}

.a2f-info p:last-child {
    margin-bottom: 0;
}

.a2f-info strong {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .a2f-setup-page {
        padding: 20px 10px;
    }
    
    .a2f-container .logo h1 {
        font-size: 2em;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-card h3 {
        font-size: 1.1em;
        padding-right: 50px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-image {
        max-width: 180px;
        padding: 10px;
    }
    
    .secret-code {
        font-size: 1em;
        padding: 12px;
        letter-spacing: 1px;
    }
    
    .code-input {
        font-size: 1.5em;
        padding: 15px;
        letter-spacing: 10px;
    }
    
    .btn-verify {
        font-size: 1em;
        padding: 15px;
    }
}

/* Animation for error/success messages */
.error-message, .success-message {
    animation: slideDown 0.5s ease;
    margin-bottom: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
