/* --- TIAXIOM - Premium Light Institutional CSS --- */

html {
    scroll-behavior: smooth;
}

:root {
    /* Paleta Oficial */
    --primary: #3dabe1;
    --primary-light: #4c9ede;
    --accent-gray: #94a4bc;
    --accent-dark: #8494a4;

    /* Fondos */
    --bg-white: #ffffff;
    --bg-soft: #f8fbff;

    /* Textos (Institucional oscuro en fondo claro) */
    --text-main: #2b3a4a;
    /* Slate dark */
    --text-muted: #64748b;
    --text-accent: #3dabe1;

    --border-color: rgba(148, 164, 188, 0.25);

    --hex-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    line-height: 1.6;
}

/* === CMS Anti-FOUC System === */
.cms-text:empty {
    min-height: 1em;
    background: linear-gradient(90deg, var(--bg-soft) 25%, #eef4fa 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: cms-shimmer 1.5s ease infinite;
    border-radius: 4px;
    display: block;
}

.cms-text:empty::after {
    content: '\00a0';
    visibility: hidden;
}

#hero-title.cms-text:empty {
    min-height: 120px;
    max-width: 600px;
}

#hero-desc.cms-text:empty {
    min-height: 48px;
    max-width: 550px;
}

#hero-btn-1.cms-text:empty,
#hero-btn-2.cms-text:empty {
    min-height: 48px;
    min-width: 180px;
}

#about-title.cms-text:empty {
    min-height: 40px;
    max-width: 400px;
}

#about-desc.cms-text:empty {
    min-height: 80px;
}

body.cms-loaded .cms-text:empty {
    animation: none;
    background: none;
}

@keyframes cms-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 40px;
    object-fit: contain;
}

/* Layout Utilities */
section {
    padding: 100px 0;
    position: relative;
}

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

.mt-3 {
    margin-top: 1.5rem;
}

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

.full-width {
    width: 100%;
}

.subheading {
    display: block;
    color: var(--accent-gray);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(61, 171, 225, 0.25);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 171, 225, 0.35);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Glassmorphism / Clean Panels */
.glass-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(148, 164, 188, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.x-brand {
    margin: 0 2px;
    display: inline-flex;
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-links a:hover:not(.btn-primary) {
    color: var(--primary);
}

.nav-links a:hover:not(.btn-primary)::after {
    width: 100%;
}

.nav-links a.btn-primary {
    padding: 10px 24px;
    color: #fff;
}

.menu-toggle {
    display: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}

/* hex-pattern moved to Hero Hex Pattern Animation UI section */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    z-index: 1;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bright gradient overlay */
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 4;
    max-width: 750px;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Nosotros Section */
.about {
    background: var(--bg-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    padding: 20px;
    box-shadow: none;
    border: none;
    background: transparent;
}

.img-frame {
    /* Hexagonal mask for the image to give the requested aesthetic */
    clip-path: var(--hex-path);
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border: 8px solid var(--bg-soft);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image:hover .img-frame img {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlights {
    margin-top: 40px;
    display: grid;
    gap: 25px;
}

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

.hex-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    /* Esto actúa como el color del borde */
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: var(--hex-path);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.hex-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    /* Grosor del borde */
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-soft);
    clip-path: var(--hex-path);
    z-index: 1;
}

.hex-icon svg {
    position: relative;
    z-index: 2;
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.highlight-item:hover .hex-icon {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(61, 171, 225, 0.3));
}

.highlight-item h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Servicios Section */
.services {
    background: var(--bg-soft);
}

.services .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.service-card {
    padding: 40px 30px;
    background: var(--bg-white);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--primary);
    box-shadow: 0 20px 40px rgba(148, 164, 188, 0.15);
}

.service-icon-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.icon-large {
    width: 60px;
    height: 60px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Removed heavy background to match 'Diferenciales' style */
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ==========================================================
   Nuestras Verticales Section — Modern Bento Grid
========================================================== */
.verticales-section {
    background: var(--bg-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.verticales-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 171, 225, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.verticals-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(148, 164, 188, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 171, 225, 0.15);
    border-color: rgba(61, 171, 225, 0.3);
}

.bento-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(61, 171, 225, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: -1;
    transition: transform 0.6s ease;
}

.bento-card:hover .bento-bg-accent {
    transform: translate(10%, -10%) scale(1.5);
    background: radial-gradient(circle, rgba(61, 171, 225, 0.12) 0%, transparent 70%);
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.bento-icon svg {
    width: 32px;
    height: 32px;
}

.bento-card:hover .bento-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(61, 171, 225, 0.2);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-tags {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;

    /* Reset button styles */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.bento-link i {
    font-size: 0.9em;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-link {
    color: var(--primary);
    gap: 12px;
}

/* Image Support */
.bento-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ==========================================================
   Beneficios de Arquitectura Section
========================================================== */
.beneficios-section {
    padding: 100px 0;
    overflow: hidden;
}

.beneficios-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .beneficios-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.beneficios-text h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.beneficios-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.beneficio-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--primary);
    font-variation-settings: 'FILL' 1;
    font-size: 24px;
    margin-top: 4px;
}

.benefit-content h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.benefit-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.beneficios-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .beneficios-bento {
        grid-template-columns: 1fr;
    }
}

.bento-col-1,
.bento-col-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-col-1 {
    padding-top: 40px;
}

@media (max-width: 576px) {
    .bento-col-1 {
        padding-top: 0;
    }
}

.bento-card-light,
.bento-card-primary,
.bento-card-dark {
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.bento-card-light {
    background: #ffffff;
    height: 240px;
}

.bento-bg-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 100px;
    color: var(--border-color);
    opacity: 0.2;
}

.bento-metric {
    position: relative;
    z-index: 2;
}

.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.bento-card-primary {
    background: var(--primary);
    color: #ffffff;
    height: 180px;
}

.bento-card-primary h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
}

.bento-card-primary .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 15px;
}

.bento-card-dark {
    background: #2b3a4a;
    color: #ffffff;
    height: 180px;
}

.bento-card-dark h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.25rem;
}

.bento-card-dark .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 15px;
}

