:root {
    /* Paleta Tech-Modern */
    --bg-deep: #000000;
    /* True black for a premium look */
    --bg-dark: #050505;
    /* Very deep grey for subtle contrast */
    --bg-card: rgba(255, 255, 255, 0.02);

    --accent-blue: #0070f3;
    --accent-cyan: #00dfd8;
    --accent-violet: #7928ca;

    --text-main: #ffffff;
    --text-dim: #a1a1a6;

    --glass-bg: rgba(10, 10, 12, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    --grad-ai: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    --grad-glow: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));

    --font-main: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.8;
    font-size: 1.15rem;
    /* Expert choice: Increased base size for premium readability */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Network Effect */
#bg-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(0, 112, 243, 0.05), transparent 70%);
    opacity: 0.6;
}

/* Glassmorphism Utility with Enhanced Depth */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 160px;
    /* Reduced from 200px */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-nav.scrolled {
    height: 100px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0 2rem;
}

.logo-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    flex: 0 0 290px;
    width: 290px;
    min-width: 290px;
}

.logo-group img {
    height: 138px;
    /* Reduced from 160px for better balance */
    width: auto;
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-nav.scrolled .logo-group img {
    height: 138px;
}

.site-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-group .site-logo-img {
    width: 100%;
    height: auto;
}

.glass-nav.scrolled .logo-group .site-logo-img {
    width: 100%;
    height: auto;
}

.logo-labels {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}


.brand-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    line-height: 0.96;
    color: #fff;
}

.brand-word {
    color: #fff;
}

.brand-x {
    display: inline-block;
    margin-left: 0.07em;
    font-size: 1.04em;
    font-weight: 800;
    line-height: 0.82;
    transform: translateY(-0.045em);
    transform-origin: center center;
    background: linear-gradient(180deg, #8fe6ff 0%, #49c9ff 28%, #0070f3 72%, #00dfd8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(0, 112, 243, 0.16);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    flex: 1;
    gap: 2.35rem;
    align-items: center;
    margin-left: 2.25rem;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 1.16rem;
    transition: color 0.3s;
    letter-spacing: 0.2px;
}

.nav-links a:not(.nav-contact-icon) {
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-links a:not(.nav-contact-icon)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-contact-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-left: auto;
    border: 1px solid rgba(160, 170, 185, 0.35);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nav-contact-icon:hover {
    border-color: rgba(0, 223, 216, 0.8);
    background: rgba(0, 223, 216, 0.08);
    color: #fff;
}

.nav-contact-img {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
    opacity: 0.88;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.nav-contact-icon:hover .nav-contact-img {
    opacity: 1;
    filter: brightness(1.25) saturate(1.15);
}

.nav-blog-dropdown,
.nav-modules-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 0.85rem;
    margin-bottom: -0.85rem;
}

.nav-blog-link,
.nav-modules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-blog-chevron,
.nav-modules-chevron {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.8;
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.3s ease 0.06s, color 0.3s ease;
}

.nav-blog-dropdown::after,
.nav-modules-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.9rem;
}

.nav-blog-menu,
.nav-modules-menu {
    position: absolute;
    top: calc(100% + 0.05rem);
    left: 0;
    min-width: 24rem;
    max-width: 28rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.nav-blog-dropdown:hover .nav-blog-menu,
.nav-blog-dropdown:focus-within .nav-blog-menu,
.nav-modules-dropdown:hover .nav-modules-menu,
.nav-modules-dropdown:focus-within .nav-modules-menu {
    display: flex;
}

.nav-blog-dropdown:hover .nav-blog-chevron,
.nav-blog-dropdown:focus-within .nav-blog-chevron,
.nav-modules-dropdown:hover .nav-modules-chevron,
.nav-modules-dropdown:focus-within .nav-modules-chevron {
    opacity: 1;
    transform: rotate(225deg) translateY(1px);
}

.nav-blog-menu-item,
.nav-modules-menu-item {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-blog-menu-item::after,
.nav-modules-menu-item::after {
    display: none;
}

.nav-blog-menu-item:hover,
.nav-blog-menu-item:focus-visible,
.nav-modules-menu-item:hover,
.nav-modules-menu-item:focus-visible {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 223, 216, 0.18);
    transform: translateY(-1px);
}

.nav-blog-menu-title,
.nav-modules-menu-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
}

.nav-blog-menu-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.nav-links a:not(.nav-contact-icon):hover {
    color: var(--accent-cyan);
}

.nav-links a:not(.nav-contact-icon):hover::after,
.nav-links a.active:not(.nav-contact-icon)::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1102;
}

