:root {
    /* Color Palette */
    --primary: #0B2C4A;
    /* Azul Petróleo */
    --secondary: #1F5F8B;
    /* Azul Acero */
    --accent: #E6EEF5;
    /* Gris Azulado Claro */
    --text-on-dark: #D1D9E0;
    /* Gris Claro */
    --text-on-light: #2B2B2B;
    /* Gris Oscuro */
    --white: #ffffff;

    /* Functional Colors */
    --bg-light: #f8fafc;
    --success: #25D366;
    /* WhatsApp Green */

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(11, 44, 74, 0.1), 0 2px 4px -1px rgba(11, 44, 74, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(11, 44, 74, 0.1), 0 4px 6px -2px rgba(11, 44, 74, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    /* LexIAlogic Brand Palette */
    --lexi-blue-900: #081A33;
    --lexi-blue-800: #0E2A52;
    --lexi-blue-700: #1F4C86;
    --lexi-blue-500: #3A78B8;
    --lexi-blue-300: #7FB6E6;
    --lexi-blue-100: #EAF3FB;

    /* Custom Colors for Footer */
    --color-blue-dark: #081A33;
    --color-blue-navy: #0E2A52;
    --color-white: #ffffff;
    --color-blue-light: #7FB6E6;
    --color-gray-light: #EAF3FB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

body {
    color: var(--text-on-light);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-on-light);
    font-size: 1.1rem;
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    min-height: 100px;
    height: auto;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    /* Reduced slightly to help fit */
    flex-wrap: nowrap;
    /* Force single line */
    align-items: center;
}

nav ul li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    /* Slightly smaller to fit */
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 12px 16px;
    display: block;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10001;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 16px;
    right: 16px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg,
            var(--lexi-blue-900) 0%,
            var(--lexi-blue-800) 30%,
            var(--lexi-blue-700) 60%,
            var(--lexi-blue-500) 85%,
            var(--lexi-blue-300) 100%);
    color: var(--lexi-blue-100);
    padding: 140px 0 120px;
    /* Espacio arriba para el header y abajo para que el botón no se corte */
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 850px;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 65%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    z-index: 1;
}

.hero-main-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero p.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}



/* --- Trust Bar (Credibility Pills) --- */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    /* Space from the grid */
}

.trust-bar .badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    /* White background for light section */
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    /* Dark text */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.trust-bar .badge-item i {
    color: var(--success);
    /* Green check for trust */
    font-size: 1.1rem;
}

.trust-bar .badge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

@media (max-width: 900px) {
    .hero {
        min-height: 80vh;
        padding: 120px 0 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        display: block;
        text-align: center;
        position: relative;
        z-index: 10;
        /* Text on TOP */
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        z-index: 1;
        /* Image BEHIND */
        opacity: 0.35;
        /* Semi-transparent to blend with blue bg */
    }

    .hero-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 90% center;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    }

    /* Make buttons pop more against the image background */
    .cta-button {
        background-color: var(--white);
        color: var(--primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.cta-button {
    display: inline-block;
    background-color: #E2E8F0;
    color: var(--primary);
    padding: 18px 54px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.15rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: var(--accent);
}

/* --- Services / Business Grid --- */
#servicios {
    background-color: #F8FAFC;
    /* Gris muy pálido (Off-white), elegante y sin brillo excessivo */
    padding: 100px 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columnas forzadas para lograr 2 arriba y 2 abajo */
    gap: 30px;
}

.business-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Sombra más suave */
    transition: var(--transition);
    border: 1px solid #E2E8F0;
    /* Borde gris suave */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--secondary);
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.business-card:hover::before {
    height: 100%;
}

.business-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: #F1F5F9;
    /* Slate 100 */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.business-card:hover .business-icon {
    background: var(--primary);
    color: var(--white);
}

.business-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.4rem;
}