.bento-card-img-container {
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.bento-card-img-container:hover .bento-img {
    transform: scale(1.1);
}

/* ==========================================================
   Vertical Modal Styles (Responsive & Clean)
========================================================== */
.vertical-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
}

.vertical-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vertical-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vertical-modal-overlay.active .vertical-modal-box {
    transform: translateY(0) scale(1);
}

.vertical-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.vertical-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

#vertical-modal-content-area {
    padding: 30px;
    overflow-y: auto;
}

.vertical-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vertical-modal-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-glow, rgba(61, 171, 225, 0.15));
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-modal-icon svg {
    width: 24px;
    height: 24px;
}

.vertical-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    position: relative;
    display: inline-block;
}

/* Subrayado con la paleta de colores */
.vertical-modal-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.vertical-modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.vertical-modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.modal-bullet-icon {
    color: var(--primary);
    margin-top: 3px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .vertical-modal-box {
        border-radius: 16px;
    }

    #vertical-modal-content-area {
        padding: 20px;
    }

    .vertical-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vertical-modal-title {
        font-size: 1.25rem;
    }

    .vertical-modal-list-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.accordion-image {
    flex: 0 0 320px;
    width: 320px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.accordion-image-placeholder {
    flex: 0 0 320px;
    width: 320px;
    height: 220px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #e6eff8 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.accordion-image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%233dabe1" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>') no-repeat center;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .accordion-content-inner {
        flex-direction: column-reverse;
        gap: 24px;
        align-items: flex-start;
    }

    .accordion-image,
    .accordion-image-placeholder {
        width: 100%;
        height: 180px;
        flex: none;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-content-inner {
        padding: 0 20px 24px;
    }
}

/* Propuesta de Valor Section */
.value-proposition {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.value-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.value-item {
    text-align: center;
    color: var(--text-main);
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.value-item svg {
    width: 48px;
    /* Restore fixed size */
    height: 48px;
    /* Restore fixed size */
    color: var(--accent-gray);
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-item:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Clientes y Partners Section */
.partners {
    background: var(--bg-soft);
    padding-bottom: 80px;
}

/* Interactive Partners Grid UI */
.dynamic-partners-wrapper {
    margin-top: 40px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.partners-category-title {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.partners-category-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

.partners-interactive-layout {
    display: grid;
    /* Por defecto, cards distribuidos de forma homogénea */
    grid-template-columns: 1fr;
    gap: 24px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-items: start;
}

/* Cuando un item es seleccionado, reorganizamos todo a Panel Maestro (Izquierda Grid) y Detalle (Derecha Sticky) */
.partners-interactive-layout.has-selection {
    grid-template-columns: 1.5fr 1fr;
    /* The left side becomes a denser grid, the right side is the detail panel */
}

@media (max-width: 992px) {
    .partners-interactive-layout.has-selection {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        /* Detail panel jumps to bottom */
    }
}

/* Master Grid containing cards */
.partners-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    transition: var(--transition);
}

.partner-card-ui {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.partner-card-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.partner-card-ui:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(148, 164, 188, 0.15);
    border-color: var(--primary);
}

.partner-card-ui:hover::before {
    transform: scaleX(1);
}

.partner-card-ui.selected {
    border-color: var(--primary);
    background: var(--bg-soft);
    box-shadow: 0 10px 25px rgba(61, 171, 225, 0.1);
    transform: scale(0.98);
}

.partner-card-ui.selected::before {
    transform: scaleX(1);
    background: var(--primary-light);
}

/* Inactive cards look faded when there's a selection */
.partners-interactive-layout.has-selection .partner-card-ui:not(.selected) {
    opacity: 0.6;
    filter: grayscale(80%);
}

.partners-interactive-layout.has-selection .partner-card-ui:not(.selected):hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.partner-card-logo {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-card-ui:hover .partner-card-logo,
.partner-card-ui.selected .partner-card-logo {
    filter: none;
    opacity: 1;
}

.partner-card-name {
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    text-align: center;
}

/* Info Side Panel (Detail View) */
.partner-info-panel-wrap {
    perspective: 1000px;
}

.partner-info-panel {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px) rotateY(-10deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.partners-interactive-layout.has-selection .partner-info-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) rotateY(0deg);
}

.partner-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-soft);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.partner-panel-close:hover {
    background: #ffe5e5;
    color: #ef4444;
    transform: rotate(90deg);
}

.partner-panel-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
}

.partner-panel-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.2;
}

.partner-panel-cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.partner-panel-cat.cat-cliente {
    background: rgba(61, 171, 225, 0.1);
    color: var(--primary);
}

.partner-panel-cat.cat-proveedor {
    background: rgba(148, 164, 188, 0.15);
    color: var(--text-main);
}

.partner-panel-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.partner-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.partner-panel-link:hover {
    color: var(--primary-light);
    gap: 12px;
}

/* Contact Section Modernized */
.contact {
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
}

.contact-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-tag-v2 {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(61, 171, 225, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-title-v2 {
    font-family: 'Manrope', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a2b4b;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-desc-v2 {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
}

.text-gradient {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

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

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

.contact-icon-v2 {
    width: 40px;
    height: 40px;
    background: #f1f7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(61, 171, 225, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item-v2:hover .contact-icon-v2 {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.contact-text-v2 h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2b4b;
    margin-bottom: 2px;
}

.contact-text-v2 p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.contact-map-v2 {
    margin-top: 32px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-map-v2 iframe {
    width: 100%;
    height: 240px;
    border: 0;
    display: block;
}

.contact-form-side-v2 {
    position: sticky;
    top: 100px;
}

.contact-form-v2 {
    background: #ffffff;
    padding: 56px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 50, 150, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.contact-form-v2 h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2b4b;
    margin-bottom: 12px;
}

.contact-form-v2 p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 40px;
}

.input-group-v2 {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-v2 label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2b4b;
    margin-left: 4px;
}

.input-group-v2 input,
.input-group-v2 textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8faff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1a2b4b;
    transition: all 0.3s ease;
    outline: none;
}

.input-group-v2 input:focus,
.input-group-v2 textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(61, 171, 225, 0.1);
}

.btn-primary-v2 {
    background: var(--primary);
    color: #fff;
    padding: 18px 32px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(61, 171, 225, 0.25);
    width: 100%;
}

.btn-primary-v2:hover {
    background: #005baf;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(61, 171, 225, 0.35);
}

.btn-primary-v2:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .contact-grid-v2 {
        gap: 40px;
    }

    .contact-form-v2 {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr;
    }

    .contact-form-side-v2 {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }

    .contact-form-v2 {
        padding: 32px 24px;
    }

    .contact-form-v2 h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    background: var(--bg-soft);
    color: var(--text-muted);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo p {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
    }

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

    .hex-pattern {
        opacity: 0.3 !important;
        width: 250px !important;
        left: -100px !important;
    }
}

/* ==================================================
   Hero Hex Pattern Animation UI
================================================== */
.hex-pattern {
    position: absolute;
    left: -20px;
    top: 5%;
    height: 90%;
    width: 450px;
    z-index: 3;
    pointer-events: auto;
    /* Allow hover on hexagons */
    will-change: opacity, transform;
    animation: hex-float 20s infinite ease-in-out;
}

@keyframes hex-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(15px, -10px) rotate(1deg);
    }

    66% {
        transform: translate(-5px, 15px) rotate(-0.5deg);
    }
}

.hex-pattern svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    /* Increased opacity from 0.1 to make it visible */
    filter: drop-shadow(0px 10px 15px rgba(61, 171, 225, 0.15));
}