.mobile-toggle span {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition: background-color 0.25s ease;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1.35rem;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition: transform 0.25s ease;
}

.mobile-toggle span::before {
    transform: translateY(-6px);
}

.mobile-toggle span::after {
    transform: translateY(6px);
}

.mobile-toggle.open span {
    background: transparent;
}

.mobile-toggle.open span::before {
    transform: rotate(45deg);
}

.mobile-toggle.open span::after {
    transform: rotate(-45deg);
}

/* Buttons */
.btn-primary {
    background: var(--grad-ai);
    color: #000 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-large {
    padding: 1.2rem 2.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glow {
    background: var(--grad-ai);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 223, 216, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 223, 216, 0.5);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 200px;
    /* Adjusted from 240px */
    background: radial-gradient(circle at 90% 20%, rgba(121, 40, 202, 0.1), transparent 40%);
}

.hero-content {
    padding-left: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 112, 243, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1.2rem;
    /* SLightly increased */
    border-radius: 20px;
    font-size: 1rem;
    /* Increased from 0.85rem */
    font-weight: 600;
    margin-bottom: 2.5rem;
    /* Increased from 2rem */
    border: 1px solid rgba(0, 112, 243, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4.5rem;
    /* Increased from 4rem */
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

.gradient-text {
    background: var(--grad-ai);
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility fix */
    -webkit-text-fill-color: transparent;
}

.hero-title-subline {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.74em;
    line-height: 1.22;
}

.policy-page .hero-mini .hero-title .gradient-text {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: inherit;
}

.article-content a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 223, 216, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-content a:hover {
    color: #d5fffd;
    border-color: rgba(213, 255, 253, 0.5);
}

.article-content-generated {
    padding: 3rem;
    border-radius: 24px;
}

.article-published-meta {
    font-size: 0.95rem;
    opacity: 0.72;
    margin-bottom: 2rem;
}

.hero-lead {
    font-size: 1.4rem;
    /* Increased from 1.25rem */
    color: var(--text-dim);
    margin: 0 auto 3.5rem;
    /* Added auto to center the block */
    line-height: 1.7;
    max-width: 650px;
}

/* Homepage Hero Specific Alignment */
.hero .hero-lead {
    margin: 0 0 3.5rem 0;
    text-align: left;
    max-width: 650px;
    /* Ensure consistency */
}

.partner-logo-subtle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    opacity: 0.7;
    /* Balanced visibility */
    transition: all 0.4s ease;
}

.partner-logo-subtle:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.partner-logo-subtle span {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: 0.5rem;
}

.partner-logo-subtle img {
    height: 20px;
    /* Slightly larger for the wordmark */
    width: auto;
    filter: brightness(0.9) contrast(1.1);
    /* Subtle adjustment for dark background */
    display: block;
}

.partner-logo-hero {
    opacity: 1;
    margin-bottom: 2.8rem;
}

.partner-logo-hero img {
    width: clamp(86px, 10vw, 116px);
    height: auto;
    max-width: 100%;
    filter: none;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
}

.hero-visual {
    position: relative;
    padding-right: 2rem;
}

.visual-container {
    position: relative;
    width: 100%;
}

.hero-img-main {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-visual .visual-container {
    transform-style: preserve-3d;
}

.hero-parallax-layer {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform;
    transition: transform 0.2s linear;
}

.hero-flow-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: heroDrawIn 1.15s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-flow-main {
    animation-delay: 0.16s;
}

.hero-flow-sub {
    animation-delay: 0.36s;
}

.hero-node-final {
    animation: heroNodeGlow 2.6s ease-in-out infinite;
}

.hero-node-pulse {
    opacity: 0;
    transform-origin: 804px 202px;
    animation: heroPulseRing 2.6s ease-out infinite;
}

@keyframes heroDrawIn {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes heroPulseRing {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    20% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes heroNodeGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(114, 239, 255, 0));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(114, 239, 255, 0.75));
    }
}

