/* Reset y variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main content */
main {
    padding: 40px 20px;
}

/* Upload area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e0e7ff;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.file-info {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-secondary);
}

/* Progress */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Result container */
.result-container,
.error-container {
    margin-bottom: 30px;
}

.success-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
}

.success-message {
    border: 2px solid var(--success-color);
}

.error-message {
    border: 2px solid var(--error-color);
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 20px;
}

.error-icon {
    color: var(--error-color);
    margin-bottom: 20px;
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Buttons */
.btn-download,
.btn-retry {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    background: var(--success-color);
    color: white;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-retry {
    background: var(--primary-color);
    color: white;
}

.btn-retry:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Info section */
.info-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.steps-list,
.features-list {
    margin-left: 20px;
    margin-bottom: 30px;
}

.steps-list li,
.features-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    border-top: 2px solid var(--border-color);
}

.legal-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.legal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.legal-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 30px 15px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .upload-area h2 {
        font-size: 1.2rem;
    }

    .info-section h2 {
        font-size: 1.5rem;
    }
}

/* Área para AdSense (preparada para futuro) */
.ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 100px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
