:root {
    --primary-color: #5f2e0a; /* Café silla de montar */
    --secondary-color: #5f2e0a; /* Café tierra secondary color */
    --accent-color: #dec290; /* Beige claro para fondos */
    --background-color: #d1b684; /* Beige muy claro para el fondo */
    --text-color: #5D4037; /* Café oscuro para texto principal */
    --text-light: #8D6E63; /* Café medio para texto secundario */
    --white: #FFFFFF;
    --success-color: #689F38; /* Verde café */
    --warning-color: #8D6E63; /* Café anaranjado */
    --error-color: #5D4037; /* Café rojizo */
    --border-color: #A1887F; /* Café para bordes */
    --shadow-color: rgba(95, 46, 10, 0.15);
    --icon-color: #5f2e0a; /* Color específico para íconos */
    --icon-light: #8D6E63; /* Color más claro para íconos secundarios */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--background-color) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="%235f2e0a" d="M30,30 Q50,10 70,30 T90,50 T70,70 T50,90 T30,70 T10,50 T30,30 Z"/></svg>') repeat;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 4em;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) 
            brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 300;
}

/* Upload Section */
.upload-section {
    padding: 50px 40px;
    background: var(--white);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.file-input-container {
    position: relative;
}

#file-input {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.file-input-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.file-input-label:hover::before {
    left: 100%;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #e8d4b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.file-input-label.highlight {
    border-color: var(--primary-color);
    background: var(--accent-color);
    transform: scale(1.02);
}

.file-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px var(--shadow-color))
            brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.file-text {
    font-size: 1.4em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.file-hint {
    font-size: 1em;
    color: var(--text-light);
    font-weight: 400;
}

/* File List Styles */
.file-list {
    margin-top: 20px;
}

.file-count {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-count-icon {
    font-size: 1.2em;
    filter: brightness(0) saturate(100%) invert(100%);
}

.file-items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.file-item-icon {
    font-size: 1.3em;
    color: var(--primary-color);
    filter: brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.file-item-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-color);
}

.file-item-size {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 400;
}

/* Button Styles */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    margin-right: 12px;
    font-size: 1.2em;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Info Section */
.info-section {
    padding: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    display: grid;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3::before {
    font-size: 1.3em;
    filter: brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.info-card:nth-child(1) h3::before {
    content: '🎯';
}

.info-card:nth-child(2) h3::before {
    content: '⚙️';
}

.info-card:nth-child(3) h3::before {
    content: '📈';
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--accent-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.info-card li::before {
    font-size: 1.1em;
    filter: brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.info-card li:hover {
    background: var(--accent-color);
    margin: 0 -15px;
    padding: 12px 15px;
    border-radius: 8px;
}

.info-card li:last-child {
    border-bottom: none;
}

.process-steps {
    list-style: none;
    counter-reset: step-counter;
}

.process-steps li {
    counter-increment: step-counter;
    padding-left: 50px;
    position: relative;
    margin-bottom: 15px;
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

/* Messages */
.messages {
    padding: 0 40px;
}

.alert {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 600;
    border-left: 5px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert::before {
    font-size: 1.5em;
    filter: brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.alert-error {
    background: #FFEBEE;
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.alert-error::before {
    content: '❌';
}

.alert-warning {
    background: #FFF3E0;
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-warning::before {
    content: '⚠️';
}

.alert-success {
    background: #E8F5E8;
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-success::before {
    content: '✅';
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 25px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        padding: 40px 25px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .upload-section {
        padding: 40px 25px;
    }
    
    .file-input-label {
        padding: 40px 25px;
    }
    
    .file-icon {
        font-size: 3em;
    }
    
    .file-text {
        font-size: 1.2em;
    }
    
    .info-section {
        padding: 25px;
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        padding: 18px 30px;
        font-size: 1.2em;
    }
    
    .info-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .file-input-label {
        padding: 30px 20px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .process-steps li {
        padding-left: 45px;
    }
    
    .process-steps li::before {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
}

/* Filtros específicos para íconos en tonos café */
.icon-cafe {
    filter: brightness(0) 
            saturate(100%) 
            invert(23%) 
            sepia(90%) 
            saturate(300%) 
            hue-rotate(345deg) 
            brightness(0.8) 
            contrast(1.2);
}

.icon-cafe-claro {
    filter: brightness(0) 
            saturate(100%) 
            invert(40%) 
            sepia(30%) 
            saturate(400%) 
            hue-rotate(345deg) 
            brightness(0.9) 
            contrast(1.1);
}