.floating-kpi {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.kpi-1 {
    top: 24%;
    left: -10%;
}

.kpi-2 {
    bottom: 20%;
    right: 10%;
}

.kpi-val {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .hero-flow-draw,
    .hero-node-final,
    .hero-node-pulse {
        animation: none;
    }

    .hero-flow-draw {
        stroke-dashoffset: 0;
    }

    .hero-parallax-layer {
        transition: none;
    }
}

/* Section Utilities */
.section-padding {
    padding: 100px 0;
}

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

h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    /* Increased from 2.5rem */
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    /* Expert choice: Balanced with new base size */
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.section-header .hero-badge {
    margin: 0 auto 1.5rem;
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: stretch;
    /* Crucial para igualar alturas */
}

.product-mockup {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Patrón de Circuitos (PCB) para el fondo del Mockup */
.product-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0, 112, 243, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(0, 223, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 223, 216, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.mockup-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "activos activos"
        "mantenimiento energia"
        "servicios servicios";
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem;
    /* Increased from 2rem */
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    /* Forzar altura igual */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.feature-card--activos {
    grid-area: activos;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.12), rgba(0, 223, 216, 0.06));
    min-height: 220px;
}

.feature-card--mantenimiento {
    grid-area: mantenimiento;
}

.feature-card--energia {
    grid-area: energia;
}

.feature-card--servicios {
    grid-area: servicios;
    background: linear-gradient(135deg, rgba(0, 223, 216, 0.08), rgba(121, 40, 202, 0.08));
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent-cyan);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    /* Increased from 0.95rem */
    line-height: 1.7;
}

/* Insights Section */
.insights-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Matching the 2 items in Ecosistema */
    gap: 3rem;
    align-items: stretch;
    /* Force equal height */
}

.insights-grid article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card {
    padding: 3.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Reduced from 1.5rem for tighter grouping */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.post-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 112, 243, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.post-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
}

.post-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    /* Increased from 0.9rem */
    line-height: 1.8;
}

.ecosystem-stage {
    padding: 3.25rem;
    border-radius: 32px;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 223, 216, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.ecosystem-flow {
    display: grid;
    grid-template-columns: minmax(170px, 0.95fr) 28px minmax(205px, 1.15fr) 28px minmax(225px, 1.25fr) 28px minmax(165px, 0.9fr) 28px minmax(175px, 0.95fr);
    align-items: stretch;
    gap: 0.9rem;
}

.ecosystem-node {
    min-height: 100%;
    padding: 1.5rem 1.35rem;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ecosystem-node::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 223, 216, 0.09), transparent 45%);
    pointer-events: none;
}

.ecosystem-node h3,
.ecosystem-node p,
.ecosystem-node-label {
    position: relative;
    z-index: 1;
}

.ecosystem-node-assets,
.ecosystem-node-advance,
.ecosystem-node-gig,
.ecosystem-node-execution,
.ecosystem-node-memory {
    min-width: 0;
    min-height: 255px;
}

.ecosystem-node-label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 1.2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 112, 243, 0.12);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecosystem-node h3 {
    font-size: 1rem;
    line-height: 1.18;
    margin-bottom: 0.8rem;
    text-wrap: balance;
}

.ecosystem-node p {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    max-width: 17ch;
}

.ecosystem-node-featured {
    padding: 1.7rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.ecosystem-node-featured h3 {
    font-size: 1.28rem;
    line-height: 1.18;
}

.ecosystem-node-featured p {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 19ch;
}

.ecosystem-node-advance,
.ecosystem-node-gig {
    background: linear-gradient(180deg, rgba(0, 112, 243, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 112, 243, 0.35);
}

.ecosystem-node-gig {
    background: linear-gradient(180deg, rgba(0, 223, 216, 0.09), rgba(255, 255, 255, 0.02));
    border-color: rgba(0, 223, 216, 0.35);
}

.ecosystem-arrow {
    align-self: center;
    justify-self: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    opacity: 0.65;
    text-align: center;
}

.ecosystem-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.ecosystem-actions {
    justify-content: center;
    margin-top: 3rem;
}

.advance-map-panel {
    position: relative;
    padding: 4rem;
    border-radius: 36px;
    overflow: hidden;
}

.advance-map-panel::before,
.advance-map-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.advance-map-panel::before {
    background:
        radial-gradient(circle at 50% 32%, rgba(0, 112, 243, 0.14), transparent 24%),
        radial-gradient(circle at 18% 72%, rgba(0, 223, 216, 0.1), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(121, 40, 202, 0.08), transparent 28%);
}

.advance-map-panel::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 88%);
}

.advance-map-header,
.advance-map-diagram {
    position: relative;
    z-index: 1;
}

.advance-map-header {
    margin-bottom: 3.25rem;
}

.advance-map-header .section-subtitle {
    margin-bottom: 0;
    max-width: 920px;
}

