/* 🎨 Fondo con degradado animado */
body {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

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

/* 📝 Contenedor de la consulta */
.container {
    max-width: 450px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* ✨ Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🖼 Título mejorado */
h2 {
    font-size: 22px;
    font-weight: bold;
    color: #ff5722;
}

/* 📌 Descripción */
p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* 🔍 Campo de entrada */
.form-control {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ff9800;
    transition: 0.3s;
}

/* ✨ Efecto al enfocar el input */
.form-control:focus {
    border-color: #ff5722;
    box-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
}

/* 🖱 Botón mejorado */
.btn-primary {
    width: 100%;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    border: none;
    transition: all 0.3s ease-in-out;
    color: white;
    font-weight: bold;
}

/* 🔥 Efecto hover en el botón */
.btn-primary:hover {
    background: linear-gradient(90deg, #ff5722, #ff9800);
    transform: scale(1.05);
}

/* 📊 Contenedor de la tabla en SweetAlert */
.result-container {
    max-width: 100%;
    overflow-x: auto;  /* Agrega desplazamiento horizontal si es necesario */
    padding: 10px;
    text-align: center;
}

/* 📋 Estilos de la tabla */
.result-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Permite que las celdas se ajusten automáticamente */
}

/* 📌 Cabecera con fondo */
.result-table th {
    background: #ff5722;
    color: white;
    padding: 10px;
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida */
}

/* 📌 Celdas con ajuste automático */
.result-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    max-width: 200px; /* Evita que las celdas sean demasiado anchas */
    overflow-wrap: break-word; /* Permite que el texto se ajuste sin desbordarse */
    word-wrap: break-word;
}

/* 📱 Responsividad */
@media (max-width: 480px) {
    .container {
        width: 90%;
    }
}
