/* Paleta de colores */
:root {
    --color-primary: #0f172a;      /* Azul muy oscuro, casi negro */
    --color-secondary: #1e293b;    /* Gris azulado oscuro */
    --color-tertiary: #64748b;     /* Gris azulado claro */
    --color-accent: #4B69FD;       /* Azul vibrante */
    --color-accent-hover: #3751d8;
    --color-text: #f8fafc;         /* Gris muy claro (casi blanco) */
    --color-white: #FFFFFF;
}

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

/* Fondo y tipografía */
body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(45deg, #1a407c, #2c5f9e, #3a7ab8, #4d9ef4);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: var(--color-text);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animación del fondo */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Contenedor principal */
.main-content {
    width: 90%;
    max-width: 800px;
    background-color: var(--color-secondary);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Títulos */
.main-title {
    font-size: 50px;
    color: var(--color-accent);
    text-align: center;
    margin: 20px 0;
}

.section-title {
    font-size: 25px;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 10px;
}

/* Banner */
.header-banner {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
}

/* Input y boton añadir*/
.input-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}


.input-name {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    background-color: #0f172a;
    color: var(--color-text);
    outline: none;
}

.button-add {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s;

    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.button-add:hover {
    background-color: var(--color-accent-hover);
}

/* Lista de nombres y boton eliminar*/ 
.name-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #334155;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 8px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 60%;
}

.boton-eliminar {
    background: transparent;
    border: none;
    color: #f87171;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.boton-eliminar:hover {
    color: #ef4444;
}

/* Boton de sortear*/
.button-draw {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: background-color 0.3s;
}

.button-draw:hover {
    background-color: var(--color-accent-hover);
}

.button-draw img {
    height: 20px;
}

/* Resultado del sorteo */
.result-list {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #10b981;
    text-align: center;
}