/* TEMA VALORANT - ROJO/NEGRO/GRIS */
:root {
    --valo-red: #ff4654;        /* ROJO VALORANT ORIGINAL */
    --valo-dark: #0f1922;       /* NEGRO ORIGINAL */
    --valo-gray: #1f2c34;       /* GRIS ORIGINAL */
    --valo-light: #38434a;      /* GRIS CLARO ORIGINAL */
    --valo-white: #ece8e1;
    --valo-gold: #ffd700;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--valo-dark);
    color: var(--valo-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER / NAVEGACIÓN */
nav {
    background-color: var(--valo-gray);
    padding: 15px 0;
    border-bottom: 3px solid var(--valo-red);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--valo-red);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--valo-white);
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background-color: var(--valo-red);
    color: white;
}

/* BOTONES Y ENLACES */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-red {
    background-color: var(--valo-red);
    color: white;
}

.btn-red:hover {
    background-color: #ff2a3a;
}

.btn-gold {
    background-color: var(--valo-gold);
    color: black;
}

.btn-gold:hover {
    background-color: #ffcd00;
}

/* TARJETAS DE AGENTES */
.agentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.agente-card {
    background-color: var(--valo-gray);
    border: 1px solid var(--valo-light);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.3);
}

.agente-card h3 {
    color: var(--valo-red);
    margin-bottom: 10px;
    font-size: 20px;
}

.rol {
    display: inline-block;
    background-color: var(--valo-dark);
    color: var(--valo-white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--valo-red);
}

.precio {
    color: var(--valo-gold);
    font-size: 18px;
    font-weight: bold;
}

.dueno {
    color: #4caf50;
    font-size: 14px;
    margin-top: 10px;
}