.advance-map-diagram {
    display: grid;
    gap: 1.35rem;
}

.advance-map-client,
.advance-map-manager,
.advance-map-network,
.advance-map-side-card,
.advance-map-execution-card {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.advance-map-client {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 1.5rem 1.7rem;
    border-radius: 28px;
    text-align: center;
}

.advance-map-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 112, 243, 0.12);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advance-map-client h3,
.advance-map-core h3,
.advance-map-execution-card h3 {
    font-family: var(--font-title);
    line-height: 1.15;
}

.advance-map-client h3 {
    margin: 1rem 0 0;
    font-size: 1.55rem;
}

.advance-map-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.advance-map-chip-list-centered {
    justify-content: center;
}

.advance-map-chip-list span {
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.84rem;
    font-weight: 600;
}

.advance-map-connector {
    width: 2px;
    height: 32px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 112, 243, 0.92), rgba(0, 223, 216, 0.15));
}

.advance-map-manager {
    padding: 1.35rem 1.5rem;
    border-radius: 30px;
}

.advance-map-manager-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.advance-map-manager-pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.advance-map-manager-pillars span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

.advance-map-core-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.08fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: center;
}

.advance-map-side {
    display: grid;
    gap: 0.9rem;
}

.advance-map-side-card {
    padding: 1.05rem 1.15rem;
    border-radius: 22px;
    min-height: 112px;
}

.advance-map-side-card strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1rem;
    line-height: 1.3;
}

.advance-map-side-card p,
.advance-map-core p,
.advance-map-execution-card p {
    color: var(--text-dim);
    font-size: 0.96rem;
    line-height: 1.65;
}

.advance-map-core-column {
    display: grid;
    justify-items: center;
    gap: 1.05rem;
}

.advance-map-core {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(0, 112, 243, 0.18), rgba(0, 223, 216, 0.08));
    border: 1px solid rgba(0, 223, 216, 0.28);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.advance-map-core::before,
.advance-map-core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.advance-map-core::before {
    inset: -18px;
    border: 1px dashed rgba(0, 223, 216, 0.22);
}

.advance-map-core::after {
    inset: -42px;
    border: 1px solid rgba(0, 112, 243, 0.14);
}

.advance-map-core h3 {
    margin: 1rem 0 0.8rem;
    font-size: 1.85rem;
}

.advance-map-core p {
    max-width: 24ch;
}

.advance-map-network {
    min-width: min(100%, 260px);
    padding: 0.82rem 1.25rem;
    border-radius: 999px;
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
}

.advance-map-execution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.advance-map-execution-card {
    padding: 1.5rem;
    border-radius: 28px;
    min-height: 100%;
}

.advance-map-execution-card-featured {
    border-color: rgba(0, 112, 243, 0.35);
    background: linear-gradient(180deg, rgba(0, 112, 243, 0.09), rgba(255, 255, 255, 0.03));
}

.advance-map-execution-card h3 {
    margin: 1rem 0 0.8rem;
    font-size: 1.32rem;
}

.advance-map-execution-card .advance-map-chip-list {
    margin-top: 1.1rem;
}

.read-more {
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Advance Teaser Fix */
.advance-card {
    border-radius: 32px;
    padding: 4rem;
    border: 1px solid rgba(0, 223, 216, 0.2);
    /* Default for Desktop */
}

.teaser-visual {
    text-align: center;
    background: #000000;
    border-radius: 16px;
    padding: 2rem;
}

.teaser-visual img {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 112, 243, 0.3));
    display: block;
    max-width: 100%;
    /* Prevent overflow */
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 240px;
        /* Consistente con el navbar de 200px + margen */
    }

    .hero-content {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        padding: 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        /* Position right below the navbar */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        height: auto;
        /* Allow auto height */
        max-height: calc(100vh - 100px);
        /* fallback */
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        margin-left: 0;
        align-items: flex-start;
        text-align: left;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    .logo-group img {
        height: 120px !important;
    }

    .glass-nav.scrolled .logo-group img {
        height: 80px !important;
    }

    .logo-group .site-logo-img {
        width: 100%;
        height: auto !important;
    }

    .glass-nav.scrolled .logo-group .site-logo-img {
        width: 100%;
        height: auto !important;
    }

    .logo-group {
        flex-basis: 244px;
        width: 244px;
        min-width: 244px;
    }

    .glass-nav.scrolled {
        height: 100px;
    }
}

