/* --- PALETA DE COLORES PROFESIONAL --- */
:root {
    /* Azules corporativos */
    --primary: #1A56DB;
    --primary-dark: #1E3A8A;
    --primary-light: #93C5FD;
    
    /* Acentos */
    --accent: #059669;
    --accent-light: #34D399;
    
    /* Neutros */
    --dark: #111827;
    --gray: #4B5563;
    --light: #F3F4F6;
    --white: #FFFFFF;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* --- RESET Y TIPOGRAFÍA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 80px; /* Para compensar el header fixed */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* --- HEADER ACTUALIZADO --- */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-img {
    height: 40px;
    width: auto;
    padding-left: 10px;
}

.header-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.header-navbar {
    display: flex;
    align-items: center;
    padding-right: 10px
}

.header-nav-links {
    display: flex;
    gap: 30px;
}

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

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

.header-nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.header-nav-links a:hover:after {
    width: 100%;
}

.header-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* --- COMPONENTES REUTILIZABLES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- HERO SECTION --- */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--light);
}

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

.service-card {
    background: var(--white);
    border-top: 4px solid var(--primary);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--gray);
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- ABOUT SECTION --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-icon {
    color: var(--accent);
    font-size: 20px;
    margin-top: 3px;
}

/* --- CONTACT SECTION --- */
.contact {
    background-color: var(--primary-dark);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title:after {
    background-color: var(--accent-light);
}

.contact p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    font-family: 'Inter', sans-serif;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-light);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* --- MENU DROPDOWN --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    border-top: 2px solid var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary) !important;
}

.dropdown-content a:after {
    display: none !important;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
    }
    
    .header-nav-links.active {
        display: flex;
    }
    
    .header-mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================= */
/* --- ESTILOS EXCLUSIVOS DEL CONVERTIDOR --- */
/* ========================================= */

.app-header {
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.app-header h1 i {
    margin-right: 10px;
    color: var(--primary);
}

.converter-box {
    background: transparent;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 800px;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.file-upload {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload:hover {
    border-color: var(--accent-light);
    background: rgba(255, 255, 255, 0.1);
}

.file-upload i {
    font-size: 60px;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.file-upload p {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
}

.file-upload .small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-select {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.file-info {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 500;
}

.file-info i {
    font-size: 24px;
    color: var(--primary);
}

.file-info span {
    color: var(--dark);
}

.hidden {
    display: none;
}

.format-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.from-format, .to-format {
    flex: 1;
    min-width: 200px;
}

.format-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
}

.format-selector select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.format-selector select:focus {
    outline: 2px solid var(--accent-light);
}

.btn-swap {
    background: var(--light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: var(--shadow-sm);
}

.btn-swap:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.conversion-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversion-options h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.option-group input, .option-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark);
}

.btn-convert {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-md);
}

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

.btn-convert:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.supported-formats {
    margin-top: 40px;
    color: var(--dark);
}

.supported-formats h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.format-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-dark);
}

.category h3 i {
    margin-right: 8px;
    color: var(--primary);
}

.category p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.progress-bar {
    margin-top: 30px;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

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

/* Estilos del Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-content i.fa-check-circle {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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