/* Estilos Globales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Enlazamos de forma nativa tu imagen de pexels */
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
                      url("images/pexels-goumbik-669613.jpg");

    /* Configuración para que la imagen cubra toda la pantalla sin repetirse ni moverse */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #1e293b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 { margin: 0; font-size: 24px; font-weight: 700; }
header p { margin: 5px 0 0 0; font-size: 12px; color: #94a3b8; }

.badge {
    background-color: #22c55e;
    color: #0f172a;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
}

/* Contenedor Principal en Mallas */
main {
    flex: 1;
    max-width: 1000px;
    width: calc(100% - 40px);
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    main { grid-template-columns: 1fr 2fr; }
}

/* Tarjetas y Paneles */
.panel {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h2 { font-size: 18px; font-weight: 600; margin-top: 0; margin-bottom: 20px; color: #0f172a; }

/* Formulario e Inputs */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #475569; }

.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8fafc;
    position: relative;
    transition: background-color 0.2s;
}
.dropzone:hover { background-color: #f1f5f9; }
.dropzone input[type="file"] {
    position: absolute; inset: 0; width: 100%; hieght: 100%; opacity: 0; cursor: pointer;
}
.dropzone-text { color: #64748b; font-size: 14px; }
.dropzone-icon { font-size: 28px; display: block; margin-bottom: 5px; }

textarea {
    width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-family: inherit; font-size: 14px; resize: vertical;
}

/* Botón de Enviar */
button {
    width: 100%; background-color: #4f46e5; color: white; border: none; padding: 12px;
    font-size: 14px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: background-color 0.2s;
}
button:hover { background-color: #4338ca; }

/* Caja de Resultados */
.result-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    min-height: 250px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
}
.placeholder-text { color: #94a3b8; font-style: italic; }
.loading-text { color: #4f46e5; font-weight: 500; }