.business-card p {
    color: #475569;
    /* Slate 600 - Texto gris más legible, menos negro */
    font-size: 1rem;
    text-align: justify;
    text-align-last: left;
    hyphens: none;
}

.services-footer-text {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: center;
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 0 20px;
}

/* --- Process Section (Cómo Trabajamos) - SLATE THEME (Neutral Dark) --- */
.process-section {
    background-color: #1E293B;
    /* Slate 800 - Gris oscuro azulado (NO es el azul principal) */
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

/* Section title override for dark background */
.process-section .section-title h2 {
    color: var(--white);
}

.process-section .section-title h2::after {
    background: #94A3B8;
    /* Slate 400 - Acento gris claro en lugar de azul */
}

.process-section .section-title p {
    color: #CBD5E1;
    /* Slate 300 */
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.process-step {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde muy sutil */
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    opacity: 0.1;
    margin-bottom: 15px;
    line-height: 1;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.process-step h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #38BDF8;
    /* Sky Blue - Un pop de color brillante y moderno */
}

.process-step p {
    color: #94A3B8;
    /* Slate 400 */
    font-size: 1rem;
    text-align: justify;
    text-align-last: left;
    hyphens: none;
}

.process-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 35px;
    background: #0F172A;
    /* Slate 900 (Más oscuro que el fondo) */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #38BDF8;
    font-size: 1.15rem;
    color: #E2E8F0;
    /* Texto claro */
}

/* --- Consulting / Tech Section --- */
.tech-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 100px 0;
}

.tech-section .section-title h2 {
    color: var(--white);
}

.tech-section .section-title h2::after {
    background: var(--text-on-dark);
}

.tech-section .section-title p {
    color: var(--text-on-dark);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    /* Slight transparancy */
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-icon {
    font-size: 2rem;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.tech-item h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--white);
}

.tech-item p {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    white-space: pre-line;
    /* Handle line breaks in content */
}

/* Vertical bullet styling for consultancy points */
.tech-item ul {
    list-style-type: disc;
    text-align: left;
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-on-dark);
}

.tech-item li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* --- Contact --- */
.contact-section {
    background: linear-gradient(to bottom, #F8FAFC 0%, #E2E8F0 100%);
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-on-dark);
}

.contact-info i {
    color: var(--secondary);
    /* Actually visible contrast? Maybe convert to lighter */
    color: var(--accent);
    /* Better contrast on dark bg */
    font-size: 1.2rem;
}

.contact-form-wrapper {
    padding: 50px;
    background: var(--white);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    background: var(--white);
}

.form-trust-microcopy {
    font-size: 0.95rem;
    color: var(--text-on-light);
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 3px solid var(--success);
    padding-left: 12px;
}

.submit-btn {
    flex: 2;
    /* Take more space */
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.whatsapp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--success);
    /* WhatsApp Green */
    color: var(--white);
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #d1fae5;
    /* Light green bg */
    color: #065f46;
    /* Dark green text */
    font-weight: 500;
    text-align: center;
    border: 1px solid #a7f3d0;
    transition: var(--transition);
}

/* --- Blog Preview Section --- */
/* --- Blog Preview Section (Clean Grid) --- */
.blog-section {
    background: linear-gradient(rgba(11, 44, 74, 0.8), rgba(11, 44, 74, 0.6)), url('../assets/img/blog-bg-custom.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 100px 0;
    position: relative;
    /* Dark theme for outer area to match the dark image */
    color: var(--white);
}

.blog-section .section-title h2 {
    color: var(--lexi-blue-300);
    font-size: 3rem;
}

.blog-section .section-title p {
    color: var(--white);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 15px auto 0;
}

.blog-section .section-title h2::after {
    background: var(--lexi-blue-300);
    /* Lighter underline for dark bg */
}

/* --- News Horizontal Scroll (Manual) --- */
.blog-marquee-container {
    width: 100%;
    position: relative;
    padding: 20px 0 50px;
}

.blog-marquee-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0;
    /* No space needed for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.blog-marquee-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

/* Navigation Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--lexi-blue-500);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.scroll-btn:hover {
    background: var(--lexi-blue-300);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    border-color: var(--lexi-blue-500);
    background: var(--lexi-blue-300);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Image Styling */
.news-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--lexi-blue-900);
    /* Dark blue bg to make white wireframe popup */
    position: relative;
    /* Placeholder bg */
}

