/**
 * Open Desk PRO - Modern Landing Page Styles
 * Version: 2.0
 */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --secondary: #1A1A2E;
    --accent: #00D4AA;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

body.bg-dark {
    background: var(--gradient-dark);
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-custom.dark {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-custom {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--primary) !important;
}

.navbar-custom.dark .nav-link-custom {
    color: var(--white) !important;
}

.navbar-custom.dark .nav-link-custom:hover {
    color: var(--accent) !important;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-outline-custom.light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ===== PAGE HEADER (for internal pages) ===== */
.page-header {
    background: var(--gradient-dark);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ===== CARDS ===== */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ===== CUSTOM TABLES ===== */
.table-custom-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.table-custom {
    margin-bottom: 0;
    background: var(--white);
    border-collapse: collapse;
}

.table-custom thead th {
    background: #0074f4;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

.table-custom thead th:first-child {
    border-radius: 0;
}

.table-custom tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.table-custom tbody td:last-child {
    border-right: none;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr {
    transition: background 0.2s ease;
}

.table-custom tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.table-custom tbody tr:hover {
    background: var(--primary-light);
}

.table-custom .icon-check {
    color: var(--accent) !important;
    font-size: 1.25rem;
}

.table-custom .icon-forbidden {
    color: var(--gray-200) !important;
    font-size: 1rem;
}

/* ===== FAQ ACCORDION ===== */
.accordion-faq .accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.accordion-faq .accordion-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
}

.accordion-faq .accordion-header {
    padding: 0;
}

.accordion-faq .accordion-button {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    border: none !important;
    box-shadow: none !important;
}

.accordion-faq .accordion-button:not(.collapsed) {
    background: #0074f4 !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

.accordion-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 244, 0.25) !important;
}

.accordion-faq .accordion-button::after {
    background-size: 1.25rem;
    filter: none;
}

.accordion-faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-faq .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid var(--gray-200);
}

.accordion-faq .accordion-collapse {
    border: none;
}

/* ===== UTILITY CLASSES ===== */
.bg-primary-light {
    background: var(--primary-light);
}

.bg-gray-50 {
    background: var(--gray-50);
}

/* ===== FEATURE BULLETS ===== */
.feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== ENROLAMIENTO STEPS ===== */
.enrolamiento-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.enrolamiento-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== INTEGRATIONS SECTION ===== */
.integrations-section {
    background: var(--gray-50);
}

.integration-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    height: 110px;
    transition: all 0.3s ease;
}

.integration-logo:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.08);
}

.integration-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.integration-logo--mercadopago img {
    max-height: 80px;
}

/* Content Card (for certificates, privacy, etc.) */
.content-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.content-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-card h4:first-child {
    margin-top: 0;
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.content-card ul {
    color: var(--text-muted);
    line-height: 1.8;
    padding-left: 1.5rem;
}

.content-card ul li {
    margin-bottom: 0.5rem;
}

/* Distributor Card */
.distributor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.distributor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.distributor-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.distributor-card .contact-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.distributor-card .contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.distributor-card .contact-info a:hover {
    color: var(--white);
}

.distributor-card .certifications {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.distributor-card .certifications h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.distributor-card .certifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.distributor-card .certifications li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.distributor-card .certifications li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background: var(--gray-50);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.benefit-check i {
    color: var(--white);
    font-size: 0.75rem;
}

/* ===== APPLICATIONS SECTION ===== */
.applications-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.applications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.app-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.app-card h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* ===== BADGES ===== */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid rgba(0, 212, 170, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.partner-badge i {
    color: var(--accent);
    font-size: 1.25rem;
}

.partner-badge span {
    color: var(--white);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--gray-50);
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-control-custom {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    outline: none;
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background-color: rgba(0, 212, 170, 0.1);
    color: #047857;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ===== INFO CARD ===== */
.info-card {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 3rem;
    color: var(--white);
    height: 100%;
}

.info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.9;
}

.info-item span {
    color: var(--white);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--secondary);
    padding: 3rem 0;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    color: var(--white);
}

/* ===== FLOATING SHAPES ===== */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

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

/* ===== TABS ===== */
.tab-custom {
    border: none;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 0.5rem;
    display: inline-flex;
}

.tab-custom .nav-link {
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-custom .nav-link.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-stat {
        flex: 1 1 40%;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-card, .info-card, .content-card {
        padding: 2rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .distributor-card {
        padding: 1.5rem;
    }
}

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}
