:root {
    --color-primary: #4B69FD;
    --color-secondary: #FFF9EB;
    --color-tertiary: #C4C4C4;
    --color-button: #fe652b;
    --color-button-hover: #e55720;
    --color-text: #444444;
    --color-white: #FFFFFF;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Banner */
.header-banner {
    flex: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
}

/* Sección de entrada */
.input-section {
    flex: 60%;
    background-color: var(--color-secondary);
    border: 1px solid #000;
    border-radius: 64px 64px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Títulos */
.main-title {
    font-size: 48px;
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
    color: var(--color-white);
}

.section-title {
    font-family: "Inter", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
    text-align: center;
}

/* Contenedores de entrada y botón */
.input-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.input-name {
    width: 100%;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Botón de sortear */
.button-draw {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    color: var(--color-white);
    background-color: var(--color-button);
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    transition: all 0.3s ease;
}

.button-draw img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.button-draw:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Botón de reiniciar */
.container__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    color: var(--color-text);
    background-color: var(--color-tertiary);
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    transition: all 0.3s ease;
}

.container__boton:hover:not(:disabled) {
    background-color: #a1a1a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.container__boton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #999;
}

/* Botón secundario de reiniciar sorteos */
.container__boton-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    color: var(--color-white);
    background-color: #6B73FF;
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    transition: all 0.3s ease;
}

.container__boton-secondary:hover:not(:disabled) {
    background-color: #5A5FE0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.container__boton-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #999;
}

/* Estilos generales de botones */
button {
    padding: 15px 30px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    border: 2px solid #000;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.button-add {
    background-color: var(--color-tertiary);
    color: var(--color-text);
    border-radius: 0 25px 25px 0;
}

.button-add:hover {
    background-color: #a1a1a1;
}

/* Listas */
ul {
    list-style-type: none;
    color: var(--color-text);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    margin: 20px 0;
}

.name-list {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
}

.name-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.name-list li:last-child {
    border-bottom: none;
}

.result-list {
    margin-top: 15px;
    color: #05DF05;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-draw,
    .container__boton,
    .container__boton-secondary {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}
