/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

/* Botones */
.btn-primary, .btn-secondary, .btn-outline, .btn-success, .btn-premium {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* Hero */
.hero {
    background: white;
    padding: 150px 0 100px;
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h2 span {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Alert Box (Importante: 1MB) */
.alert-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: pulse 2s infinite;
}

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

.alert-box i {
    color: #d68910;
    font-size: 1.5rem;
    margin-top: 3px;
}

.alert-box strong {
    color: #d68910;
    display: block;
    margin-bottom: 5px;
}

.alert-box a {
    color: #d68910;
    font-weight: bold;
    text-decoration: underline;
}

.cta-buttons {
    margin-top: 40px;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Converter */
.converter {
    background: var(--light);
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.converter-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.step {
    margin-bottom: 40px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

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

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

/* Limit Banner (IMPORTANTE: 1MB) */
.limit-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border: 2px solid #ff7675;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #d63031;
}

.limit-banner i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.limit-banner strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.limit-banner small {
    font-size: 0.9rem;
    opacity: 0.9;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Preview */
.preview-container {
    margin-top: 30px;
}

.image-preview {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius);
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Size Meter */
.size-meter {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.size-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    margin-top: 10px;
}

/* Convert Actions */
.convert-actions {
    text-align: center;
}

.btn-convert {
    font-size: 1.2rem;
    padding: 18px 45px;
    margin-bottom: 20px;
}

.conversion-info {
    background: #f0f9ff;
    padding: 15px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px;
}

.loader {
    max-width: 500px;
    margin: 0 auto;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

/* Result */
.result-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.download-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

/* Upsell */
.upsell-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 40px;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid var(--primary);
}

.faq-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark);
}

.faq-section h4 i {
    color: var(--primary);
}

.faq-content {
    color: var(--gray);
}

.faq-content ul {
    margin: 15px 0 15px 20px;
}

.faq-content li {
    margin: 8px 0;
}

.faq-content a {
    color: var(--primary);
    font-weight: bold;
}

/* Features */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--light);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pricing-card .fa-check {
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.footer .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.footer .logo i {
    color: white;
}

.footer p {
    color: var(--gray-light);
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .image-preview {
        grid-template-columns: 1fr;
    }
    
    .upload-buttons {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}