/* 
  LINKEX DIGITAL - PREMIUM DESIGN SYSTEM v2.0
  Colors: Electric Blue (#0ea5e9) & Indigo (#6366f1)
  Typography: Outfit (Headings) & Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --primary: #0067FF;
    --primary-rgb: 0, 103, 255;
    --accent: #0052cc;
    --accent-rgb: 0, 82, 204;
    --secondary: #0f172a;

    /* Backgrounds */
    --bg-dark: #020617;
    --bg-darker: #010413;
    --bg-surface: #0f172a;
    --bg-surface-light: #1e293b;

    /* Text */
    --text-white: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #94a3b8;
    --text-dim: #64748b;
    --text-muted: #686868;

    /* Light Section */
    --bg-light: #ffffff;
    --bg-light-alt: #f8fafc;

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Transitions & Misc */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Premium Page Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(14, 165, 233, 0.08);
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--accent);
    border-radius: 50%;
    animation: spinLoader 0.8s cubic-bezier(0.4, 0.1, 0.3, 0.9) infinite;
}

.loader-text {
    display: none;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOutPage {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.alternate-bg {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

/* Typography Utilities */
.gradient-text {
    color: var(--primary);
}

.gradient-text-animated {
    color: var(--primary);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-base);
    box-shadow: none !important;
    transform: none !important;
}

.btn:hover {
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    /* box-shadow: 0 4px 6px -1px rgba(var(--primary-rgb), 0.2), 0 2px 4px -1px rgba(var(--primary-rgb), 0.1); */
}

.btn-primary:hover {
    /* transform: translateY(-2px); */
    background-color: var(--accent);
    /* box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3), 0 4px 6px -2px rgba(var(--primary-rgb), 0.2); */
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

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

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

.btn-block {
    width: 100%;
}

/* Navbar - only targets the main navigation bar, NOT breadcrumb navs */
nav#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, padding 0.4s ease;
}

nav#navbar.nav-up {
    transform: translateY(-100%);
}

nav#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

nav#navbar.scrolled .logo,
nav#navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.logo img {
    height: 55px;
    width: auto;
    vertical-align: middle;
    transition: var(--transition-base);
}

.logo .logo-dark {
    display: none;
}

nav#navbar.scrolled .logo .logo-white {
    display: none;
}

nav#navbar.scrolled .logo .logo-dark {
    display: block;
}

nav#navbar.scrolled .nav-links a:hover,
nav#navbar.scrolled .nav-links a.active {
    color: var(--primary);
}

nav#navbar.scrolled .mobile-menu-btn span {
    background: var(--text-dark);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span {
    background: white !important;
}

.mobile-only {
    display: none;
}

/* Nav links button resets to prevent standard link style overrides */
.nav-links .btn {
    padding: 14px 32px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-animated-bg::before,
.hero-animated-bg::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1;
}

.hero-animated-bg::before {
    background: rgba(var(--primary-rgb), 0.3);
    top: -20%;
    left: -10%;
    animation: blob-move-1 25s infinite alternate ease-in-out;
}

.hero-animated-bg::after {
    background: rgba(var(--accent-rgb), 0.3);
    bottom: -20%;
    right: -10%;
    animation: blob-move-2 28s infinite alternate-reverse ease-in-out;
}

@keyframes blob-move-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 20%) scale(1.1);
    }

    100% {
        transform: translate(-10%, 10%) scale(0.9);
    }
}

@keyframes blob-move-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20%, -10%) scale(0.9);
    }

    100% {
        transform: translate(10%, -20%) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(var(--primary-rgb), 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Sections UI */
.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-surface-light);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.15);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Solutions Showcase */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.template-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    height: 100%;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.template-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.template-card:hover .template-img {
    transform: scale(1.05);
}

.template-overlay {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    background: #ffffff;
    flex-grow: 1;
}

.template-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 12px;
    box-shadow: none;
}