/* Strokes y Nodos */
.hex-stroke {
    stroke: var(--primary);
    opacity: 0.15;
    transition: all 0.4s ease;
}

.hex-node {
    fill: var(--primary);
    opacity: 0.2;
    transition: all 0.4s ease;
    /* Se quitó 'node-pulse' */
}

/* Hexágonos con Relleno (Efecto de flujo de datos sutil) */
.hex-solid {
    fill: var(--primary);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: hex-flow 8s infinite ease-in-out;
}

.shade-1 {
    opacity: 0.05;
}

.shade-2 {
    opacity: 0.1;
}

.shade-3 {
    opacity: 0.2;
}

/* Interactive Hover Effect */
.hex-solid,
.hex-stroke {
    cursor: default;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.hex-solid:hover {
    transform: scale(1.15) translateY(-5px);
    filter: brightness(1.8) drop-shadow(0 0 15px rgba(61, 171, 225, 0.4));
    opacity: 0.8 !important;
}

.hex-stroke:hover {
    opacity: 0.8;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px rgba(61, 171, 225, 0.3));
}

/* Animación de Flujo: secuencia de brillo sutil */
@keyframes hex-flow {

    0%,
    100% {
        filter: brightness(0.7);
        opacity: 0.1;
    }

    50% {
        filter: brightness(1.5);
        opacity: 0.4;
    }
}

