body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f7; 
    color: #212121; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1 {
    color: #388e3c;
    border-bottom: 2px solid #a7d7c5; 
    padding-bottom: 10px;
}

h2 {
    color: #4caf50;
    margin-top: 30px;
}

#fondoDiapositivas {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    display: flex;
    animation: carruselMovimiento 60s linear infinite;
    filter: brightness(0.7) blur(1px);
}

.diapositiva {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@keyframes carruselMovimiento {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(-400%);
    }
}

.contenedorPrincipal {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.65); 
    box-shadow: 0 6px 20px rgba(56, 142, 60, 0.3);
    border-radius: 12px;
    position: relative; 
    z-index: 1; 
}

.infoUsuario {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #c8e6c9;
    background-color: rgba(232, 245, 233, 0.6); 
    border-radius: 8px;
    font-size: 1.1em;
}

.infoUsuario strong {
    color: #388e3c;
}

form {
    padding: 25px;
    border: 1px solid #c8e6c9; 
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.75);
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #6d4c41;
}

input[type="text"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, 
textarea:focus {
    border-color: #4caf50; 
    outline: none;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 5px;
    color: #795548;
    font-size: 0.9em;
}

.contenedorSubirArchivo input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.botonArchivoPersonalizado {
    display: inline-block;
    padding: 14px 20px;
    margin-top: 5px;
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #388e3c;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(56, 142, 60, 0.3);
}

.botonArchivoPersonalizado:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    box-shadow: 0 6px 15px rgba(56, 142, 60, 0.5);
    transform: translateY(-2px);
}

.nombreArchivo {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 35px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(56, 142, 60, 0.3);
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    box-shadow: 0 6px 15px rgba(56, 142, 60, 0.5);
    transform: translateY(-2px);
}

input[type="submit"]:active {
    transform: translateY(1px); 
}

@media screen and (max-width: 600px) {
    
    .contenedorPrincipal {
        margin: 10px; 
        padding: 15px;
        box-shadow: none; 
    }

    h1 {
        font-size: 1.5em;
        padding-bottom: 5px;
    }
    
    h2 {
        font-size: 1.2em;
    }

    .infoUsuario {
        padding: 10px;
        font-size: 1em;
    }

    input[type="submit"] {
        padding: 10px;
        font-size: 1em;
        margin-top: 25px;
    }

    .botonArchivoPersonalizado {
        padding: 10px 10px;
        width: 100%; 
        box-sizing: border-box;
    }
}