/* TABLAS (PANEL ROOT) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--valo-gray);
}

th, td {
    border: 1px solid var(--valo-light);
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--valo-red);
    color: white;
}

/* FORMULARIOS */
input, select {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid var(--valo-light);
    border-radius: 3px;
    background-color: var(--valo-dark);
    color: var(--valo-white);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

/* ALERTAS Y MENSAJES */
.mensaje {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.success {
    background-color: #4caf50;
    color: white;
}

.error {
    background-color: #f44336;
    color: white;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: var(--valo-gray);
    color: var(--valo-white);
    border-top: 1px solid var(--valo-light);
}

/* FONDO PARALLAX */
body {
    background-image: url('/static/images/bg/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container {
    background-color: rgba(15, 25, 34, 0.85); /* Fondo semitransparente */
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.agente-card {
    background-color: rgba(31, 44, 52, 0.95);
    backdrop-filter: blur(3px);
}
/* BACKGROUND ESPECÍFICO PARA TIENDA */
body.tienda-bg {
    background-image: url('/static/images/bg/tienda.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.tienda-bg .container {
    background-color: rgba(15, 25, 34, 0.85);
    backdrop-filter: blur(5px);
}
/* ===== LOGIN Y REGISTER ===== */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(31, 44, 52, 0.95);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--valo-red);
   /* box-shadow: 0 0 30px rgba(255, 70, 84, 0.3);*/
    backdrop-filter: blur(5px);
}

.auth-container h2 {
    color: var(--valo-red);
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--valo-white);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--valo-light);
    border-radius: 5px;
    background: var(--valo-dark);
    color: var(--valo-white);
    font-size: 16px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--valo-red);
    /* box-shadow: 0 0 10px rgba(255, 70, 84, 0.3); */
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: var(--valo-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form button:hover {
    background: #ffcd00;        /* Amarillo más brillante */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);  /* Sombra amarilla */
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--valo-white);
}

.auth-links a {
    color: var(--valo-red);
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-alert {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-test-users {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    font-size: 14px;
}

.auth-test-users ul {
    margin-top: 10px;
    padding-left: 20px;
}

.auth-test-users li {
    color: var(--valo-white);
    margin: 5px 0;
}

.auth-alert.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
/* BACKGROUNDS ESPECÍFICOS */

body.login-bg {
    background-image: url('/static/images/bg/login.jpg');  
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.login-bg .auth-alert.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

body.login-bg .auth-alert.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

body.register-bg {
    background-image: url('/static/images/bg/register.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* ===== ESTILOS EXCLUSIVOS PARA LOGIN ===== */
body.login-bg {
    background-image: url('/static/images/bg/login.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.login-bg .auth-container {
    background: rgba(10, 26, 47, 0.95);
    border: 1px solid #ff8c00;  /* NARANJA */
    box-shadow: none;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

body.login-bg .auth-container h2 {
    color: #ff8c00;  /* NARANJA */
}

body.login-bg .auth-form button {
    background: #ff8c00;  /* NARANJA */
    color: #0a1a2f;
}

body.login-bg .auth-form button:hover {
    background: #ff6a00;  /* NARANJA MÁS OSCURO */
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

body.login-bg .auth-form input:focus {
    border-color: #ff8c00;  /* NARANJA */
    box-shadow: none;
}

body.login-bg .auth-links a {
    color: #ff8c00;  /* NARANJA */
}
/* ===== ESTILOS EXCLUSIVOS PARA REGISTRO ===== */
/* ===== ESTILOS EXCLUSIVOS PARA REGISTRO (NEGRO + CELESTE) ===== */
body.register-bg {
    background-image: url('/static/images/bg/register.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.register-bg .auth-container {
    background: rgba(0, 0, 0, 0.9);        /* Negro sólido */
    border: 2px solid #00b7ff;              /* Azul celeste */
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.3);  /* Sombra celeste */
    width: 100%;
    max-width: 500px;                        /* Más ancho (antes 400px) */
    margin: 20px;
    padding: 40px 50px;                      /* Más padding horizontal */
}

body.register-bg .auth-container h2 {
    color: #00b7ff;                          /* Celeste */
    font-size: 36px;                          /* Título más grande */
    letter-spacing: 3px;
}

body.register-bg .auth-form input {
    background: rgba(20, 20, 20, 0.8);       /* Casi negro */
    border: 1px solid #333;
    color: white;
    padding: 14px;                            /* Inputs más altos */
    font-size: 16px;
}

body.register-bg .auth-form input:focus {
    border-color: #00b7ff;                    /* Celeste al hacer foco */
    box-shadow: 0 0 10px rgba(0, 183, 255, 0.3);
    background: rgba(30, 30, 30, 0.9);
}

body.register-bg .auth-form button {
    background: #00b7ff;                      /* Botón celeste */
    color: black;                              /* Texto negro */
    border: none;
    padding: 14px;                             /* Botón más alto */
    font-size: 18px;                            /* Texto más grande */
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 10px;
}

body.register-bg .auth-form button:hover {
    background: #33ccff;                       /* Celeste más claro */
    box-shadow: 0 5px 20px rgba(0, 183, 255, 0.5);
    transform: translateY(-3px);
}

body.register-bg .auth-links {
    margin-top: 25px;
    font-size: 16px;
}

body.register-bg .auth-links a {
    color: #00b7ff;                            /* Celeste */
    font-weight: bold;
}

body.register-bg .auth-links a:hover {
    color: #33ccff;
    text-decoration: underline;
}

body.register-bg .auth-test-users {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00b7ff;
    margin-top: 25px;
    padding: 15px;
    font-size: 15px;
    text-align: center;
}

body.register-bg .auth-test-users strong {
    color: #00b7ff;
    font-size: 18px;
}

body.register-bg .auth-alert {
    background: rgba(0, 183, 255, 0.1);
    border: 1px solid #00b7ff;
    color: #00b7ff;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
/* ===== ESTILOS PARA PANEL ROOT (VERDE + MORADO) ===== */
body.admin-bg {
    background-image: url('/static/images/bg/admin.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.admin-container {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #9b59b6;  /* Morado */
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
}

.admin-container h1 {
    color: #9b59b6;  /* Morado */
    border-bottom: 2px solid #2ecc71;  /* Verde */
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.admin-container h2 {
    color: #2ecc71;  /* Verde */
    margin-top: 30px;
}

/* TABLA DE USUARIOS */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: #9b59b6;  /* Morado */
    color: white;
    padding: 15px;
    font-size: 16px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    color: white;
}

.admin-table tr:hover {
    background: rgba(155, 89, 182, 0.2);
}

/* BOTONES DE ACCIONES - CADA UNO DE UN COLOR */
.btn-ver {
    background: #3498db;  /* Azul */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    transition: all 0.3s;
}

.btn-ver:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-eliminar {
    background: #e74c3c;  /* Rojo */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    transition: all 0.3s;
}

.btn-eliminar:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-dar-mc {
    background: #f39c12;  /* Naranja */
    color: black;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin: 2px;
    transition: all 0.3s;
}

.btn-dar-mc:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-actualizar {
    background: #2ecc71;  /* Verde */
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-actualizar:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-volver {
    background: #95a5a6;  /* Gris */
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s;
}

.btn-volver:hover {
    background: #7f8c8d;
}

/* FORMULARIO CREAR USUARIO */
.admin-form {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #9b59b6;
    margin: 20px 0;
}

.admin-form input, .admin-form select {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #2ecc71;
    color: white;
    padding: 12px;
    margin: 5px;
    border-radius: 5px;
}

.admin-form button {
    background: #9b59b6;  /* Morado */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.admin-form button:hover {
    background: #8e44ad;
    transform: translateY(-2px);
}

/* MENSAJES */
.admin-mensaje {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}
