
body {
    position: relative;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
}
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('imagenes/prefesional.webp'); 
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1; /* ajusta entre 0 (transparente) y 1 (opaco) */
        z-index: -1; /* para que el contenido quede por encima */
    }

.header {
    background-color: #005f73;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

    .header h1 {
        margin: 0;
        font-size: 2rem;
    }
        /* Pie de página fijo */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    z-index: 1000;
    font-size: 12px;
}

            footer a {
                color: #66b3ff;
                text-decoration: none;
                margin: 0 10px;
            }

                footer a:hover {
                    text-decoration: underline;
                }

        .container {
            max-width: 800px;
            width: 90%;
            margin: 2rem auto;
            background-color: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        label {
            flex: 1 1 100%;
            font-weight: bold;
        }

        input, select {
            flex: 1 1 calc(50% - 1rem);
            padding: 0.8rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 1rem;
        }

            input:focus, select:focus {
                border-color: #005f73;
                outline: none;
            }

        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 1rem;
            background-color: #f9f9f9;
            margin-bottom: 1.5rem;
        }

        .checkbox-item {
            flex: 1 1 calc(50% - 1rem);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .button-container {
            text-align: center;
        }

        button {
            background-color: #005f73;
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            font-size: 1rem;
            border-radius: 4px;
            cursor: pointer;
        }

            button:hover {
                background-color: #0a9396;
            }

        .note {
            font-size: 0.9rem;
            color: #555;
        }

        .section-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: flex-start;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            background-color: #f9f9f9;
        }

        .form-group {
            flex: 1 1 calc(33.333% - 1rem);
            display: flex;
            flex-direction: column;
        }

        .flex-grow {
            flex: 1;
            min-width: 0;
        }

        .notas {
            font-size: 0.8rem;
            color: #555;
            margin-left: 0.3rem;
            font-style: italic;
        }

        /* Adaptaciones para dispositivos móviles */
        @media screen and (max-width: 768px) {
            .image-banner {
                height: 200px;
                background-size: contain;
            }

            .container {
                width: 95%;
                padding: 1.5rem;
            }

            .form-group {
                flex: 1 1 100%;
            }

            input, select {
                flex: 1 1 100%;
            }

            .checkbox-item {
                flex: 1 1 100%;
            }
        }

        @media screen and (max-width: 480px) {
            .image-banner {
                height: 150px;
                background-size: contain;
                background-position: top;
            }

            .header h1 {
                font-size: 1.5rem;
            }

            .container {
                width: 100%;
                padding: 1rem;
            }

            button {
                width: 100%;
                padding: 1rem;
            }

            .form-group {
                flex: 1 1 100%;
            }

            input, select {
                flex: 1 1 100%;
            }
        }

        .video-guide-button {
            display: inline-block;
            background-color: #007BFF; /* Azul elegante */
            color: white;
            font-weight: bold;
            text-decoration: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 16px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        }

            .video-guide-button:hover {
                background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
                transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
            }

            .video-guide-button:active {
                transform: scale(0.95); /* Efecto de presión al hacer clic */
            }

        /* Estilo del contenedor principal de check box*/
        .checkbox-group {
            max-width: 400px;
            margin: auto;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 12px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        }

        /* Título del grupo */
        .group-label {
            font-size: 18px;
            font-weight: bold;
            display: block;
            margin-bottom: 10px;
            text-align: center;
            color: #333;
        }

        /* Ocultar los checkboxes originales */
        .checkbox-item input[type="checkbox"] {
            display: none;
        }

        /* Estilo de los labels personalizados (botón) */
        .checkbox-item label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #ffffff;
            color: #333;
            font-size: 16px;
            font-weight: bold;
            padding: 10px 15px;
            margin: 5px 0;
            border: 2px solid #007bff;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.3s ease;
            box-shadow: 1px 1px 6px rgba(0, 123, 255, 0.3);
        }

        /* Cambia el color cuando se selecciona */
        .checkbox-item input[type="checkbox"]:checked + label {
            background: #007bff;
            color: white;
            border-color: #0056b3;
            box-shadow: 1px 1px 10px rgba(0, 123, 255, 0.5);
        }

        /* Efecto hover */
        .checkbox-item label:hover {
            background: #e3f2fd;
        }

        .form-row {
            display: flex;
            gap: 20px;
        }
.boton-subir {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: black;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.boton-subir:hover {
    background-color: #555;
}

#submitButton {
    background-color: black;
    color: grey;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: not-allowed; /* Indica que no es clickeable */
}

#submitButton.enabled {
    background-color: #007bff; /* Color azul */
    color: white;
    cursor: pointer;
}

.info-icon {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

    .info-icon:hover,
    .info-icon:focus {
        background-color: transparent;
        outline: none;
        box-shadow: none;
    }

.info-box {
    position: absolute;
    background-color: #fff9c4;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    z-index: 999;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

    .info-box.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
/* Contenedor fijo del chat a la derecha */
.chat-container {
    position: fixed;
    right: 20px;
    top: 70px; /* Ajusta este valor para alinearlo respecto a la cabecera */
    width: 350px;
    max-width: 90%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    height: 70%;
    max-height: 600px;
}

/* Estilos del chat */
.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    color: gray;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 10px;
}

    .chat-input textarea {
        flex: 1;
        resize: none;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    .chat-input button {
        margin-left: 10px;
        padding: 8px 12px;
        background-color: #007bff;
        border: none;
        color: white;
        border-radius: 4px;
        cursor: pointer;
    }

.chat-message.user {
    font-weight: bold; /* Mensaje del usuario en negrita */
    text-align: right; /* Alineado a la izquierda */
    margin: 5px 0;
}

.chat-message.assistant {
    font-weight: normal; /* Mensaje de la IA en estilo normal */
    text-align: left; /* Alineado a la derecha */
    margin: 5px 0;
}

/* Adaptación para móviles */
@media screen and (max-width: 600px) {
    .chat-container {
        right: 10px;
        width: 95%;
        top: 70px;
        display: none; /* Oculto por defecto en móvil */
    }

    #toggle-chat-btn {
        display: block;
        position: fixed;
        bottom: 80px;
        left: 20px;
        z-index: 1200;
        padding: 10px 15px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
    /* Mostrar botón de cierre dentro del chat en móvil */
    .close-chat {
        display: block;
    }
}



/* Indicador de carga con efecto de arcoíris */
#loading-indicator {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white; /* Texto en blanco para contrastar */
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400% 100%;
    border-radius: 4px;
    animation: rainbowSweep 3s ease-in-out infinite;
    margin: 10px 0;
}

@keyframes rainbowSweep {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}