/* Teléfonos (Mobile Portrait) */
@media (max-width: 768px) {
    .glass-nav {
        height: 120px;
    }

    .logo-group img {
        height: 90px !important;
    }

    .glass-nav.scrolled .logo-group img {
        height: 60px !important;
    }

    .logo-group .site-logo-img {
        width: 100%;
        height: auto !important;
    }

    .glass-nav.scrolled .logo-group .site-logo-img {
        width: 100%;
        height: auto !important;
    }

    .logo-group {
        flex-basis: 188px;
        width: 188px;
        min-width: 188px;
    }

    .glass-nav.scrolled {
        height: 80px;
    }

    .nav-links {
        top: 120px;
        max-height: calc(100vh - 120px);
    }

    .hero {
        padding-top: 160px;
    }

    .hero-mini {
        padding-top: 180px;
    }

    .advance-card {
        padding: 1.5rem;
        /* Drastic reduction from 4rem */
        border-radius: 20px;
    }

    .teaser-visual {
        padding: 1rem;
    }

    /* FIX: Prevent overflow on small screens */
    .hero-title {
        font-size: 2.1rem;
        /* Reduced from 3rem to fit 'Inteligencia' */
        word-wrap: break-word;
        /* Ensure long words break if necessary */
        hyphens: auto;
    }

    .hero-content {
        padding: 0 1.25rem;
        /* More breathing room for text - Force Update */
    }

    .hero-lead {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    /* SURGICAL FIX: KPI Overflow */
    .kpi-banner {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .kpi-number {
        font-size: 3rem;
        /* Make it pop on mobile */
        line-height: 1.1;
    }
}

@media (max-width: 992px) {

    .product-grid,
    .insights-grid,
    .ecosystem-support-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .ecosystem-flow {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ecosystem-arrow {
        justify-self: auto;
        font-size: 1.4rem;
        transform: rotate(90deg);
    }

    .ecosystem-node-assets,
    .ecosystem-node-advance,
    .ecosystem-node-gig,
    .ecosystem-node-execution,
    .ecosystem-node-memory {
        min-height: 0;
    }

    .ecosystem-node p {
        max-width: none;
    }

    .ecosystem-node-featured p {
        max-width: none;
    }

    .advance-map-panel {
        padding: 3rem 2rem;
    }

    .advance-map-core-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advance-map-core-column {
        order: -1;
        margin: 0.75rem 0 1rem;
    }

    .advance-map-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advance-map-core {
        width: min(100%, 320px);
    }

    .advance-map-core::after {
        inset: -28px;
    }

    .advance-map-execution-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .advance-map-panel {
        padding: 2.4rem 1.25rem;
        border-radius: 28px;
    }

    .advance-map-client,
    .advance-map-manager,
    .advance-map-execution-card {
        border-radius: 24px;
    }

    .advance-map-client {
        width: 100%;
        padding: 1.25rem;
    }

    .advance-map-client h3 {
        font-size: 1.3rem;
    }

    .advance-map-manager {
        padding: 1.1rem 1rem;
    }

    .advance-map-manager-title {
        font-size: 1rem;
    }

    .advance-map-manager-pillars span {
        width: calc(50% - 0.4rem);
        text-align: center;
    }

    .advance-map-side {
        grid-template-columns: 1fr;
    }

    .advance-map-core {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
        border-radius: 28px;
        padding: 2rem 1.5rem;
    }

    .advance-map-core::before {
        inset: -10px;
        border-radius: 32px;
    }

    .advance-map-core::after {
        display: none;
    }

    .advance-map-core h3 {
        font-size: 1.55rem;
    }

    .advance-map-network {
        width: 100%;
        min-width: 0;
    }

    .advance-map-execution-card {
        padding: 1.3rem;
    }
}

/* KPIs Banner */
.kpi-banner {
    display: flex;
    justify-content: space-around;
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 5rem;
    text-align: center;
}

.kpi-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-title);
    background: var(--grad-ai);
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility fix */
    -webkit-text-fill-color: transparent;
}

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

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion details {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.accordion summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.accordion details[open] summary::after {
    content: '-';
}

.accordion p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dim);
}

/* Footer */
.main-footer {
    position: relative;
    padding: 6rem 0 3rem;
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid rgba(0, 223, 216, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr 1.1fr 0.9fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand img {
    filter: drop-shadow(0 0 10px rgba(0, 223, 216, 0.2));
    transition: filter 0.3s ease;
}

.footer-brand-logo {
    width: min(100%, 340px);
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-brand img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 223, 216, 0.4));
}

