* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }

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;
}

.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; }

/* --- CONVERSOR DE IMÁGENES --- */
.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; }

/* --- CONVERSOR DE DIVISAS Y CRIPTO --- */
.converter-box { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; width: 100%; }

/* Estilos de las Pestañas (Tabs) */
.tabs-container {
    display: flex;
    width: 100%;
    margin-bottom: 2rem;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn.active {
    background: #0056b3;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #333;
}

.exchange-container { display: flex; flex-direction: column; gap: 1.5rem; }

.input-group { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.input-group label { font-weight: bold; font-size: 0.9rem; color: #64748b; }

#amount { padding: 0.8rem; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 1.1rem; outline: none; width: 100%; }

.currency-selectors { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; }

.select-with-flag { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding-left: 12px; width: 100%; overflow: hidden; }
.select-with-flag img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.select-with-flag select { flex: 1; padding: 0.8rem; border: none; font-size: 1.1rem; outline: none; background: transparent; cursor: pointer; text-overflow: ellipsis; }

.swap-btn { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 0.5rem; border-radius: 50%; cursor: pointer; font-size: 1.2rem; height: 45px; width: 45px; display: flex; align-items: center; justify-content: center; transform: rotate(90deg); margin: 0.5rem 0; transition: background 0.2s; }
.swap-btn:hover { background: #e2e8f0; }

.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; word-break: break-all; }

/* --- FOOTER TOTALMENTE ESTÉTICO Y REDISEÑADO --- */
.site-footer { 
    background-color: #374151;
    color: #f3f4f6;
    width: 100%;
    padding: 3rem 1rem;
    margin-top: auto;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.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;
    gap: 0.8rem 3rem; 
}

.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;
}

@media (max-width: 600px) {
    .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-content { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-seo-links ul { grid-template-columns: 1fr; }
    .footer-seo-links li { padding-left: 0; }
    .footer-seo-links li::before { display: none; }
}

/* --- INDICADOR EN VIVO --- */
.live-rate-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0.5rem; }
.live-indicator { width: 10px; height: 10px; background-color: #10b981; border-radius: 50%; animation: pulse 1.5s infinite; }
#rate-text { margin-bottom: 0 !important; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- NUEVA COLUMNA FOOTER --- */
.footer-other-tools ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-other-tools a { color: #cbd5e1; text-decoration: none; position: relative; padding-left: 1.2rem; font-size: 0.85rem; }
.footer-other-tools a::before { content: "→"; position: absolute; left: 0; color: #60a5fa; }
.footer-other-tools a:hover { color: #fff; text-decoration: underline; }

/* --- SELECTOR DE IDIOMA --- */
.lang-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 100;
}
.lang-switch-wrapper img { width: 24px; height: 18px; border-radius: 3px; margin-right: 8px; object-fit: cover; }
.lang-switch-wrapper select { border: none; background: transparent; font-weight: bold; color: #333; outline: none; cursor: pointer; font-size: 0.95rem; }
