/* Global Variables & Design System */
:root {
    /* Light Mode (Default) */
    --primary: #bc2f39;
    --primary-glow: rgba(188, 47, 57, 0.4);
    --secondary: #64748b;
    --accent: #e06501;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --primary: #ff4d5a;
    --primary-glow: rgba(255, 77, 90, 0.4);
    --secondary: #94a3b8;
    --accent: #ff8c33;
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.8);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans Flex', sans-serif;
}

body {
    background: linear-gradient(to right, #f0f1fe, #f4f7ff);
    background-attachment: fixed;
    color: var(--text-main);
    transition: color var(--transition-speed);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Paragraph Font Specific Rule */
p,
span:not(.logo-link span, .btn span, .logo span, .logo-img span, .mode-icon) {
    font-family: 'Sansation', sans-serif;
}

/* Container Rule: No fixed width, 7% margins */
.container {
    margin-left: 7%;
    margin-right: 7%;
    position: relative;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
    /* Ensure content is in front of rocket */
}

/* Top Bar */
.top-bar {
    background: linear-gradient(to right, #e06501, #bc2f39);
    padding: 10px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: #ffffff;
    opacity: 1;
}

.top-bar .sep {
    opacity: 0.5;
    margin: 0 4px;
}

/* Header & Navigation */
.main-header {
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 75px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section (Web Design Service) */
.hero-web-service {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(188, 47, 57, 0.05) 0%, transparent 70%);
}

.hero-web-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-web-service h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
    letter-spacing: -0.02em;
}

.hero-web-rocket {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    width: 80px;
    height: auto;
    top: 0;
    left: 0;
    will-change: transform, opacity;
    transform: translate3d(-200px, -200px, 0);
}

.hero-web-rocket img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 35px rgba(188, 47, 57, 0.2));
}

.hero-web-carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 140px;
    z-index: 2;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
    display: block;
    pointer-events: none;
    padding: 0 20px;
    font-size: 1.75rem;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 300;
    text-align: center;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-item.prev {
    opacity: 0;
    transform: translateX(-100%);
}

/* Styling the STRONG tags inside carousel */
.carousel-item strong {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.carousel-item strong::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.1;
    z-index: -1;
    border-radius: 4px;
}

[data-theme="dark"] .carousel-item strong {
    color: var(--accent);
}

[data-theme="dark"] .carousel-item strong::after {
    background: var(--accent);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.4);
    border-color: var(--primary-glow);
}

.btn {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
    padding: 14px 40px;
    border-radius: 14px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--primary-glow);
    background: #a32831;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
    padding: 12px 38px;
    /* Slightly less to account for border */
    border-radius: 14px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin-left: 5%;
        margin-right: 5%;
    }

    .hero-web-service {
        min-height: 60vh;
        padding: 80px 0 40px;
    }

    .hero-web-service h1 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }

    .hero-web-carousel {
        height: 220px;
    }

    .carousel-item {
        font-size: 1.25rem;
    }

    .hero-web-rocket {
        width: 80px;
    }


}