.footer-brand p {
    color: var(--text-dim);
    line-height: 1.8;
    /* Increased for breathing room */
    font-size: 1.05rem;
    /* Increased from 0.95rem */
    max-width: 350px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1.25rem;
    /* Increased from 1.1rem */
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.8px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.05rem;
    /* Increased from 0.9rem */
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-advance-link {
    margin-top: 0.5rem;
}

.footer-brief-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 42px;
    padding: 0 1rem;
    margin-top: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer-brief-link:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 223, 216, 0.38);
    background: rgba(0, 223, 216, 0.08);
    transform: translateY(-1px);
}


.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.partner-logo-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.96;
}

.partner-logo-footer img {
    width: clamp(86px, 10vw, 116px);
    height: auto;
    display: block;
    filter: none;
}

/* Sectores Section */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.sector-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    border: 1px solid var(--glass-border);
}

.sector-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1);
    border-color: var(--accent-cyan);
}

.sector-icon {
    font-size: 2.5rem;
    position: relative;
    width: fit-content;
    display: block;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.sector-icon--mining {
    font-size: 2.9rem;
    line-height: 1;
}

/* IA Scanner Effect */
.sector-icon::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 223, 216, 0.4),
            transparent);
    animation: scan 3s infinite linear;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

.sector-card h3 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    line-height: 1.3;
}

.sector-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* About Page Specifics */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.3rem;
    /* Expert choice: Subtle distinction via scale and weight */
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.intro-model-surface {
    margin-bottom: 4rem;
    border-radius: 32px;
    padding: 4rem;
}

.intro-model-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-model-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.8;
}

.intro-model-support {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.model-visual-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card-showcase {
    padding: 2.5rem;
    text-align: center;
}

.tech-card-showcase.tech-card-accent-blue {
    border: 1px solid var(--accent-blue);
}

.tech-card-showcase.tech-card-accent-cyan {
    border: 1px solid var(--accent-cyan);
}

.sector-icon-showcase {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.grid-2-featured {
    gap: 3rem;
    margin-top: 3rem;
}

.pilar-card-body {
    padding: 3rem;
    border-radius: 24px;
}

.pilar-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pilar-index-chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pilar-index-chip.pilar-index-blue {
    background: var(--accent-blue);
    color: #fff;
}

.pilar-index-chip.pilar-index-cyan {
    background: var(--accent-cyan);
    color: #000;
}

.pilar-title-reset {
    margin-bottom: 0;
}

.pilar-summary {
    margin-bottom: 2rem;
}

.feature-bullets-plain {
    list-style: none;
}

.feature-bullet-row {
    display: flex;
    gap: 15px;
}

.feature-bullet-row-start {
    align-items: flex-start;
}

.feature-bullet-row + .feature-bullet-row,
.feature-bullet-row.is-spaced {
    margin-top: 2rem;
}

.feature-bullet-row.is-compact-spaced {
    margin-top: 1.5rem;
}

.feature-bullet-icon {
    font-size: 1.5rem;
}

.feature-bullet-copy {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 0.4rem;
}

.feature-bullets-spaced {
    margin: 2rem 0;
}

.insights-grid-spaced {
    margin-top: 3rem;
}

.about-visual-panel {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual-frame {
    position: relative;
    display: inline-block;
}

.about-visual-image {
    max-height: clamp(240px, 26vw, 320px);
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 112, 243, 0.4));
    display: block;
}

.about-visual-orb {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 45px;
    height: 45px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}

.security-panel {
    border-radius: 32px;
    padding: 5rem;
    border: 1px solid rgba(0, 223, 216, 0.15);
    margin-top: 2rem;
}

.about-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.about-img {
    width: 100%;
    display: block;
}

.number {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Page Indicator */
.nav-links a.active {
    color: var(--accent-cyan);
}


/* Hero Mini for subpages */
.hero-mini {
    padding-top: 240px;
    /* Adjusted from 280px */
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--bg-deep);
    /* Pure black base */
    background-image: radial-gradient(circle at top right, rgba(0, 112, 243, 0.03), transparent),
        radial-gradient(circle at top left, rgba(0, 223, 216, 0.03), transparent);
}

.hero-mini .hero-content {
    padding-left: 0;
    /* Reset for centered subpages */
}

.gigs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding-top: 220px;
    padding-bottom: 96px;
    text-align: left;
}

.gigs-hero .hero-content {
    padding-left: 0;
}

.gigs-hero-copy {
    max-width: 720px;
}

