/* -------------------------------------------------
   BASE & RESET
------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 30px 22px;
    background: #f0f3f8;
    color: #1a1a1a;
    line-height: 1.6;
    letter-spacing: 0.05px;
}

/* -------------------------------------------------
   CONTENEDOR PRINCIPAL (Glass Premium)
------------------------------------------------- */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}


/* -------------------------------------------------
   HEADER & TITLES
------------------------------------------------- */
.header-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 0.98;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

p.lead {
    color: #666;
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
}

/* -------------------------------------------------
   SECTION SPACING & SEPARATORS
------------------------------------------------- */
.section-spacer {
    height: 40px;
    width: 100%;
}

.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 100%);
    margin: 32px 0;
    opacity: 0.6;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(59, 124, 255, 0.2);
}

/* -------------------------------------------------
   GRID SYSTEM
------------------------------------------------- */
.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.col {
    flex: 1;
    min-width: 280px;
}

/* -------------------------------------------------
   TEXTAREA
------------------------------------------------- */
textarea {
    width: 100%;
    height: 280px;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 12px;
    border: 1.5px solid #d8e0f0;
    background: #f9fbff;
    resize: vertical;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    line-height: 1.5;
}

textarea:hover {
    border-color: #a6b7d4;
    background: #f5f8ff;
}

textarea:focus {
    outline: none;
    border-color: #3b7cff;
    box-shadow: 0 0 0 3px rgba(59, 124, 255, 0.15);
    background: #ffffff;
}

/* -------------------------------------------------
   BUTTONS (Sin animaciones)
------------------------------------------------- */
button {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: #3b7cff;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(59, 124, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: #2a63d6;
    box-shadow: 0 5px 15px rgba(59, 124, 255, 0.3);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(59, 124, 255, 0.2);
}

button.secondary {
    background: #6c757d;
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.2);
}

button.secondary:hover {
    background: #5a6268;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* -------------------------------------------------
   FILE INPUT
------------------------------------------------- */
input[type="file"] {
    font-size: 14px;
    font-family: inherit;
    color: #444;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #d8e0f0;
    background: #f9fbff;
    transition: all 0.25s ease;
}

input[type="file"]:hover {
    border-color: #a6b7d4;
    background: #f5f8ff;
}

input[type="file"]::file-selector-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #3b7cff;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-right: 12px;
}

input[type="file"]::file-selector-button:hover {
    background: #2a63d6;
    box-shadow: 0 3px 8px rgba(59, 124, 255, 0.3);
}

/* -------------------------------------------------
   RESULTS & OUTPUTS
------------------------------------------------- */
.results {
    padding: 24px;
    border-radius: 12px;
    background: #f9fbff;
    border: 1.5px solid #d9e2f3;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
}

#mainResult {
    display: block;
    padding: 20px 24px;
    background: #ffffff;
    border-left: 6px solid #3b7cff;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    line-height: 1.6;
    margin: 24px 0;
}

/* -------------------------------------------------
   DETAILED SECTIONS
------------------------------------------------- */
.sections {
    max-height: 320px;
    overflow: auto;
    border-radius: 12px;
    border: 1.5px solid #e8edf5;
    padding: 16px;
    background: #ffffff;
    margin-bottom: 32px;
}

.section {
    padding: 16px;
    border-bottom: 1px solid #eaeef5;
    transition: background 0.2s ease;
}

.section:last-child {
    border-bottom: none;
}

.section:hover {
    background: #f8fafd;
    border-radius: 8px;
}

/* -------------------------------------------------
   PROGRESS BAR
------------------------------------------------- */
.progress {
    height: 10px;
    background: #e9edf3;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
}

.progress > i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b7cff, #2a63d6);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------
   METRIC BOX
------------------------------------------------- */
pre.smallbox {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f5f7fb;
    padding: 16px;
    border-radius: 10px;
    border: 1.5px solid #e3e8f2;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 16px 0;
    overflow-x: auto;
}

/* -------------------------------------------------
   FOOTER / CREDITS
------------------------------------------------- */
.reko-credit {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.reko-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.reko-logo:hover {
    transform: scale(1.08);
}

.reko-link {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 700;
    transition: color 0.2s ease;
}

.reko-link:hover {
    color: #3b7cff;
}

.reko-name {
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.reko-desc {
    font-size: 14px;
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* -------------------------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------------------------- */
@media (max-width: 768px) {
    body {
        margin: 20px 16px;
    }
    
    .container {
        padding: 24px 20px;
    }
    
    .header-title {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .project-logo {
        width: 200px;
    }
    
    .row {
        gap: 16px;
    }
    
    .col {
        min-width: 100%;
    }
    
    textarea {
        height: 220px;
    }
}