/* Standard Site Layout Components */
.nav-container {
    margin-left: 7%;
    margin-right: 7%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-toggle {
    flex: 0 0 auto;
}

.header-cta {
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    .container {
        margin-left: 3%;
        /* More compact for mobile */
        margin-right: 3%;
    }

    .top-bar-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .breadcrumb ol {
        justify-content: center;
    }

    .top-contact {
        justify-content: center;
        display: flex;
        gap: 15px;
        width: 100%;
    }

    p,
    li {
        font-size: 0.85rem !important;
        /* Approximately 20% reduction from 1.05-1.1rem */
    }

    h2 {
        font-size: 2.2rem !important;
    }

    h3 {
        font-size: 1.6rem !important;
    }

    .main-header {
        height: 70px !important;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 15px;
        margin: 0;
        height: 100%;
    }

    .header-logo {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .header-logo .logo-img {
        height: 28px !important;
        width: auto;
    }

    .header-nav {
        display: none !important;
    }

    .header-toggle {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    .header-cta {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .header-cta .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 0;
}

.header-nav nav ul {
    display: flex;
    list-style: none;
}

.header-nav nav ul li {
    font-weight: 500;
    font-size: 0.95rem;
}

.header-nav nav ul li a {
    color: var(--text-main);
    display: inline-block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb a {
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s;
    font-weight: 500;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.top-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-contact a {
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s;
    font-weight: 500;
}

.top-contact a:hover {
    opacity: 0.8;
}

.top-contact .sep {
    color: rgba(255, 255, 255, 0.5);
}



/* Pricing Section */
.pricing-section {
    position: relative;
    z-index: 2;
    padding: 60px 0 !important;
    /* Reduced from 100px */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 2rem;
}

.pricing-card {
    padding: 0;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: transparent; /* Card itself is transparent */
    box-shadow: none;
    z-index: 5;
}



.pricing-card.featured {
    background: transparent !important;
    box-shadow: none;
}

.pricing-grid:hover .pricing-card:not(:hover) {
    opacity: 0.6;
    filter: grayscale(0.2);
    background: transparent !important;
    box-shadow: none !important;
}

.pricing-card:hover {
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10;
    opacity: 1 !important;
}

.plan-eco-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.plan-std-bg {
    background: linear-gradient(135deg, #450a0a 0%, #991b1b 100%);
}

.plan-pro-bg {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

/* Header Text inversion for dark backgrounds */
.pricing-header.plan-eco-bg,
.pricing-header.plan-std-bg,
.pricing-header.plan-pro-bg {
    color: #ffffff;
    padding: 1.2rem 1rem;
    margin-bottom: 1rem; /* Space between header and body */
    position: sticky;
    top: 90px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pricing-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.plan-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
    color: #fbc02d;
    line-height: 1;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.plan-price.price-negotiable {
    font-size: 1.6rem;
    line-height: 1;
}

.pricing-features {
    padding: 1.5rem 2rem;
    color: var(--text-main);
}

.pricing-action {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 2rem;
    color: var(--text-main);
}

.pricing-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.pricing-features strong {
    font-weight: 700;
}

/* Specific strong colors based on plan theme */
.pricing-card:nth-of-type(1) .pricing-features strong {
    color: #1e3a8a;
    /* Dark Blue */
}

.pricing-card:nth-of-type(2) .pricing-features strong {
    color: #991b1b;
    /* Dark Red */
}

.pricing-card:nth-of-type(3) .pricing-features strong {
    color: #065f46;
    /* Dark Green */
}

.plan-std-bg .badge {
    background: #ffffff;
    color: var(--primary);
}



.pricing-card .badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--primary);
    color: white;
    padding: 8px 45px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}

.pricing-header h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.pricing-header h3 em {
    font-size: 1.4rem;
    font-style: normal;
    color: #fbc02d;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header h3 strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff !important;
    display: block;
    margin-top: 0.3rem;
}

.price-negotiable {
    font-size: 1.8rem !important;
}

.pricing-body {
    flex-grow: 1;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}

.pricing-body ul li {
    padding: 0.4rem 0;
    /* Reduced from 0.6rem */
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    /* Slightly smaller for compactness */
    line-height: 1.4;
}

.pricing-body ul li:last-child {
    border-bottom: none;
}

.pricing-footer {
    text-align: center;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .pricing-card.featured {
        transform: none;
        background: transparent !important;
        box-shadow: none !important;
    }


}

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

/* Modal lead form */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    /* Much lighter/almost solid */
    margin: 5vh auto;
    padding: 3.5rem;
    width: 90%;
    max-width: 550px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    right: 15px;
    /* Moved inside for better stability */
    top: 15px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    /* Only color transition */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    padding: 0;
    margin: 0;
    border: none;
}

.close-button:hover {
    background: #a32831;
    transform: none;
    /* No movement on hover */
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    /* More visible border on light bg */
    background: #ffffff;
    color: #1e293b;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* Utility & Component Classes (To replace inline styles) */
.full-width-section {
    width: 100%;
}

.hero-cta-container {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Carousel Logic (Scroll Snap) */
@media (max-width: 1024px) {
    .pricing-carousel-wrapper {
        position: relative;
        width: 100vw;
        margin-left: calc(-3%);
        margin-right: calc(-3%);
    }

    .pricing-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.5rem 2rem;
    }

    .pricing-grid::-webkit-scrollbar {
        height: 4px;
    }

    .pricing-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .pricing-card {
        flex: 0 0 85%;
        width: 85%;
        border-radius: 20px;
        transform: none !important;
        height: auto;
    }

    .pricing-nav-btn {
        display: none !important;
    }

    /* Disable sticky headers on mobile to avoid layout issues with carousel */
    .pricing-header.plan-eco-bg,
    .pricing-header.plan-std-bg,
    .pricing-header.plan-pro-bg {
        position: relative !important;
        top: 0 !important;
    }
}

.pricing-nav-btn {
    display: none;
}

/* Hidden on desktop */


.price-negotiable {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

.strategic-location-grid {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.margin-top-1 {
    margin-top: 1rem;
}

.margin-bottom-1-5 {
    margin-bottom: 1.5rem;
}

.features-highlight-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--primary-glow);
}

.list-none {
    list-style: none;
    padding: 0;
}

.margin-bottom-1 {
    margin-bottom: 1rem;
}

.work-process-section {
    text-align: center;
}

.process-steps-container {
    counter-reset: process-counter;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Back to 5 steps */
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
}

/* Connecting line */
.process-steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
    z-index: 1;
}

.process-step {
    padding: 2.5rem 1.5rem 1.5rem;
    /* Space for number */
    border-radius: 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 140px;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
}

/* Numbered markers */
.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    top: -20px;
    width: 40px;
    height: 40px;
    background: #1e3a8a;
    /* Plan Económico Blue */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
    border: 3px solid var(--bg-main);
}

.process-step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-top: 1rem;
}

.process-steps-container.process-std {
    grid-template-columns: repeat(6, 1fr);
}

.process-steps-container.process-std::before {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.process-steps-container.process-std .process-step::before {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}







.process-steps-container.process-pro {
    grid-template-columns: 1fr;
    width: 100%;
}

.process-steps-container.process-pro::before {
    display: none;
}

.process-steps-container.process-pro .process-step::before {
    background: #059669;
    /* Emerald Green */
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
    left: 50px;
    /* Position number to the left in wide layout */
    top: -20px;
}



.pro-step-full {
    padding: 3rem !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 3.5rem;
}

.pro-step-full h4 {
    flex: 1;
    font-size: 1.6rem !important;
    margin-top: 0 !important;
}

.pro-step-full p {
    flex: 2;
    margin-top: 0 !important;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .pro-step-full {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .process-steps-container.process-pro .process-step::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {

    .process-steps-container,
    .process-steps-container.process-std,
    .process-steps-container.process-pro,
    .training-grid,
    .niche-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .process-steps-container::before,
    .process-steps-container.process-std::before {
        display: none;
        /* Hide connecting lines on mobile */
    }

    .training-card {
        flex-direction: column;
        text-align: center;
    }

    .training-card h3 {
        flex: 0 0 auto;
        width: 100%;
        border-radius: 15px 15px 0 0;
    }
}

.margin-top-4 {
    margin-top: 4rem;
}

.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.niche-card {
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    transition: 0.3s;
}

.niche-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.niche-card p {
    font-size: 0.8rem;
}

.payment-methods-grid {
    padding: 1rem 0;
    /* Minimal vertical padding */
    display: grid;
    /* Proportions: 30% | 30% | 40% using fractional units to account for gaps */
    grid-template-columns: 3fr 3fr 4fr;
    gap: 2.5rem;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
}

.payment-title-col h2 {
    font-size: 2.8rem;
    /* Adjusted for better fit in 30% column */
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.training-section {
    padding: 4rem 0;
}

.training-grid {
    display: grid;
    grid-template-columns: 2.5fr 7.5fr;
    /* 25% / 75% */
    gap: 4rem;
    align-items: flex-start;
}

.training-info h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.training-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* More compact gap */
}

.training-card {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    /* Reduced internal gap */
    padding: 0;
    /* Removed padding */
    border-radius: 15px;
    transition: 0.3s;
}

.training-card h3 {
    flex: 0 0 240px;
    /* Slightly narrower */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    /* More compact padding */
    border-radius: 0 15px 15px 0;
    font-size: 0.95rem;
    /* Slightly smaller font */
    font-weight: 800;
    text-align: center;
    color: white !important;
    -webkit-text-fill-color: white !important;
    margin: 0;
}

.training-card p {
    flex: 1;
    margin: 0;
    align-self: center;
    font-size: 0.92rem;
    /* Slightly smaller font */
}

/* Unique backgrounds for each item's H3 */
.training-card:nth-child(1) h3 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.training-card:nth-child(2) h3 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.training-card:nth-child(3) h3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.training-card:nth-child(4) h3 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.training-card:nth-child(5) h3 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.training-card:nth-child(6) h3 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}



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

    .training-card {
        flex-direction: column;
        text-align: center;
    }

    .training-card h3 {
        flex: 0 0 auto;
        width: 100%;
    }
}

.payment-card {
    padding: 1.8rem;
    /* More compact padding */
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-card-featured {
    background: var(--primary-glow);
    border: 1px solid rgba(188, 47, 57, 0.2);
}

.btn-full-width {
    width: 100%;
    margin-top: 1rem;
}

.payment-sub-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 2.5rem;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .payment-title-col {
        text-align: center;
        margin-bottom: 2rem;
    }

    .payment-title-col h2 {
        font-size: 2.5rem;
    }
}

/* Local Sectors Section Styles */
.local-sectors-section {
    text-align: center;
}

.local-sectors-section .niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.local-sectors-section .niche-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.local-sectors-section .niche-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 800;
}

.local-sectors-section .niche-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}



.section-cta-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 3.5rem 0;
}

.section-cta-row .btn {
    min-width: 220px;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .section-cta-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 2.5rem 1rem;
    }

    .section-cta-row .btn {
        width: 100%;
    }
}

/* Footer Styles */
.main-footer {
    width: 100%;
    margin-top: 6rem;
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    /* No glass background here anymore */
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-left-col {
    max-width: 300px;
}

.footer-right-col {
    text-align: right;
    width: 100%;
}

.footer-info-block {
    display: flex;
    justify-content: right;
    gap: 1.5rem;
}

.footer-contact-title {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.footer-nav-list {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.footer-contact-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-info-block h3 {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
    transition: color 0.3s ease;
}


.footer-nav-list li {
    position: relative;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-divider {
    margin: 3rem 0 2rem;
    border: 0;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-left-col {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-right-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-info-block {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-left: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem 0;
        text-align: center;
    }

    .footer-contact-title {
        justify-content: center;
        text-align: center;
    }

    .footer-nav-list {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-info-block h3 {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-right-col {
        grid-template-columns: 1fr;
    }
}

/* Mobile Panel Styles */
.mobile-footer-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100dvh;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2100;
    transition: right 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--glass-border);
}

.mobile-footer-panel.active {
    right: 0;
}

.mobile-panel-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    z-index: 2200;
    display: none; /* Only show on mobile */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-panel-toggle:hover {
    transform: scale(1.1);
}

.mobile-panel-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Active State (X) */
.mobile-panel-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-panel-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.mobile-panel-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-panel-toggle {
        display: flex;
    }
}

.mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.panel-logo {
    height: 30px;
    width: auto;
}

.mobile-panel-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-panel-nav ul li {
    margin: 0;
}

.mobile-panel-nav ul li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease;
}

.mobile-panel-nav ul li a:hover {
    color: var(--primary);
}

.mobile-panel-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-panel-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-panel-contact-item span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.mobile-panel-contact-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.mobile-panel-contact-item a:hover {
    color: var(--primary);
}

/* Overlay */
.mobile-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}