.gigs-hero .hero-title {
    margin-bottom: 1.5rem;
}

.gigs-hero .hero-lead {
    margin: 0 0 1.25rem;
    max-width: 720px;
}

.gigs-hero-support {
    max-width: 720px;
    margin: 0;
}

.gigs-hero-visual {
    display: flex;
    justify-content: flex-end;
    padding-top: 4.25rem;
}

.gigs-hero-media {
    width: min(100%, 430px);
}

.gigs-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1080px) {
    .gigs-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
        gap: 2rem;
    }

    .gigs-hero-media {
        width: min(100%, 390px);
    }
}

@media (max-width: 900px) {
    .gigs-hero {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 72px;
        text-align: center;
    }

    .gigs-hero .hero-content {
        text-align: center;
    }

    .gigs-hero .hero-lead {
        margin: 0 auto 1.25rem;
    }

    .gigs-hero-support {
        margin: 0 auto;
    }

    .gigs-hero-visual {
        justify-content: center;
        padding-top: 0;
    }

    .gigs-hero-media {
        width: min(100%, 420px);
    }
}

@media (max-width: 640px) {
    .gigs-hero {
        padding-top: 180px;
        gap: 1.5rem;
    }

    .gigs-hero-media {
        width: min(100%, 340px);
    }

    .gigs-hero-image {
        border-radius: 28px;
    }
}

/* Contact Section */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

.form-group--consent {
    gap: 0;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dim);
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--accent-cyan);
    flex-shrink: 0;
}

.consent-check a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(0, 223, 216, 0.15);
}

body.modal-open {
    overflow: hidden;
}

.form-status-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 8, 16, 0.74);
    backdrop-filter: blur(4px);
    z-index: 12000;
}

