* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }

/* El body ya no tiene padding, así el footer puede llegar a los bordes */
body { 
    background-color: #f4f4f9; 
    color: #333; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    transition: background-color 0.3s ease, border 0.3s ease;
    border: 8px solid transparent; 
}

body.dragging-active {
    background-color: #eef5ff;
    border-color: #0056b3;
}

/* El nuevo wrapper empuja al footer hacia abajo y centra el contenido */
.content-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

header { text-align: center; width: 100%; }
header h1 { font-size: 2.5rem; color: #0056b3; margin-bottom: 0.5rem; }

.seo-box { max-width: 600px; margin: 0 auto; line-height: 1.5; }
.description { color: #555; font-size: 1.1rem; margin-bottom: 0.5rem; }
.formats-list { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }
.donation-link { color: #0056b3; font-weight: bold; text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid transparent; transition: border 0.2s; }
.donation-link:hover { border-bottom-color: #0056b3; }

main { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }

.drop-zone { border: 3px dashed #0056b3; border-radius: 12px; padding: 3rem 1rem; text-align: center; background: #fff; cursor: pointer; transition: background 0.2s; }
.drop-zone:hover { background: #fdfdfd; }
.drop-zone p { font-size: 1.5rem; font-weight: bold; color: #333; }
.drop-zone .subtitle { display: block; margin-top: 0.5rem; color: #666; font-size: 0.9rem; }

.batch-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; background: #eef5ff; padding: 1rem; border-radius: 8px; border: 1px solid #cce0ff; color: #0056b3; font-weight: bold; }
.batch-controls select { font-weight: bold; cursor: pointer; padding: 0.4rem; border-radius: 4px; border: 1px solid #0056b3; }

.file-list { display: flex; flex-direction: column; gap: 0.8rem; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 1rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); gap: 1rem; flex-wrap: wrap; }
.file-name { flex: 1; min-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: flex; align-items: center; gap: 1rem; }

select { padding: 0.5rem; border-radius: 4px; border: 1px solid #ccc; }
.status { min-width: 100px; text-align: center; font-size: 0.9rem; font-weight: bold; }
.status.pending { color: #666; }
.status.processing { color: #d97706; }
.status.done { color: #059669; }

.btn-primary, .btn-download { padding: 0.6rem 1.2rem; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: opacity 0.2s; }
.btn-primary { background: #0056b3; color: white; align-self: center; font-size: 1.1rem; }
.btn-primary:hover { opacity: 0.9; }
.btn-download { background: #059669; color: white; text-decoration: none; display: inline-block; }
.btn-download:hover { opacity: 0.9; }

/* --- ESTILOS ESPECÍFICOS PARA EL CONVERSOR DE DIVISAS (NUEVO) --- */
.converter-box { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.exchange-container { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.input-group label { font-weight: bold; font-size: 0.9rem; color: #64748b; }
.input-group input, .input-group select { padding: 0.8rem; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 1.1rem; outline: none; }
.currency-selectors { display: flex; align-items: flex-end; gap: 1rem; }
.swap-btn { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 0.8rem; border-radius: 50%; cursor: pointer; font-size: 1.2rem; height: 50px; width: 50px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.result-box { text-align: center; padding: 1.5rem; background: #f8fafc; border-radius: 8px; margin-top: 1rem; }
#rate-text { font-size: 0.9rem; color: #64748b; margin-bottom: 0.5rem; }
#converted-amount { color: #059669; font-size: 2rem; }

/* --- FOOTER TOTALMENTE ESTÉTICO Y REDISEÑADO --- */
.site-footer { 
    background-color: #374151; /* Franja gris oscura elegante */
    color: #f3f4f6; /* Texto casi blanco */
    width: 100%;
    padding: 3rem 1rem;
    margin-top: auto; /* Se asegura de quedar siempre al fondo */
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1); /* Pequeña sombra arriba */
}

.footer-content { 
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-info p { margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-mail { color: #60a5fa; text-decoration: none; font-weight: bold; transition: color 0.2s; }
.footer-mail:hover { color: #93c5fd; text-decoration: underline; }

.footer-title { font-weight: bold; margin-bottom: 1.2rem; color: #fff; font-size: 0.85rem; letter-spacing: 1px; }

.footer-seo-links ul { 
    list-style: none; 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Dos columnas prolijas */
    gap: 0.8rem 3rem; 
}

/* Estilo de viñetas personalizadas (flechitas en lugar de puntos feos) */
.footer-seo-links li { 
    font-size: 0.85rem; 
    color: #cbd5e1; 
    position: relative; 
    padding-left: 1.2rem; 
}
.footer-seo-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #60a5fa; /* Flechita color azul claro */
}

/* --- ADAPTACIÓN PARA CELULARES --- */
@media (max-width: 600px) {
    /* Elementos del conversor de imágenes */
    .file-item { flex-direction: column; align-items: flex-start; }
    .controls { width: 100%; justify-content: space-between; }
    .batch-controls { justify-content: center; flex-direction: column; }
    
    /* Footer */
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-seo-links ul { grid-template-columns: 1fr; /* 1 columna en celulares */ }
    .footer-seo-links li { padding-left: 0; }
    .footer-seo-links li::before { display: none; /* Oculta flechas en móvil para centrar bien */ }

    /* Elementos del conversor de divisas (NUEVO) */
    .currency-selectors { flex-direction: column; align-items: center; }
    .input-group { width: 100%; }
    .swap-btn { transform: rotate(90deg); margin: 10px 0; } /* Rota la flecha en celular para que apunte arriba/abajo */
}