/* Secuenciador manual para los hexágonos sólidos existentes para dar sensación de movimiento */
.honeycomb-group use:nth-of-type(4n) {
    animation-delay: 0s;
}

.honeycomb-group use:nth-of-type(4n+1) {
    animation-delay: 2s;
}

.honeycomb-group use:nth-of-type(4n+2) {
    animation-delay: 4s;
}

.honeycomb-group use:nth-of-type(4n+3) {
    animation-delay: 6s;
}

/* Efecto Hover: Resalta solo donde está el usuario */
.hex-pattern:hover .hex-stroke {
    opacity: 0.4;
    stroke-width: 2px;
}

.hex-pattern:hover .hex-node {
    opacity: 0.8;
}

.hex-solid:hover {
    cursor: pointer;
    filter: brightness(1.8) !important;
    opacity: 0.9 !important;
    transform: scale(1.02);
}

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

/* --- SVG ICON SCALING --- */
.icon-large svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    stroke: currentColor;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-large svg {
    transform: scale(1.1) translateY(-5px);
    color: var(--primary);
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-section:empty {
    display: none;
}

.honeycomb-group use:nth-of-type(4n+3) {
    animation-delay: 6s;
}

/* Efecto Hover: Resalta solo donde está el usuario */
.hex-pattern:hover .hex-stroke {
    opacity: 0.4;
    stroke-width: 2px;
}

.hex-pattern:hover .hex-node {
    opacity: 0.8;
}

.hex-solid:hover {
    cursor: pointer;
    filter: brightness(1.8) !important;
    opacity: 0.9 !important;
    transform: scale(1.02);
}

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

/* --- SVG ICON SCALING --- */
.icon-large svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    stroke: currentColor;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-large svg {
    transform: scale(1.1) translateY(-5px);
    color: var(--primary);
}

/* Map Section (legacy, kept for compatibility) */
.map-section {
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-section:empty {
    display: none;
}

/* === NEW: Tecnología con Propósito Section === */
.tech-purpose {
    padding: 100px 0;
    background: #f8faff;
    overflow: hidden;
}

.tech-purpose-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title-alt {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.section-desc-alt {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.tech-features {
    display: flex;
    gap: 32px;
}

.tech-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-feature-item .material-symbols-outlined {
    color: var(--primary);
}

.tech-feature-item .material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1;
}

.feature-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tech-purpose-visual {
    position: relative;
}

.abstract-card {
    aspect-ratio: 16 / 9;
    background: #cbdbf5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

.abstract-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.abstract-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 171, 225, 0.2) 0%, transparent 100%);
}

/* === NEW: Modern Services Grid === */
.services-modern {
    padding: 100px 0;
    background: #fff;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.service-card-modern {
    background: #fff;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.service-card-modern:hover {
    transform: translateY(-15px) perspective(1200px) rotateX(4deg) rotateY(2deg);
    box-shadow: 0 40px 80px rgba(0, 50, 150, 0.15);
    border-color: rgba(61, 171, 225, 0.4);
}

.icon-box-modern {
    width: 60px;
    height: 60px;
    background: #f8fbff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(61, 171, 225, 0.05);
}

.icon-box-modern svg,
.icon-box-modern .material-symbols-outlined {
    transition: all 0.3s ease;
}

.icon-box-modern svg,
.servicios-icon-v2 svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    stroke: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box-modern .material-symbols-outlined {
    font-size: 32px;
}

.service-card-modern:hover .icon-box-modern,
.servicios-card-v2:hover .servicios-icon-v2,
.vertical-card-v2:hover .vertical-icon-v2 {
    transform: scale(1.1) rotate(-8deg);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(61, 171, 225, 0.3);
    border-color: transparent;
}

.service-card-modern:hover .icon-box-modern svg,
.service-card-modern:hover .icon-box-modern .material-symbols-outlined,
.vertical-card-v2:hover .vertical-icon-v2 svg,
.vertical-card-v2:hover .vertical-icon-v2 .material-symbols-outlined {
    transform: rotate(8deg);
}

.service-card-modern h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4f5f79;
    margin-bottom: 16px;
    line-height: 1.4;
}