.form-status-modal {
    width: min(92vw, 520px);
    padding: 1.5rem 1.4rem;
    border-radius: 18px;
    background: rgba(8, 12, 20, 0.96);
    border: 1px solid rgba(0, 223, 216, 0.35);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.form-status-modal h3 {
    margin: 0 0 0.7rem;
    font-size: 1.35rem;
    color: var(--text-main);
}

.form-status-modal p {
    margin: 0 0 1.2rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.form-status-modal.error {
    border-color: rgba(255, 78, 78, 0.45);
}

.form-status-modal.error h3 {
    color: #ff9898;
}

.form-status-close {
    min-width: 120px;
}

/* Ecosystem Specifics */
.tech-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-list li {
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.tech-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.metric-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent-cyan);
    text-align: center;
    z-index: 10;
}

.article-metric-overlay {
    position: relative;
    margin-top: 3rem;
    top: 0;
    right: 0;
}

.metric-val {
    display: block;
    font-size: 4rem;
    /* Increased from 3rem */
    font-weight: 800;
    font-family: var(--font-accent);
    color: var(--accent-cyan);
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    /* Increased from 0.8rem */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
}

/* Mobile Nav Visibility Fix */
@media (max-width: 992px) {
    .nav-links {
        display: none !important;
        /* Base state */
    }

    .nav-links.active {
        display: flex !important;
        /* Force visible when active */
        z-index: 1001;
        top: 100%;
    }

    .mobile-toggle span {
        background: #fff;
    }

    .nav-blog-dropdown {
        display: block;
        width: 100%;
    }

    .nav-modules-dropdown {
        display: block;
        width: 100%;
    }

    .nav-blog-link,
    .nav-modules-link {
        display: inline-flex;
    }

    .nav-blog-chevron,
    .nav-modules-chevron {
        display: none;
    }

    .nav-blog-dropdown::after,
    .nav-modules-dropdown::after,
    .nav-blog-menu {
        display: none !important;
    }

    .nav-modules-menu {
        display: none !important;
    }
}

@media (max-width: 1200px) {

    .product-grid,
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "activos activos"
            "mantenimiento energia"
            "servicios servicios";
        text-align: left;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brief-link {
        align-self: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.9rem;
        text-align: center;
    }

    .partner-logo-footer {
        justify-content: center;
    }

    .partner-logo-footer img {
        width: clamp(80px, 24vw, 102px);
    }

    .kpi-banner {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        grid-template-areas:
            "activos"
            "mantenimiento"
            "energia"
            "servicios";
    }

    .feature-card--activos {
        min-height: auto;
    }

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

@media (max-width: 1360px) and (min-width: 993px) {
    .nav-container {
        gap: 1.2rem;
    }

    .nav-links {
        gap: 1.7rem;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.06rem;
        text-align: left;
        width: 100%;
    }

    .nav-blog-menu,
    .nav-modules-menu {
        min-width: 21rem;
        max-width: 24rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 800px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-text h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.cookie-more-link {
    display: inline-flex;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cookie-accept {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.btn-cookie-accept:hover {
    background: #00d4ff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        padding: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions button {
        width: 100%;
    }
}

/* Final CTA Section Styles */
.final-cta {
    text-align: center;
    margin-top: 4rem;
    /* Espacio extra respecto al FAQ */
    margin-bottom: 8rem;
    /* Mayor separación del footer para dejar respirar el diseño */
}

.ca-wrapper {
    padding: 5rem 2rem;
    border-radius: 40px;
    background: radial-gradient(circle at top right, rgba(0, 112, 243, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(0, 223, 216, 0.1), transparent),
        var(--glass-bg);
    border: 1px solid rgba(0, 223, 216, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 40px rgba(0, 223, 216, 0.05);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-subtitle {
    margin-bottom: 2.5rem;
}

.final-cta .section-title {
    font-size: 3.5rem;
    /* Increased from 3rem */
    line-height: 1.15;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .final-cta .section-title {
        font-size: 2.2rem;
    }

    .ca-wrapper {
        padding: 3rem 1.5rem;
    }
}

.cta-contact-card {
    width: min(100%, 560px);
    margin: 2.25rem auto 0;
    padding: 1.6rem;
    border-radius: 32px;
    text-align: left;
    border: 1px solid rgba(0, 223, 216, 0.22);
    background: rgba(5, 10, 18, 0.92);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.cta-contact-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cta-contact-header {
    margin-bottom: 1.35rem;
}

.cta-contact-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.cta-contact-header h3 {
    margin: 0.6rem 0 0.5rem;
    font-size: 1.4rem;
    color: var(--text-main);
}

.cta-contact-header p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.6;
}

.cta-contact-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.cta-contact-close:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 223, 216, 0.32);
    background: rgba(0, 223, 216, 0.08);
}

.contact-form--inline {
    gap: 1rem;
}

.contact-form--inline .btn-large {
    width: 100%;
}

/* =========================================
   MODULES PAGE STYLES (Migrated from HTML)
   ========================================= */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.module-card {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module-card:hover {
    transform: translateY(-10px);
}

.module-header {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.module-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-mockup {
    background: #000;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.module-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.module-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.mockup-ui {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(0, 223, 216, 0.2);
}

.ui-bar.active {
    background: var(--accent-cyan);
}

.ui-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.disclaimer {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

/* =========================================
   GLOBAL MOBILE OVERRIDES
   Covers both legacy inline layouts and the shared classes introduced in Fase 4.
   ========================================= */
@media (max-width: 768px) {

    /* Force grid to single column */
    .module-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2rem !important;
        gap: 2rem !important;
    }

    /* Force smaller padding overriding inline styles */
    .intro-model,
    .intro-model-surface,
    .pilar-card,
    .pilar-card-body,
    .article-content,
    .article-content-generated,
    .tech-card,
    .tech-card-showcase,
    .about-visual-panel,
    .security-panel,
    div[style*="padding: 3rem"],
    div[style*="padding: 4rem"],
    div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }

    /* Typography Overrides */
    .intro-model-heading,
    h2[style*="font-size: 2.5rem"],
    .section-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .intro-model-lead,
    .lead-text[style*="font-size: 1.25rem"] {
        font-size: 1.1rem !important;
    }

    .feature-bullet-row {
        gap: 12px;
    }

    .feature-bullet-copy {
        font-size: 0.92rem;
    }

    /* Adjust Module Card components for mobile */
    .module-header,
    .module-body {
        padding: 1.5rem !important;
    }
}

/* Mobile Margin Fixes (production) */
@media (max-width: 992px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .btn-large {
        white-space: normal;
        text-align: center;
    }

    .partner-logo-subtle {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .hero-lead {
        font-size: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-wrap: anywhere;
    }

    .partner-logo-hero img {
        width: clamp(80px, 24vw, 102px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 0.85rem;
    }

    .btn-large {
        width: 100%;
        min-height: 48px;
        padding: 0.95rem 1rem;
        font-size: 1rem;
    }

    .floating-kpi {
        position: static;
        margin-top: 0.75rem;
        width: 100%;
    }

    .kpi-1,
    .kpi-2 {
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.55rem !important;
    }
}