/* Add a subtle overlay gradient */
.news-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-card {
    min-width: 280px;
    width: calc(25% - 22.5px);
    /* Fit 4 in a row perfectly (gap 30px * 3 = 90px / 4 approx) */
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #FFFFFF;
    /* White Background as requested */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* Slightly sharper corners */
    padding: 0;
    /* Content padding handled inside */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 420px;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.news-content {
    padding: 25px 20px;
    /* More vertical padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    /* Center align content */
    align-items: center;
}

.news-source {
    font-size: 0.8rem;
    color: var(--lexi-blue-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-title {
    color: #1a1a1a;
    font-size: 1.25rem;
    /* Larger Title */
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 10px;
    flex-grow: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link-text {
    font-size: 0.9rem;
    color: var(--lexi-blue-500);
    /* Blue link text */
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    align-self: center;
    /* Center the link */
    transition: color 0.3s ease;
    margin-top: auto;
    /* Push to bottom if needed, or stick below title */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-link-text:hover {
    color: var(--lexi-blue-700);
    background: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--lexi-blue-100);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--lexi-blue-500);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #475569;
    /* Slate 600 */
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.blog-link {
    margin-top: auto;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-link i {
    transform: translateX(5px);
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 44, 74, 0.2);
}

/* --- Footer --- */
/* FOOTER – integración visual */
.footer-lexialogic {
    position: relative;
    background: #020817;
    /* Dark background to match logo image */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #E6EDF6;
    padding: 60px 20px 40px;
    overflow: hidden;
    text-align: center;
}

.footer-logo-img {
    max-width: 350px;
    width: 100%;
    margin-bottom: 20px;
    transition: var(--transition);
    border-radius: 8px;
    margin-top: 0;
    mix-blend-mode: normal;
}

/* Overlay removed */
.footer-lexialogic::before {
    content: none;
}

/* Todo el contenido por encima del overlay */
.footer-lexialogic * {
    position: relative;
    z-index: 1;
}

/* Logo y acentos azules */
.footer-lexialogic .accent {
    color: #2E8EDB;
}

/* Links */
.footer-lexialogic a {
    color: #E6EDF6;
    text-decoration: none;
}

.footer-lexialogic a:hover {
    color: #2E8EDB;
}

/* Texto legal */
.footer-lexialogic .legal {
    color: #9FB2C8;
    font-size: 16px;
}

/* Línea luminosa sutil */
.footer-lexialogic .glow-line {
    height: 1px;
    width: 100%;
    margin: 15px 0;
    background: rgba(80, 160, 255, 0.35);
}

/* Contenedor */
footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.footer-logo {
    margin-bottom: 0px;
}

/* Claim principal */
.footer-headline p {
    font-size: 1.15rem;
    /* Reduced from 1.8rem */
    line-height: 1.6;
    letter-spacing: 0.2px;
    max-width: 900px;
    margin: 0 auto 15px;
    color: #cbd5e1;
}

/* Línea divisoria sutil */
.footer-divider {
    width: 90%;
    max-width: 800px;
    height: 2px;
    border: none;
    margin: 0 auto 30px;
    background: linear-gradient(to right,
            transparent,
            rgba(120, 180, 255, 0.4),
            transparent);
}

/* Enlaces legales */
.footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    margin-bottom: 22px;
}

.footer-legal a {
    color: rgba(200, 215, 235, 0.75);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal .separator {
    opacity: 0.3;
    color: #cbd5e1;
}

/* Copyright */
.copyright p {
    font-size: 13px;
    letter-spacing: 0.3px;
    color: rgba(190, 205, 225, 0.6);
    margin: 0;
}



/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: flex-start;
    }

    .contact-info>div {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    #mainNav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 900;
        border-top: 1px solid var(--accent);
    }

    #mainNav.active {
        transform: translateY(0);
    }

    #mainNav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .contact-info {
        flex-direction: column;
    }

    footer {
        padding: 45px 15px 30px;
    }

    .footer-logo-img {
        max-width: 320px;
    }


    .footer-headline p {
        font-size: 1.1rem;
        margin-bottom: 28px;
    }

    .footer-divider {
        width: 95%;
    }
}