.template-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.template-desc {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 400;
    flex-grow: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Nuevos estilos de tarjeta rediseñada === */
.tc-img-wrap {
    position: relative;
    overflow: hidden;
}

.tc-cat-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tc-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.tc-feature-dot {
    width: 20px;
    height: 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.tc-btn {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 8px;
    margin-top: auto;
}

/* Íconos con texto corto (variante del inicio) */
.tc-icon-features {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.tc-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.tc-icon-circle {
    width: 46px;
    height: 46px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.template-card:hover .tc-icon-circle {
    background: rgba(var(--primary-rgb), 0.15);
}

.tc-icon-item span {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 600;
    line-height: 1.3;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-left: 4px solid transparent;
    transition: var(--transition-base);
}

.blog-card:hover {
    border-left-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-img-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.blog-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.4));
    transition: var(--transition-base);
    z-index: 1;
}

.blog-card:hover .blog-img-container::after {
    background: rgba(15, 23, 42, 0.1);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9) saturate(0.95);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
}

.blog-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Clients */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px 100px;
    align-items: center;
    margin-top: 4.5rem;
}

.client-logo img {
    height: 58px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-base);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form-container {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

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

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: shake 0.4s ease-in-out;
}

.form-group input.is-invalid:focus,
.form-group textarea.is-invalid:focus,
.form-group select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.form-group.has-error .error-message {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-bottom: 10px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.light-form .form-group input,
.light-form .form-group textarea,
.light-form .form-group select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

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

.light-form .form-group input.is-invalid,
.light-form .form-group textarea.is-invalid,
.light-form .form-group select.is-invalid {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    background: var(--bg-darker);
}

.footer-top-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
}

.about-col p {
    color: var(--text-gray);
    margin-bottom: 24px;
    max-width: 300px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    /* Prevent off-canvas menu layout overflow bugs */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 100px 40px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        align-items: flex-start;
        gap: 24px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    /* Hero responsiveness */
    .hero h1 {
        font-size: clamp(2rem, 7.5vw, 3rem);
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* Stack buttons on mobile devices under 480px */
    @media (max-width: 480px) {
        .hero h1 {
            font-size: clamp(1.8rem, 8vw, 2.4rem);
        }

        .hero-btns {
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-width: 320px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-btns .btn {
            width: 100%;
        }
    }

    /* Ensure mobile drawer links are always light and high-contrast, even when scrolled */
    .nav-links a,
    nav.scrolled .nav-links a,
    #navbar.nav-detail.scrolled .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .nav-links a:hover,
    .nav-links a.active,
    nav.scrolled .nav-links a:hover,
    nav.scrolled .nav-links a.active,
    #navbar.nav-detail.scrolled .nav-links a:hover,
    #navbar.nav-detail.scrolled .nav-links a.active {
        color: white !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-content>div:last-child {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .templates-grid,
    .blog-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .clients-grid {
        gap: 40px 30px;
        margin-top: 3rem;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

/* Modals (Generic) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    overflow-y: auto;
    /* Enable vertical scroll if content is taller than screen */
    padding: 40px 20px;
    opacity: 0;
    transition: var(--transition-base);
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: translateY(40px);
    transition: var(--transition-base);
    overflow: hidden;
    padding: 50px;
    margin: auto;
    /* Works with flexbox to allow scrolling without top/bottom cut-offs */
}

@media (max-width: 576px) {
    .modal-content {
        padding: 35px 20px;
    }
}

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

.modal-body {
    padding: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.3rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.close-modal:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.light-section .filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

/* Sidebar & Search Styles */
.solutions-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
    transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1), gap 0.4s ease;
}

.solutions-layout.filters-hidden {
    grid-template-columns: 1fr;
}

.solutions-layout.filters-hidden .solutions-sidebar {
    display: none;
}

.solutions-sidebar {
    position: sticky;
    top: 100px;
}

.search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.search-wrapper i.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    color: var(--text-dim);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.sidebar-filters h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-list .filter-btn {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    padding: 12px 20px;
    border: 1px solid transparent;
}

.filter-list .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toolbar & Toggle Button Styles */
.solutions-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
    transition: var(--transition-base);
}

.filter-toggle-btn:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.1), 0 4px 6px -2px rgba(var(--primary-rgb), 0.05);
}

