* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    padding: 20px;
    margin: 0;
    /*height: 100vh;*/
    background-image: url(fondo.jpg);
    background-size: cover; /* Hace que la imagen cubra todo el fondo */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
}

.container {
    background-color: white;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.header-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

h1 {
    font-size: 24px;
    margin: 10px 0;
    color: #333;
}

h2 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #555;
}

label {
    display: block;
    font-size: 14px;
    margin: 10px 0 5px;
    color: #333;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #6c63ff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5a52d1;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Estilos para pantallas más anchas */
@media screen and (min-width: 768px) {
    .container {
        max-width: 600px;
    }

    form {
        display: grid;
        /*//grid-template-columns: 1fr 1fr;*/
        gap: 20px;
    }

    h2 {
        grid-column: 1 / -1;
    }

    label {
        margin-top: 10;
    }

    input {
        margin-bottom: 0;
    }

    button {
        grid-column: 1 / -1;
    }

    .estudiante {
        border: 1px solid #ddd;
        padding: 20px;
        border-radius: 5px;
        margin-bottom: 20px;
    }

    #agregar-estudiante {
        width: auto;
        margin: 20px auto;
        display: block;
    }
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    max-width: 90%;
    max-height: 90vh;
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.confirmacion-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirmacion-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.confirmacion-content p {
    margin: 20px 0;
    font-size: 1.1em;
}

.texto-destacado {
    color: #ff4444;
    font-weight: bold;
    font-size: 1.2em;
    margin: 15px 0;
}

.botones-confirmacion {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-cerrar-pedido {
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-continuar-editando {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.estudiante {
    position: relative;
    padding-right: 50px; /* Espacio para el botón quitar */
}

.btn-quitar {
    position: absolute;
    right: 0;
    top: 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-quitar:hover {
    background-color: #cc0000;
}

/* Ocultar el botón quitar en el primer estudiante */
.estudiante:first-child .btn-quitar {
    display: none;
}