/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN PREMIUM - KROWSOLUTIONS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    background-color: #111111;
    padding: 15px 40px;
    border-bottom: 2px solid #ffcc00;
}

.brand-logo {
    color: #ffcc00;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTENEDOR PRINCIPAL */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* CONTROL DE PANTALLAS */
.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
}

/* INTERFAZ EN ESPEJO (SPLIT LAYOUT) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* PANEL IZQUIERDO */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-box {
    background-color: #b7321a;
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.donation-pitch {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* PANEL DERECHO: ZONA DE CARGA */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drop-zone {
    border: 2px dashed #444444;
    background-color: #222222;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.drop-zone.dragover {
    border-color: #ffcc00;
    background-color: #2a2a2a;
}

.drag-text {
    color: #666666;
    font-size: 14px;
}

/* BOTONES PREMIUM */
.btn-yellow {
    background-color: #ffcc00;
    color: #000000;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.btn-yellow:hover {
    background-color: #e6b800;
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #333333;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #444444;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #444444;
}

/* PANTALLA DE CARGA (ANIMACIÓN SPIN) */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 25px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #333333;
    border-top: 6px solid #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.did-you-know-box {
    background-color: #222222;
    border-left: 4px solid #ffcc00;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    max-width: 600px;
    width: 100%;
}

.did-you-know-box h3 {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 18px;
}

.did-you-know-box p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

/* REJILLA DE VISTA PREVIA INTERACTIVA */
.grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.preview-card {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: grab;
    transition: border-color 0.2s;
}

.preview-card:active {
    cursor: grabbing;
}

.preview-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background-color: #111111;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-name {
    font-size: 11px;
    color: #aaaaaa;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.btn-delete-img {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #b7321a;
    color: #ffffff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* CONTROLES INFERIORES DE ACCIÓN */
.results-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #333333;
    padding-top: 20px;
    width: 100%;
}

.clickable-label {
    display: inline-block;
    cursor: pointer;
}

/* ESPACIOS PUBLICITARIOS DE MONETAG */
.ad-space-banner {
    width: 100%;
    min-height: 90px;
    background-color: rgba(0,0,0,0.2);
    border: 1px dashed #333333;
    margin-top: auto;
    border-radius: 6px;
}

.ad-space-large {
    width: 100%;
    max-width: 600px;
    min-height: 120px;
    background-color: rgba(0,0,0,0.2);
    border: 1px dashed #333333;
    border-radius: 6px;
}