.service-card-modern p {
    font-size: 1rem;
    color: #404754;
    margin-bottom: 40px;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-saber-mas {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    padding: 14px 32px;
    background: var(--primary);
    border: none;
    border-radius: 100px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(61, 171, 225, 0.2);
    margin-top: auto;
}

.btn-saber-mas:hover {
    transform: translateY(-2px);
    background: #2b9ad4;
    box-shadow: 0 8px 20px rgba(61, 171, 225, 0.3);
}

.vertical-link-v2 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

/* === NEW: Modern Verticals Card (V2) === */
.vertical-card-v2 {
    background: #ffffff;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    z-index: 1;
}

.vertical-card-v2:hover {
    transform: translateY(-15px) perspective(1200px) rotateX(4deg) rotateY(2deg);
    box-shadow: 0 40px 80px rgba(0, 50, 150, 0.15);
    border-color: rgba(61, 171, 225, 0.4);
}

.vertical-card-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(61, 171, 225, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.vertical-icon-v2 {
    width: 60px;
    height: 60px;
    background: #f8fbff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(61, 171, 225, 0.1);
}

.vertical-icon-v2 svg,
.vertical-icon-v2 .material-symbols-outlined {
    transition: all 0.3s ease;
}

.vertical-icon-v2 svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    stroke: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-icon-v2 .material-symbols-outlined {
    font-size: 32px;
}

.vertical-card-v2:hover .vertical-icon-v2 {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 10px 25px rgba(61, 171, 225, 0.3);
}

.vertical-card-v2:hover .vertical-icon-v2 svg,
.vertical-card-v2:hover .vertical-icon-v2 .material-symbols-outlined {
    transform: rotate(8deg);
}

.vertical-card-v2:hover .vertical-icon-v2 svg {
    transform: scale(1.1) translateY(-5px);
}

.vertical-title-v2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a2b4b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.vertical-tags-v2 {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    display: block;
    line-height: 1.5;
}

.vertical-card-v2:hover .vertical-card-glow {
    background: radial-gradient(circle, rgba(61, 171, 225, 0.15) 0%, transparent 70%);
}

.vertical-desc-v2 {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

color: #4a5568;
line-height: 1.7;
margin-bottom: 40px;
flex-grow: 1;
}

.vertical-link-v2 {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3dabe1;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vertical-card-v2:hover .vertical-link-v2 {
    gap: 12px;
    color: #005baf;
}

@media (max-width: 992px) {
    .tech-purpose-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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

    .section-title-alt {
        font-size: 2.2rem;
    }

    .tech-purpose {
        padding: 80px 0;
    }

    .tech-features {
        flex-direction: column;
        gap: 20px;
    }

    .vertical-card-v2 {
        padding: 32px;
        border-radius: 24px;
    }

    .vertical-title-v2 {
        font-size: 1.4rem;
    }
}

/* Background Hex Overlay */
.section-hex-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hex-bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,1 95,25 95,75 50,99 5,75 5,25' fill='none' stroke='%233dabe1' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 120px 138px;
    animation: hex-bg-move 100s linear infinite;
}

@keyframes hex-bg-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 800px 920px;
    }
}

