/* Fuente Inter para una mejor legibilidad */
        
:root {
    --color-primary: #0052B3; /* Verde esmeralda */
    --color-secondary: #8b5cf6; /* Púrpura */
    --color-error: #ef4444; /* Rojo vibrante */
    --color-warning: #f97316; /* Naranja fuerte */
    --color-text-dark: #1f2937;
    --color-text-light: #4b5563;
    --color-background: #f7f9fb;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 896px; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    padding: 1rem; /* 4 */
}

@media (min-width: 640px) { /* sm: */
    .container {
        padding: 2rem; /* sm:p-8 */
    }
}

/* Tarjetas y Contenedores */
.card {
    background-color: white;
    padding: 2rem; /* p-8 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem; /* mb-8 */
}
.card-result {
    border-top: 4px solid var(--color-primary);
}
.card-references {
    border-top: 4px solid var(--color-secondary);
}
.card h2 {
    font-size: 1.5rem; /* 2xl */
    font-weight: 700; /* bold */
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.card h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Select y Textarea */
.input-field, .select-field {
    width: 100%;
    padding: 0.75rem; /* p-3/4 */
    border: 2px solid #d1d5db; /* gray-300 */
    border-radius: 0.75rem; /* rounded-xl */
    color: var(--color-text-dark);
    transition: border-color 0.15s ease-in-out;
    resize: none;
    font-size:18px!important;
}
.input-field:focus, .select-field:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); /* focus:ring-green-200 */
}

/* Botón de Corrección */
.button-primary {
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    background-color: var(--color-primary);
    color: white;
    font-weight: 600; /* semibold */
    border-radius: 8px; /* full */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* shadow-lg */
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}
.button-primary:hover {
    background-color: #124978; /* green-700 */
    transform: scale(1.05);
}
.button-primary:active {
    transform: scale(1);
}
.button-primary:disabled {
    background-color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem; /* mt-4 */
}

/* Indicador de Carga */
.loading-indicator {
    display: flex;
    align-items: center;
    color: var(--color-primary);
}
.loader {
    border: 4px solid #f3f4f6; /* gray-200 */
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 1.5rem; /* h-6 w-6 */
    height: 1.5rem;
    animation: spinner 1s linear infinite;
    margin-right: 0.5rem; /* space-x-2 */
}
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card{box-shadow: none!important;}

/* Estilos personalizados para la marcación de texto */
.underline-red {
    /* Error gramatical o de ortografía */
    text-decoration: underline var(--color-error) wavy;
    cursor: help;
    font-weight: 600;
    color: var(--color-error); 
}
.underline-orange {
    /* Sugerencia de estilo o vocabulario */
    text-decoration: underline var(--color-warning) dashed;
    cursor: help;
    font-weight: 600;
    color: var(--color-warning); 
}

/* Estilo para el número de superíndice */
.explanation-ref {
    font-size: 0.65em;
    vertical-align: super;
    margin-left: 2px;
    font-weight: 900;
}

/* Secciones de Explicaciones */
.explanations-section h3 {
    font-size: 1.25rem; /* xl */
    font-weight: 600; /* semibold */
    margin-bottom: 0.75rem; /* mb-3 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom-width: 1px;
}
.explanations-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.explanations-section ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.explanations-section ul li .ref-number {
    font-weight: 700;
    font-size: 1.25rem;

    
}
.explanations-section ul li .content {
    margin-left: 0.5rem;
    padding-top: 0.25rem;
}
.explanations-section ul li .content p:first-child {
    font-weight: 600;
    color: var(--color-text-dark);
}
.explanations-section ul li .content p:last-child {
    font-size: 18px; /* sm */
    color: var(--color-text-light);
}

/* Mensaje de Error/Info */
.message-box {
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-top: 1.5rem;
    transition: all 0.3s;
}
.message-box.error {
    background-color: #fee2e2; /* red-100 */
    color: var(--color-error);
}
.message-box.info {
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-700 */
}
.hidden {
    display: none;
}
.error-mark{text-decoration:underline red;color:red;}
.style-mark{text-decoration:underline orangered;color:orangered;}