:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Header Styles */
.header-section {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.header-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Image Section */
.hero-image-section {
    height: 70vh;
    background: linear-gradient(rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7)),
                /* url('https://images.unsplash.com/photo-1556742393-d75f468bfcb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); */
                url('images/IMT1.jpg" alt="IMT Internacional" style="max-width: 100%; height: auto; opacity: 0.8; ');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* Auth Section */
.auth-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.nav-pills .nav-link {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-auth {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: white;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--primary-gradient);
    color: white;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Tutorial Section */
.tutorial-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Jobs Section */
.jobs-section {
    padding: 5rem 0;
    background: white;
}

.jobs-form {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer-section {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alert styles */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}
/* Exchange Rates Section Styles */
    .exchange-rates-section {
        padding: 80px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }

    .exchange-rates-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

    .rates-card {
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        position: relative;
        z-index: 1;
    }

    .rates-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 25px 30px;
        border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    }

    .rates-header h4 {
        margin: 0;
        font-weight: 600;
    }

    .rates-header .text-muted {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .rates-table {
        margin: 0;
        border: none;
    }

    .rates-table thead th {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: none;
        padding: 20px 15px;
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .rates-table tbody tr {
        border-bottom: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .rates-table tbody tr:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, rgba(102, 126, 234, 0.05) 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .rates-table tbody td {
        padding: 20px 15px;
        vertical-align: middle;
        border: none;
    }

    .country-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .flag-icon {
        width: 28px;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease;
    }

    .flag-icon:hover {
        transform: scale(1.1);
    }

    .country-name {
        font-weight: 500;
        color: #495057;
        display: block;
        margin-bottom: 2px;
    }

    .currency-code {
        color: #6c757d;
        font-size: 0.8rem;
        font-weight: 500;
        background: #e9ecef;
        padding: 2px 6px;
        border-radius: 10px;
        margin-left: auto;
    }

    .rate-display {
        position: relative;
    }

    .rate-value {
        font-weight: 600;
        color: #495057;
        font-size: 1rem;
        display: block;
        padding: 8px 12px;
        background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
        border-radius: 8px;
        border: 1px solid #d4edda;
    }

    .rate-input {
        font-weight: 600;
        border-radius: 8px;
        border: 2px solid #667eea;
        font-size: 0.95rem;
    }

    .rate-input:focus {
        border-color: #764ba2;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

    .commission-badge {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 0.85rem;
        font-weight: 500;
        display: inline-block;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    .edit-rate {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .edit-rate:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: scale(1.1);
    }

    .rates-footer {
        background: #f8f9fa;
        padding: 25px 30px;
        border-top: 1px solid #e9ecef;
    }

    .rates-info p {
        margin: 0;
        font-size: 0.9rem;
        color: #6c757d;
    }

    .calculator-btn .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .calculator-btn .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .exchange-rates-section {
            padding: 60px 0;
        }
        
        .rates-header {
            padding: 20px;
            text-align: center;
        }
        
        .rates-header .d-flex {
            flex-direction: column;
            gap: 15px;
        }
        
        .country-info {
            flex-direction: column;
            text-align: center;
            gap: 8px;
        }
        
        .rates-table {
            font-size: 0.85rem;
        }
        
        .rates-table thead th,
        .rates-table tbody td {
            padding: 12px 8px;
        }
        
        .rates-footer {
            padding: 20px;
            text-align: center;
        }
        
        .rates-footer .row {
            flex-direction: column;
            gap: 15px;
        }
    }

    /* Animation for rate updates */
    .rate-updated {
        animation: highlightRate 2s ease;
    }

    @keyframes highlightRate {
        0% { background: #fff3cd; }
        50% { background: #ffeaa7; }
        100% { background: transparent; }
    }

    /* Edit mode styles */
    .editing .rate-value {
        display: none;
    }

    .editing .rate-input {
        display: block !important;
    }

    .save-rate {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
    }

    .cancel-rate {
        background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
        color: white;
    }

    /* CTA Container en About Section */
.cta-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.btn-whatsapp:focus {
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Exchange Rates Section - Actualizaciones */
.commission-info {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.rate-details {
    margin-top: 8px;
}

.rates-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.rates-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(102, 126, 234, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-info div {
    display: flex;
    flex-direction: column;
}

.currency-code {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 2px;
    width: fit-content;
}

.rate-value {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    display: block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 8px;
    border: 1px solid #d4edda;
    margin-bottom: 4px;
}

/* Toast notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.toast-body {
    padding: 15px;
}

/* Responsive updates */
@media (max-width: 768px) {
    .cta-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .btn-whatsapp {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .country-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .rates-table {
        font-size: 0.85rem;
    }
    
    .rate-value {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .commission-info {
        font-size: 0.75rem;
    }
}

.cta-container {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 2rem;
        border-radius: 15px;
        border: 1px solid #e9ecef;
        margin-top: 2rem;
    }

    .btn-whatsapp {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        border: none;
        color: white;
        padding: 15px 30px;
        border-radius: 30px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }

    .btn-whatsapp:hover {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
        text-decoration: none;
    }

    .btn-whatsapp:focus {
        color: white;
        box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
    }

    @media (max-width: 768px) {
        .cta-container {
            padding: 1.5rem;
            margin-top: 1.5rem;
        }
        
        .btn-whatsapp {
            padding: 12px 24px;
            font-size: 0.95rem;
        }
    }