.services-modern,
.verticals-v2,
.contact,
.tech-purpose,
.partners {
    position: relative;
    overflow: hidden;
}

.services-modern .container,
.verticals-v2 .container,
.contact .container,
.tech-purpose .container,
.partners .container {
    position: relative;
    z-index: 2;
}

/* --- FINAL MOBILE REFINEMENT --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        will-change: transform;
    }

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

    .nav-links a,
    .nav-links .btn-primary {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
        transition: all 0.3s ease-out;
    }

    .nav-links a.visible,
    .nav-links .btn-primary.visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links a:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links .btn-primary {
        transition-delay: 0.35s;
    }

    /* Logo visibility when menu is open */
    header.menu-open .logo img {
        filter: none !important;
        position: relative;
        z-index: 1100;
    }

    header.menu-open #mobile-menu {
        z-index: 1100;
        color: var(--text-main);
    }

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

    .nav-links a {
        font-size: 1.6rem;
        color: #1a2b4b !important;
        font-weight: 700;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .partner-card-logo {
        filter: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 150px !important;
        min-height: auto !important;
        display: block !important;
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    .hero-content {
        width: 100% !important;
        padding: 0 20px !important;
        text-align: left !important;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        margin-bottom: 20px !important;
    }

    .hero p {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
    }

    .hex-pattern svg {
        max-width: 100% !important;
        right: -50px !important;
        top: -20px !important;
        opacity: 0.08 !important;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 30px !important;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .partners-grid-cards {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        animation: marquee 30s linear infinite !important;
        gap: 50px !important;
        padding: 30px 0 !important;
        align-items: center !important;
        will-change: transform;
    }

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

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

    .partner-card-ui {
        width: 140px !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .partner-card-logo {
        max-height: 55px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        filter: none !important;
        opacity: 1 !important;
    }

    footer {
        padding: 15px 0 !important;
    }

    .footer-logo img {
        height: 25px !important;
    }
}

/* === Beneficios Arquitectura Section === */
.beneficios-section {
    padding: 100px 0;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.beneficios-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.beneficios-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.beneficio-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--primary);
    font-size: 28px !important;
    margin-top: 2px;
}

.benefit-content h4 {
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2b4b;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Bento Grid */
.beneficios-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bento-col-1,
.bento-col-2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bento-card-light,
.bento-card-primary,
.bento-card-dark {
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bento-card-light {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.bento-card-primary {
    background: var(--primary);
    color: #fff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-card-primary h4 {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.bento-card-dark {
    background: #1a2b4b;
    color: #fff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bento-card-img-container {
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px !important;
    opacity: 0.05;
    color: var(--primary);
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 992px) {
    .beneficios-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

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