.filter-toggle-btn i {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

@media (max-width: 992px) {
    .solutions-toolbar {
        display: none !important;
    }

    .solutions-layout {
        grid-template-columns: 1fr;
    }

    .solutions-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .filter-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-list .filter-btn {
        width: auto;
    }
}

.light-section .filter-btn:hover,
.light-section .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 
   LIGHT SECTION OVERRIDES 
   Placed at the end to ensure proper precedence over dark base styles
*/
.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.light-section .section-title h2 {
    color: var(--text-dark);
}

.light-section .section-desc {
    color: var(--text-muted);
}

.light-section .service-card {
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.light-section .service-card h3 {
    color: var(--text-dark);
}

.light-section .service-card p {
    color: var(--text-muted);
}

.light-section .service-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-12px);
}

.light-section .template-card {
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.light-section .blog-card {
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.light-section .blog-card h3 {
    color: var(--text-dark);
}

.light-section .blog-card p {
    color: var(--text-muted);
}

.light-section .blog-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.light-section .contact-info h3 {
    color: var(--text-dark);
}

.light-section .contact-desc {
    color: var(--text-muted);
}

.light-section .contact-item h4 {
    color: var(--text-dark);
}

.light-section .contact-item p {
    color: var(--text-muted);
}

.light-section .contact-form-container {
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.light-section .form-group label {
    color: var(--text-dark);
}

.light-section .form-group input,
.light-section .form-group textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: var(--text-dark);
}

.light-section .form-group input:focus,
.light-section .form-group textarea:focus {
    background: white;
    border-color: var(--primary);
}

.light-section .client-logo img {
    filter: grayscale(1) opacity(0.4);
}

.light-section .client-logo img:hover {
    filter: grayscale(0) opacity(1);
}

/* 
   FIX CONTRAST IN TEMPLATE CARDS 
 */
.template-card .btn-outline-white {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
    width: fit-content;
    align-self: center;
    border-radius: var(--radius-full);
    padding: 10px 32px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.template-card .btn-outline-white:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.template-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    box-shadow: none;
}

/* Footer Contrast */
.footer-col ul a {
    color: #94a3b8;
}

.footer-col ul a:hover {
    color: white;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    min-width: 300px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.toast.active {
    transform: translateX(0);
}

.toast.success {
    border-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
    font-size: 1.25rem;
}

.toast.error {
    border-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

.toast.info {
    border-color: var(--primary);
}

.toast.info .toast-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Service Detail Pages Responsive Styles */
.service-detail-hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.service-detail-hero h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.service-detail-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
    line-height: 1.6;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .service-detail-hero {
        padding: 120px 0 70px;
    }

    .service-detail-hero h1 {
        font-size: 2.8rem;
    }

    .service-detail-hero p {
        font-size: 1.1rem;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .service-detail-hero h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Detail Navigation Bar (Dark initially, turns white on scroll)
   ========================================================================== */
#navbar.nav-detail {
    background: #0f172a;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, padding 0.4s ease;
}

#navbar.nav-detail .logo-white {
    display: block;
}

#navbar.nav-detail .logo-dark {
    display: none;
}

#navbar.nav-detail .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.nav-detail .nav-links a:hover,
#navbar.nav-detail .nav-links a.active {
    color: white;
}

#navbar.nav-detail .mobile-menu-btn span {
    background: white;
}

#navbar.nav-detail .admin-access-btn {
    color: rgba(255, 255, 255, 0.7) !important;
}

#navbar.nav-detail .admin-access-btn:hover {
    color: var(--primary) !important;
}

/* Scrolled State for Detail Navigation Bar */
#navbar.nav-detail.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#navbar.nav-detail.scrolled .logo-white {
    display: none;
}

#navbar.nav-detail.scrolled .logo-dark {
    display: block;
}

#navbar.nav-detail.scrolled .nav-links a {
    color: var(--text-dark);
}

#navbar.nav-detail.scrolled .nav-links a:hover,
#navbar.nav-detail.scrolled .nav-links a.active {
    color: var(--primary);
}

#navbar.nav-detail.scrolled .mobile-menu-btn span {
    background: var(--text-dark);
}

#navbar.nav-detail.scrolled .admin-access-btn {
    color: var(--text-gray) !important;
}