/* =========================
   LEXI VIRTUAL ASSISTANT
========================= */

.lexi-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.lexi-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(11, 44, 74, 0.3);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    outline: none;
}

.lexi-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(11, 44, 74, 0.4);
}

.lexi-btn-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--success);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 2px solid white;
    font-weight: 700;
}

.lexi-chat {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: lexiAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: lexiAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, height 0.3s ease;
}

.lexi-chat.expanded {
    width: 500px;
    height: 650px;
    max-width: 90vw;
    max-height: 85vh;
}

@keyframes lexiAppear {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lexi-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lexi-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lexi-avatar {
    position: relative;
}

.lexi-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid white;
}

.lexi-info h4 {
    margin: 0;
    font-size: 18px;
    color: white;
    border: none;
}

.lexi-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.lexi-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expand-lexi,
.close-lexi {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
    padding: 0;
    line-height: 1;
}

.expand-lexi:hover,
.close-lexi:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lexi-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.lexi-msg {
    align-self: flex-start;
    background: white;
    color: var(--primary);
    border-bottom-left-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(11, 44, 74, 0.15);
}


.lexi-msg span {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: 12px;
}

.typing-indicator {
    align-self: flex-start;
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

.lexi-footer {
    padding: 15px;
    background: white;
    display: flex;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.lexi-footer input[type="text"] {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
}

.lexi-footer input[type="text"]:focus {
    border-color: var(--secondary);
}

.lexi-footer button {
    background: var(--primary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lexi-footer button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

#lexi-upload-btn {
    background: #f1f5f9;
    color: #64748b;
}

#lexi-upload-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}


@media (max-width: 480px) {
    .lexi-chat {
        width: calc(100vw - 40px);
        height: 80vh;
        bottom: 80px;
        right: -10px;
    }

    /* Mobile adjustments for Cards */
    .business-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .business-card,
    .process-step {
        padding: 24px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */

.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 44, 74, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 11000;
    display: none;
    /* Hidden by default, shown by JS */
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
}

.cookie-btn.accept {
    background: var(--primary);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.cookie-btn.settings {
    background: #f1f5f9;
    color: var(--primary);
}

.cookie-btn.settings:hover {
    background: #e2e8f0;
}

/* Responsive adjustment for mobile */
@media (max-width: 640px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 15px;
        padding: 16px;
    }

    .cookie-actions {
        flex-direction: column;
    }
}

/* Increase Contact Subtitle Size */
#contacto .section-title p {
    font-size: 1.4rem;
}

/* --- Responsive Blog/News Section --- */

@media (max-width: 1100px) {
    .news-card {
        min-width: 0;
        width: calc(50% - 15px);
        /* 2 cards per view on tablets/small laptops */
    }
}

@media (max-width: 600px) {
    .blog-marquee-track {
        gap: 15px;
        /* Smaller gap */
    }

    .news-card {
        min-width: 100%;
        width: 100%;
        /* 1 card per view (full width) */
        scroll-snap-align: center;
        /* Snap to center */
        height: auto;
        min-height: 480px;
    }

    .news-img-wrapper {
        height: 250px;
        /* Taller image on mobile to look nice */
    }

    /* Adjust buttons for mobile - make them float on edges */
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(58, 120, 184, 0.9);
        backdrop-filter: blur(4px);
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.2rem;
    }
}