/* 
 * MAIN.CSS - HOST2.0
 * Design System & Custom Overrides
 * Based on Bootstrap 5
 */

:root {
    /* 🎨 CORPORATE PALETTE (From instrucciones.md) */
    --host-blue-primary: #142E52;
    /* Brand Identity */
    --host-bg-light: #F4F6F8;
    /* Main Background */
    --host-text-dark: #1F2933;
    /* Primary Text */
    --host-text-muted: #6B7280;
    /* Secondary Text */
    --host-border: #E5E7EB;
    /* Subtle Borders */

    /* 🟢 ACCENTS */
    --host-cyan: #0084FF;
    /* High Tech Accent */
    --host-green: #10B981;
    /* Success / Active */

    /* 📐 SPACING & TYPOGRAPHY */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    background-color: var(--host-bg-light);
    color: var(--host-text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--host-blue-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* =========================================
   BOOTSTRAP OVERRIDES (Helper Classes)
   ========================================= */

.text-primary-host {
    color: var(--host-blue-primary) !important;
}

.bg-primary-host {
    background-color: var(--host-blue-primary) !important;
}

.text-accent {
    color: var(--host-cyan);
}

.btn-primary-host {
    background-color: var(--host-blue-primary);
    border: 2px solid var(--host-blue-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary-host:hover {
    background-color: transparent;
    color: var(--host-blue-primary);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.15);
}

.btn-accent {
    background-color: var(--host-cyan);
    color: var(--host-blue-primary);
    border: none;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* =========================================
   CUSTOM COMPONENTS (From arquitectura_web.md)
   ========================================= */

/* 1. HERO SECTION (Video Background) */
.hero-section {
    position: relative;
    height: 85vh;
    /* Almost full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 42, 117, 0.95) 0%, rgba(12, 53, 94, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* 2. GLASSMORPHISM NAVBAR */
.navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    /* More transparent */
    backdrop-filter: blur(16px);
    /* Higher blur for readability */
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 3. BENTO GRID (Services) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.bento-card {
    background: #fff;
    border: 1px solid var(--host-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--host-blue-primary);
}

.bento-card.featured {
    background: var(--host-blue-primary);
    color: white;
    grid-column: 1 / -1;
    /* Scale full width */
    text-align: center;
    align-items: center;
    padding: 40px;
}

.bento-card.featured h3,
.bento-card.featured p {
    color: white;
    max-width: 800px;
    /* Prevent text from being too wide */
}

.bento-card.featured .icon-box {
    background: rgba(255, 255, 255, 0.15);
    color: var(--host-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. TECH CARDS (Infrastructure) */
.tech-spec-card {
    background: #fff;
    border-left: 4px solid var(--host-blue-primary);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* 5. FLOATING AGENT WIDGET */
.agent-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.agent-widget:hover {
    transform: scale(1.05);
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: var(--host-blue-primary);
    border: 2px solid var(--host-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.4);
    position: relative;
}

.agent-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: var(--host-green);
    border: 2px solid #fff;
    border-radius: 50%;
}

.agent-tooltip {
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--host-blue-primary);
    animation: fadePulse 3s infinite;
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* UTILITIES */
.text-gradient {
    background: linear-gradient(135deg, var(--host-blue-primary) 0%, var(--host-cyan) 100%);
    background-clip: text;
    /* standard */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* =========================================
   COOKIE BANNER & MODAL
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 24px;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: slideUpFade 0.5s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-content {
    flex: 1 1 500px;
}

.cookie-title {
    font-weight: 700;
    color: var(--host-blue-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background-color: var(--host-blue-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
    background-color: #07306e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.btn-cookie-reject {
    background-color: transparent;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-cookie-reject:hover {
    background-color: #F3F4F6;
    color: #374151;
    border-color: #D1D5DB;
}

.btn-cookie-settings {
    background-color: transparent;
    color: var(--host-blue-primary);
    border: none;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.btn-cookie-settings:hover {
    color: #0d3b66;
}

/* Modal */
.cookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-backdrop.show {
    opacity: 1;
}

.cookie-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal-backdrop.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--host-blue-primary);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #FAFAFA;
}

/* Switch Toggles */
.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.cookie-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-option-info {
    padding-right: 20px;
}

.cookie-option-title {
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 4px;
    display: block;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--host-green);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--host-green);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input:disabled+.slider {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

input:disabled+.slider:before {
    background-color: #F3F4F6;
}

@keyframes slideUpFadeMobile {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        border-radius: 20px 20px 0 0;
        padding: 20px 20px 30px;
        /* Safe area */
        animation: slideUpFadeMobile 0.5s ease-out forwards;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .cookie-content {
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .btn-cookie-accept,
    .btn-cookie-reject,
    .btn-cookie-settings {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .btn-cookie-settings {
        padding: 8px;
        order: 3;
        /* Move to bottom */
    }

    .btn-cookie-reject {
        order: 2;
    }

    .btn-cookie-accept {
        order: 1;
    }
}


/* =========================================
   LOGO CAROUSEL (Marquee Effect) - FIXED
   ========================================= */
.logo-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel::before,
.logo-carousel::after {
    display: none;
    /* Replaced by mask-image */
}

.logo-track {
    display: flex;
    flex-wrap: nowrap;
    /* CRITICAL: Prevent stacking */
    width: calc(200px * 15);
    /* Adjust based on number of slides * width */
    animation: scroll 40s linear infinite;
}

.logo-item {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    flex-shrink: 0;
    /* CRITICAL: Prevent shrinking */
}

.logo-item img {
    max-height: 100%;
    width: auto;
    /* If logos are strictly white pngs: */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 5));
    }

    /* Move by 5 items (one set) */
}


/* =========================================
   MIGRATION SECTION (Process Flow)
   ========================================= */
.migration-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/backgrounds/coming-soon-page-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.migration-section::before {
    content: "";
    /* Overlay to ensure text readability */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.85);
    /* Dark Blue Overlay for contrast */
    z-index: 1;
    backdrop-filter: blur(3px);
}

.migration-section .container {
    position: relative;
    z-index: 2;
    color: #fff;
    /* White text */
}

/* Ensure headings and paragraphs in migration are white */
.migration-section h2,
.migration-section h4,
.migration-section p {
    color: #fff;
}

.migration-section p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.step-card {
    background: transparent;
    border: none;
    text-align: center;
    position: relative;
    padding: 20px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper-lg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--host-bg-light) 0%, #fff 100%);
    border: 1px solid var(--host-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-wrapper-lg svg {
    width: 32px;
    height: 32px;
    stroke: var(--host-blue-primary);
}

/* Connecting line design */
.steps-connector {
    position: relative;
}

.steps-connector::before {
    content: "";
    position: absolute;
    top: 60px;
    /* Aligns with icon center approx */
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: var(--host-border);
    z-index: 1;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 992px) {
    .steps-connector::before {
        display: block;
    }
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--host-green);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/backgrounds/counter-one-bg-shape.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax */
    background-color: var(--host-blue-primary);
    /* Fallback/Blend */
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.95);
    /* Deep Dark Overlay */
    z-index: 1;
}

.pricing-container {
    position: relative;
    z-index: 2;
}

/* Pricing Toggle */
.pricing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.pricing-btn {
    border: none;
    background: transparent;
    color: white;
    padding: 10px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-btn.active {
    background: var(--host-cyan);
    color: var(--host-blue-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Pricing Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.pricing-card h4 {
    color: #fff;
    /* Fix contrast */
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--host-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Highlight Featured Card */
.pricing-card.popular {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--host-cyan);
    transform: scale(1.05);
    /* Make it bigger */
    z-index: 3;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--host-cyan);
    color: var(--host-blue-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.price-text .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
    color: var(--host-cyan);
}

.price-text .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.price-text .period {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: -5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   SUBPAGES HEADER
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--host-blue-primary) 0%, #0d3b66 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/backgrounds/process-two-bg.webp') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumb {
    justify-content: center;
}

.breadcrumb-item a {
    color: var(--host-cyan);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.feature-list li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list svg {
    color: var(--host-cyan);
    flex-shrink: 0;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer-modern {
    font-size: 0.95rem;
}

.footer-links li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--host-cyan) !important;
    padding-left: 8px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.hover-accent {
    transition: all 0.3s ease;
}

/* =========================================
   PROCESS SECTION (Timeline)
   ========================================= */
.process-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/backgrounds/process-two-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.process-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.9);
    /* Deep blue overlay */
    z-index: 1;
}

.process-content {
    position: relative;
    z-index: 2;
}

.process-step {
    position: relative;
    padding: 20px;
    margin-top: 40px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--host-blue-primary) 0%, #2f56b0 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(47, 86, 176, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--host-cyan);
    opacity: 0.5;
}

/* Connecting Arrows (Desktop only) */
.process-step::after {
    content: "";
    position: absolute;
    top: 60px;
    /* Center of number */
    right: -50%;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,25 Q100,25 190,25' stroke='rgba(255,255,255,0.1)' stroke-width='2' fill='none' stroke-dasharray='5,5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    display: none;
}

@media (min-width: 992px) {
    .col-lg-4:not(:last-child) .process-step::after {
        display: block;
    }
}

.process-step h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   TEXT MARQUEE (Separator)
   ========================================= */
.text-marquee {
    background: linear-gradient(90deg, #f0f4ff 0%, #e6f7ff 100%);
    /* Light Corporate Background */
    padding: 25px 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--host-blue-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-item span {
    color: var(--host-cyan);
    /* Star/Separator color */
    font-size: 1.2rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    background-color: #ffffff;
    /* Light background for contrast */
    padding: 80px 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.newsletter-box {
    background: transparent;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-content h2 {
    color: var(--host-blue-primary);
    background: none;
    -webkit-text-fill-color: initial;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.newsletter-content p {
    color: var(--host-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.newsletter-form-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.newsletter-input-group {
    background: #f8f9fa;
    /* Light input bg */
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--host-blue-primary);
    box-shadow: 0 0 10px rgba(10, 37, 64, 0.1);
}

.newsletter-input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    color: var(--host-text-dark);
    padding-left: 15px;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: #adb5bd;
}

.newsletter-btn {
    background: var(--host-blue-primary);
    color: white;
    border: 1px solid var(--host-blue-primary);
    border-radius: 6px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    background: #0d3b66;
    border-color: #0d3b66;
    box-shadow: 0 5px 15px rgba(10, 37, 64, 0.2);
}

.newsletter-check {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--host-text-muted);
}

/* =========================================
   MEGA MENU STYLES
   ========================================= */
@media (min-width: 992px) {
    .navbar .has-megamenu {
        position: static !important;
    }

    .megamenu {
        width: 700px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 100%;
        background-color: var(--host-blue-primary);
        /* Using corporate dark blue */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        margin-top: 10px;
    }
}

.megamenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 991px) {
    .megamenu-grid {
        grid-template-columns: 1fr;
    }

    .megamenu {
        background-color: #f8f9fa;
        /* Light on mobile to match dropdowns usually or dark if preferred */
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .megamenu-item {
        background-color: white !important;
        border: 1px solid #e9ecef !important;
        margin-bottom: 10px;
    }

    .megamenu-item:hover {
        background-color: #f1f3f5 !important;
    }

    .megamenu-content div {
        color: #1a1a1a !important;
    }

    .megamenu-icon {
        background-color: rgba(10, 37, 64, 0.1) !important;
        color: var(--host-blue-primary) !important;
    }
}

.megamenu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.megamenu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--host-cyan);
    transform: translateY(-2px);
}

.megamenu-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--host-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.megamenu-item:hover .megamenu-icon {
    background-color: var(--host-cyan);
    color: var(--host-blue-primary);
}

.megamenu-content {
    flex: 1;
}

.megamenu-content div {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.megamenu-content span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: block;
    line-height: 1.3;
}


.newsletter-check input {
    accent-color: var(--host-blue-primary);
    background: white;
    border-color: #ced4da;
}

/* Feature Cards Hover Effect */
.hover-card-green {
    transition: all 0.3s ease !important;
}

.hover-card-green:hover {
    background-color: #5DCEA1 !important;
    color: #ffffff !important;
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.hover-card-green:hover h4,
.hover-card-green:hover p,
.hover-card-green:hover .text-muted,
.hover-card-green:hover .text-dark,
.hover-card-green:hover .small {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Change the icon circle background to white on hover */
.hover-card-green:hover .rounded-circle {
    background-color: #ffffff !important;
}

/* Change SVG stroke/fill to green on hover to match the first card style */
.hover-card-green:hover svg {
    stroke: #5DCEA1 !important;
    color: #5DCEA1 !important;
}