#navbar.nav-detail.scrolled .admin-access-btn:hover {
    color: var(--primary) !important;
}

/* ==========================================================================
   Process Section Styles
   ========================================================================== */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 50px;
}

/* Línea punteada de conexión (sólo desktop) */
@media (min-width: 993px) {
    .process-flow::before {
        content: '';
        position: absolute;
        top: 60px;
        /* Centrado con respecto a los círculos de iconos */
        left: 15%;
        right: 15%;
        height: 2px;
        background-image: linear-gradient(to right, var(--primary) 50%, transparent 50%);
        background-size: 15px 2px;
        background-repeat: repeat-x;
        z-index: 0;
        opacity: 0.3;
    }
}

.process-card {
    background: white;
    padding: 45px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(var(--primary-rgb), 0.12);
}

.process-icon-container {
    width: 90px;
    height: 90px;
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition-base);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.process-card:hover .process-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
}

.process-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
    z-index: 3;
    transition: var(--transition-base);
}

.process-card:hover .process-number {
    background: var(--secondary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.process-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.process-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.process-list {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.process-list li {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-list li i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Responsividad para móviles y tablets */
@media (max-width: 992px) {
    .process-flow {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-card {
        padding: 35px 24px;
    }
}

/* ==========================================================================
   Impact Section (Fixed Background Banner)
   ========================================================================== */
.impact-banner {
    position: relative;
    padding: 120px 0;
    background-image: url('assets/fixed_banner_bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    color: white;
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9) 30%, rgba(0, 103, 255, 0.75) 100%);
    z-index: 1;
}

.impact-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-content {
    text-align: left;
}

.impact-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #38bdf8;
    /* Light blue accent */
    margin-bottom: 12px;
}

.impact-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.gradient-text-light {
    background: linear-gradient(to right, #ffffff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-phrase {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.impact-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-base);
}

.impact-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #38bdf8;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Responsividad para la sección de impacto */
@media (max-width: 1024px) {
    .impact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .impact-content {
        text-align: center;
    }

    .impact-phrase {
        display: inline-block;
        text-align: left;
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .impact-banner {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .impact-content h2 {
        font-size: 2.25rem;
    }

    .impact-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-stat-card {
        padding: 25px 20px;
    }

    .stat-num {
        font-size: 2.4rem;
    }
}

/* ==========================================================================
   Services Section Custom Highlight (Dark Gradient & Glow Blobs)
   ========================================================================== */
#servicios {
    background: linear-gradient(135deg, #020617 0%, #070e24 50%, #020617 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#servicios::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#servicios .container {
    position: relative;
    z-index: 1;
}

#servicios .section-title h2 {
    color: white;
}

#servicios .section-desc {
    color: var(--text-gray);
}

/* ==========================================================================
   Breadcrumbs Component
   ========================================================================== */
.breadcrumbs {
    padding: 20px 0;
    margin-bottom: 20px;
    width: 100%;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-gray);
}

.breadcrumbs li a {
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.breadcrumbs li a:hover {
    color: var(--primary);
}

/* Icono Separador de Flecha (FontAwesome) */
.breadcrumbs li:not(:last-child)::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.breadcrumbs li.active {
    color: var(--text-white);
    font-weight: 600;
}

/* Modificadores automáticos cuando las migas de pan están dentro de secciones claras */
.light-section .breadcrumbs li,
.light-section .breadcrumbs li a {
    color: var(--text-muted);
}

.light-section .breadcrumbs li a:hover {
    color: var(--primary);
}

.light-section .breadcrumbs li:not(:last-child)::after {
    color: var(--text-dim);
}

.light-section .breadcrumbs li.active {
    color: var(--text-dark);
}

/* Modificador para breadcrumbs sobre fondos claros sin wrapper .light-section */
.breadcrumbs-light {
    background: transparent;
}

.breadcrumbs-light li,
.breadcrumbs-light li a {
    color: var(--text-muted);
}

.breadcrumbs-light li a:hover {
    color: var(--primary);
}

.breadcrumbs-light li:not(:last-child)::after {
    color: var(--text-dim);
}

.breadcrumbs-light li.active {
    color: var(--text-dark);
}