/* ============================================
   NovaHost - CSS Variables
   ============================================ */
:root {
    /* Colores corporativos - NovaHost Brand */
    --color-navy: #1E3A5F;
    --color-cyan: #0891B2;
    --color-amber: #D97706;
    /* Escala de grises */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    /* Tipografía */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
}

a { color: var(--color-cyan); text-decoration: none; }
a:hover { color: var(--color-navy); }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--color-navy); }

.nav-link.active {
    color: var(--color-navy);
    font-weight: 600;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-cyan);
    color: white;
}

.btn-primary:hover {
    background: var(--color-navy);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: white;
}

.btn-amber {
    background: var(--color-amber);
    color: white;
}

.btn-amber:hover {
    background: #B45309;
    color: white;
}

/* ============================================
   Hero Section - Nova Cósmica + Ark Digital
   Nova = explosión estelar brillante
   Ark  = base sólida que protege
   ============================================ */
.hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(8, 145, 178, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(217, 119, 6, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #020a14 0%, #061428 30%, #0a1f3d 55%, var(--color-navy) 80%, #162d4d 100%);
    color: white;
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

/* Grid geométrico de fondo */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(8,145,178,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,145,178,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    animation: grid-drift 30s ease-in-out infinite;
}

@keyframes grid-drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-10px, -10px); opacity: 1; }
}

/* Resplandores nova — nebulosas de color marca */
.hero-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: glow-drift 20s ease-in-out infinite;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(8,145,178,0.25) 0%, transparent 70%);
    top: -10%; left: -5%;
}

.glow-2 {
    width: 400px; height: 350px;
    background: radial-gradient(ellipse, rgba(217,119,6,0.15) 0%, transparent 70%);
    bottom: 0%; right: -5%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.glow-3 {
    width: 350px; height: 300px;
    background: radial-gradient(ellipse, rgba(8,145,178,0.12) 0%, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    33% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
    66% { transform: translate(-20px, 15px) scale(0.95); opacity: 0.7; }
}

/* Capas de estrellas — cielo profundo */
.hero-dots-far {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 120%;
    pointer-events: none;
    z-index: 2;
}

.hero-dots-mid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 130%;
    pointer-events: none;
    z-index: 3;
}

.hero-dots-near {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 150%;
    pointer-events: none;
    z-index: 4;
}

.dot {
    position: absolute;
    border-radius: 50%;
}

.dot-far {
    background: rgba(255,255,255,0.4);
    animation: dot-pulse-slow 6s infinite ease-in-out;
}

.dot-mid {
    background: rgba(255,255,255,0.6);
    animation: dot-pulse-mid 4s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(8,145,178,0.3);
}

.dot-near {
    background: rgba(255,255,255,0.8);
    animation: dot-pulse-fast 3s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(8,145,178,0.4), 0 0 16px rgba(8,145,178,0.15);
}

.dot-accent {
    animation: dot-pulse-accent 4s infinite ease-in-out;
}

@keyframes dot-pulse-slow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes dot-pulse-mid {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

@keyframes dot-pulse-fast {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

@keyframes dot-pulse-accent {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); filter: brightness(1.3); }
}

/* Parpadeo estelar (twinkle) para estrellas seleccionadas */
@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    25% { opacity: 1; transform: scale(1.3); }
    50% { opacity: 0.5; transform: scale(1); }
    75% { opacity: 1; transform: scale(1.2); }
}

/* Pulsos de señal ascendente */
.hero-signals {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}

.signal-pulse {
    position: absolute;
    width: 2px;
    height: 80px;
    opacity: 0;
}

.signal-pulse::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, transparent, rgba(8,145,178,0.6), rgba(217,119,6,0.4), transparent);
    border-radius: 2px;
}

.signal-pulse:nth-child(1) {
    left: 20%; bottom: 0;
    animation: signal-rise 7s linear infinite;
    height: 60px;
}
.signal-pulse:nth-child(2) {
    left: 55%; bottom: 0;
    animation: signal-rise 9s linear infinite;
    animation-delay: 2s;
    height: 90px;
}
.signal-pulse:nth-child(3) {
    left: 78%; bottom: 0;
    animation: signal-rise 6s linear infinite;
    animation-delay: 4.5s;
    height: 50px;
}
.signal-pulse:nth-child(4) {
    left: 40%; bottom: 0;
    animation: signal-rise 8s linear infinite;
    animation-delay: 6s;
    height: 70px;
}

@keyframes signal-rise {
    0% { opacity: 0; transform: translateY(0); }
    5% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-120vh); }
}

/* Constelación de nodos conectados */
.hero-network {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.network-svg {
    width: 450px;
    height: 500px;
    opacity: 0.3;
    overflow: visible;
}

.network-svg .n-node {
    fill: rgba(255,255,255,0.9);
    filter: drop-shadow(0 0 8px rgba(8,145,178,0.6));
    animation: node-pulse 4s ease-in-out infinite;
}

.network-svg .n-node.cyan {
    fill: var(--color-cyan);
    filter: drop-shadow(0 0 12px rgba(8,145,178,0.8));
}

.network-svg .n-node.amber {
    fill: var(--color-amber);
    filter: drop-shadow(0 0 12px rgba(217,119,6,0.6));
}

.network-svg .n-bar {
    animation: bar-fade 3s ease-in-out infinite alternate;
}

.network-svg .n-glow {
    fill: rgba(8,145,178,0.2);
    animation: node-glow 5s ease-in-out infinite;
}

.network-svg .n-link {
    stroke: rgba(8,145,178,0.2);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-link 2.5s ease forwards;
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 15px rgba(8,145,178,0.8)); }
}

@keyframes node-glow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

@keyframes bar-fade {
    0% { opacity: 0.08; }
    100% { opacity: 0.25; }
}

@keyframes draw-link {
    to { stroke-dashoffset: 0; }
}

.network-svg .d1 { animation-delay: 0.1s; }
.network-svg .d2 { animation-delay: 0.2s; }
.network-svg .d3 { animation-delay: 0.3s; }
.network-svg .d4 { animation-delay: 0.4s; }
.network-svg .d5 { animation-delay: 0.5s; }
.network-svg .d6 { animation-delay: 0.6s; }

/* Gradiente de profundidad */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, var(--color-navy), transparent);
    pointer-events: none;
    z-index: 9;
}

/* Contenedor centrado */
.hero .container {
    text-align: center;
    position: relative;
    z-index: 15;
}

.hero-content {
    max-width: 600px;
    animation: content-fade-in 1.5s ease-out;
    text-align: left;
}

@keyframes content-fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 12px rgba(0,0,0,0.5),
        0 8px 24px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
    color: var(--color-cyan);
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(8, 145, 178, 0.5),
        0 0 40px rgba(8, 145, 178, 0.3);
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: var(--color-amber);
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 0 15px rgba(217, 119, 6, 0.4);
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: #f3f4f6;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 520px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero.btn-primary {
    background: var(--color-cyan);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.4);
}

.btn-hero.btn-primary:hover {
    background: var(--color-navy);
    box-shadow: 0 6px 30px rgba(8, 145, 178, 0.6);
    transform: translateY(-2px);
}

.btn-hero.btn-secondary {
    border-color: rgba(255,255,255,0.8);
    color: white;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.btn-hero.btn-secondary:hover {
    background: white;
    color: var(--color-navy);
    transform: translateY(-2px);
}

/* ============================================
   Page Header (for internal pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0a2240 100%);
    color: white;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header > .container,
.blog-post-header > .container {
    position: relative;
    z-index: 15;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-cyan);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
    margin: 0 0.5rem;
}

/* ============================================
   Somos Expertos Section
   ============================================ */
.expertos {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.expertos h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 2.5rem;
}

.expertos-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.expertos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.experto-card {
    padding: 2rem 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.experto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.experto-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-navy));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.experto-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.experto-card h3 {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.experto-card p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ============================================
   Servicios Section
   ============================================ */
.servicios {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.servicio-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.servicio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.servicio-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.servicio-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.servicio-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.servicio-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
}

.servicio-card > p {
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.servicio-features {
    list-style: none;
}

.servicio-features li {
    padding: 0.4rem 0;
    color: var(--color-gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.servicio-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

.servicio-card .btn {
    margin-top: 1.5rem;
    width: 100%;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 5rem 0;
    background: var(--color-gray-50);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Feature Sections (alternating service layout)
   ============================================ */
.feature-sections {
    padding: 0;
}

.feature-section {
    padding: 5rem 0;
}

.feature-section:nth-child(odd) {
    background: var(--color-gray-50);
}

.feature-section:nth-child(even) {
    background: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    color: white;
}

.feature-section:nth-child(even) .feature-text h3 {
    color: white;
}

.feature-section:nth-child(even) .feature-text > p {
    color: rgba(255,255,255,0.7);
}

.feature-section:nth-child(even) .feature-list li {
    color: rgba(255,255,255,0.8);
}

.feature-section:nth-child(even) .feature-icon-box {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(8,145,178,0.4);
    box-shadow: 0 0 30px rgba(8,145,178,0.15);
}

.feature-section:nth-child(even) .feature-icon-box svg {
    color: #22d3ee;
    filter: drop-shadow(0 0 6px rgba(34,211,238,0.3));
}

.feature-section:nth-child(even):nth-child(3n) .feature-icon-box {
    background: rgba(217,119,6,0.12);
    border-color: rgba(217,119,6,0.4);
    box-shadow: 0 0 30px rgba(217,119,6,0.15);
}

.feature-section:nth-child(even):nth-child(3n) .feature-icon-box svg {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251,191,36,0.3));
}

.feature-section:nth-child(even) .feature-list li::before {
    background: #22d3ee;
}

.feature-section:nth-child(even):nth-child(3n) .feature-list li::before {
    background: #fbbf24;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-section:nth-child(even) .feature-grid {
    direction: rtl;
}

.feature-section:nth-child(even) .feature-grid > * {
    direction: ltr;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-box {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(30,58,95,0.1));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8,145,178,0.15);
}

.feature-icon-box svg {
    width: 72px;
    height: 72px;
    color: var(--color-cyan);
}

.feature-section:nth-child(3n) .feature-icon-box {
    background: linear-gradient(135deg, rgba(217,119,6,0.1), rgba(30,58,95,0.1));
    border-color: rgba(217,119,6,0.15);
}

.feature-section:nth-child(3n) .feature-icon-box svg {
    color: var(--color-amber);
}

.feature-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.feature-text > p {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 50%;
}

.feature-section:nth-child(3n) .feature-list li::before {
    background: var(--color-amber);
}

.feature-text .btn {
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .feature-section:nth-child(even) .feature-grid {
        direction: ltr;
    }
    .feature-visual { order: -1; }
    .feature-icon-box { width: 140px; height: 140px; }
    .feature-icon-box svg { width: 56px; height: 56px; }
    .feature-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .feature-text h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .feature-section { padding: 3rem 0; }
    .feature-icon-box { width: 110px; height: 110px; border-radius: 24px; }
    .feature-icon-box svg { width: 44px; height: 44px; }
}

/* ============================================
   Service Page Hero
   ============================================ */
.service-hero {
    background: linear-gradient(135deg, #020a14 0%, #061428 30%, #0a1f3d 55%, #1E3A5F 80%, #162d4d 100%);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217,119,6,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.service-hero-content .service-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(8,145,178,0.15);
    border: 1px solid rgba(8,145,178,0.3);
    border-radius: 20px;
    color: var(--color-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.service-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: white;
}

.service-hero-content h1 .highlight {
    color: var(--color-cyan);
}

.service-hero-content .service-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.service-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.service-hero-tag {
    padding: 0.35rem 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
}

.service-hero-buttons {
    display: flex;
    gap: 1rem;
}

.service-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-hero-visual img {
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.15;
}

@media (max-width: 992px) {
    .service-hero { padding: 120px 0 60px; }
    .service-hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .service-hero-content h1 { font-size: 2.2rem; }
    .service-hero-content .service-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .service-hero-tags { justify-content: center; }
    .service-hero-buttons { justify-content: center; }
    .service-hero-visual { order: -1; }
    .service-hero-visual img { max-width: 180px; opacity: 0.1; }
}

@media (max-width: 480px) {
    .service-hero { padding: 100px 0 50px; }
    .service-hero-content h1 { font-size: 1.8rem; }
    .service-hero-content .service-desc { font-size: 0.95rem; }
    .service-hero-buttons { flex-direction: column; }
    .service-hero-buttons .btn { width: 100%; text-align: center; }
}

/* ============================================
   Service Highlights
   ============================================ */
.service-highlights {
    padding: 4rem 0;
    background: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--color-gray-50);
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: rgba(8,145,178,0.2);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(8,145,178,0.12), rgba(30,58,95,0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-cyan);
}

.highlight-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .highlights-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Trust Banner
   ============================================ */
.trust-banner {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #0a1628 0%, #1E3A5F 100%);
    color: white;
    border-top: 1px solid rgba(8,145,178,0.2);
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-cyan);
    flex-shrink: 0;
}

.trust-item .trust-value {
    color: var(--color-cyan);
    font-weight: 700;
}

@media (max-width: 768px) {
    .trust-grid { gap: 1.5rem; flex-direction: column; align-items: center; }
}

/* ============================================
   Improved Service Cards
   ============================================ */
.servicios-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.servicio-card-v2 {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.servicio-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: var(--color-cyan);
}

.servicio-card-v2 .card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-navy));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.servicio-card-v2 .card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.servicio-card-v2 h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.6rem;
}

.servicio-card-v2 .card-desc {
    font-size: 0.88rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.servicio-card-v2 .card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.servicio-card-v2 .card-features li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--color-gray-700);
}

.servicio-card-v2 .card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 7px;
    height: 7px;
    background: var(--color-cyan);
    border-radius: 50%;
}

.servicio-card-v2 .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-cyan);
    text-decoration: none;
    transition: gap 0.3s;
}

.servicio-card-v2 .card-link:hover {
    gap: 0.7rem;
}

.servicio-card-v2 .card-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .servicios-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .servicios-grid-v2 { grid-template-columns: 1fr; }
}

/* ============================================
   Platform Hub Cards (servicios.html)
   ============================================ */
.platform-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.platform-hub-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s;
}

.platform-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
    border-color: var(--color-cyan);
}

.platform-hub-card .hub-logo {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 1.25rem;
}

.platform-hub-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.6rem;
}

.platform-hub-card .hub-desc {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.platform-hub-card .hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.platform-hub-card .hub-tag {
    padding: 0.3rem 0.75rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.platform-hub-card .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .platform-hub-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    color: white;
    text-align: center;
}

.testimonials h2 { color: white; font-size: 1.75rem; margin-bottom: 0.5rem; }
.testimonials .section-subtitle { color: rgba(255,255,255,0.6); margin-bottom: 2.5rem; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s;
}

.testimonial-card:hover {
    background: rgba(8,145,178,0.1);
    border-color: rgba(8,145,178,0.3);
    transform: translateY(-4px);
}

.testimonial-stars { color: #D97706; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.92rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(8,145,178,0.2); border: 2px solid rgba(8,145,178,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: var(--color-cyan);
}

.testimonial-info h4 { font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 0.15rem; }
.testimonial-info span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

@media (max-width: 992px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } }

/* ============================================
   FAQ Section
   ============================================ */
.faq-section { padding: 5rem 0; }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--color-gray-200); }

.faq-question {
    width: 100%; padding: 1.25rem 0; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--font-primary); font-size: 1.05rem;
    font-weight: 600; color: var(--color-navy); text-align: left; gap: 1rem;
}

.faq-question:hover { color: var(--color-cyan); }

.faq-question svg { width: 20px; height: 20px; color: var(--color-gray-400); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--color-cyan); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 1.25rem; font-size: 0.95rem; color: var(--color-gray-600); line-height: 1.7; }

/* ============================================
   Tech Carousel (infinite scroll)
   ============================================ */
.tech-carousel {
    overflow: hidden;
    padding: 2rem 0;
}

.tech-carousel-track {
    display: flex;
    align-items: center;
    animation: scroll-logos 60s linear infinite;
    width: max-content;
}

.tech-carousel-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 180px;
    height: 110px;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    margin: 0 0.75rem;
}

.tech-item:hover {
    background: rgba(255,255,255,0.12);
}

.tech-item img {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.tech-item:hover img {
    opacity: 1;
}

.tech-item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 999;
    transition: all 0.3s; text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

@media (max-width: 480px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ============================================
   Blog Post Hero (compact)
   ============================================ */
.hero.hero-blog-post {
    min-height: auto;
    padding: 130px 0 60px;
}

.hero.hero-blog-post .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero.hero-blog-post h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.hero.hero-blog-post .blog-post-meta {
    justify-content: center;
    margin-top: 1rem;
}

.hero.hero-blog-post .breadcrumb {
    margin-bottom: 1rem;
}

.hero.hero-blog-post .breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.hero.hero-blog-post .breadcrumb a:hover {
    color: rgba(255,255,255,0.9);
}

.hero.hero-blog-post .breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.hero.hero-blog-post .breadcrumb span:last-child {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .hero.hero-blog-post { padding: 110px 0 40px; }
    .hero.hero-blog-post h1 { font-size: 1.8rem; }
}

/* ============================================
   Valores Section
   ============================================ */
.valores-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    color: white;
    text-align: center;
}

.valores-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.valores-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.valor-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.valor-card:hover {
    background: rgba(8,145,178,0.12);
    border-color: rgba(8,145,178,0.3);
    transform: translateY(-5px);
}

.valor-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: rgba(8,145,178,0.15);
    border: 1px solid rgba(8,145,178,0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valor-icon svg {
    width: 26px;
    height: 26px;
    color: #22d3ee;
}

.valor-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.6rem;
}

.valor-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .valores-grid { grid-template-columns: 1fr; }
    .valores-section { padding: 3rem 0; }
}

/* ============================================
   CTA Final (improved)
   ============================================ */
.cta-final {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8,145,178,0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-final .container {
    position: relative;
    z-index: 1;
}

.cta-final h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-final p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 480px) {
    .cta-final h2 { font-size: 1.6rem; }
    .cta-final-buttons { flex-direction: column; align-items: center; }
    .cta-final-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================
   Software Libre Section
   ============================================ */
.software-libre {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0c2340 100%);
    color: white;
    text-align: center;
}

.software-libre-content {
    max-width: 900px;
    margin: 0 auto;
}

.software-libre h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.software-libre .static-text {
    color: white;
}

.animated-words-wrapper {
    display: inline-block;
    position: relative;
    min-width: 140px;
    height: 1.5em;
    vertical-align: baseline;
}

.animated-word {
    position: absolute;
    left: 0;
    top: 0;
    text-align: left;
    opacity: 0;
    animation: word-rotate 9s infinite ease-in-out;
    color: var(--color-cyan);
    font-weight: 800;
    white-space: nowrap;
}

.animated-word:nth-child(1) { animation-delay: 0s; }
.animated-word:nth-child(2) { animation-delay: 3s; }
.animated-word:nth-child(3) { animation-delay: 6s; }

@keyframes word-rotate {
    0% { opacity: 0; }
    5% { opacity: 1; }
    28% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

.software-libre-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
}

.software-libre-description strong {
    color: var(--color-amber);
}

/* ============================================
   Servicios bajo demanda Section
   ============================================ */
.servicios-demanda {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    text-align: center;
    color: white;
}

.demanda-content {
    max-width: 900px;
    margin: 0 auto;
}

.demanda-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.demanda-content > p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demanda-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.demanda-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.demanda-tag:hover {
    transform: translateY(-2px);
    background: rgba(8,145,178,0.15);
    border-color: rgba(8,145,178,0.3);
}

.demanda-tag svg {
    width: 18px;
    height: 18px;
    fill: var(--color-cyan);
}

/* ============================================
   Países Section
   ============================================ */
.paises {
    padding: 5rem 0;
    background: white;
}

.paises .container {
    text-align: center;
}

.paises h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.paises > .container > p {
    color: var(--color-gray-600);
    margin-bottom: 2.5rem;
}

.paises-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pais-card {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    min-width: 140px;
}

.pais-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--color-cyan);
}

.pais-flag {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pais-flag svg {
    width: 100%;
    height: 100%;
}

.pais-card span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 16px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 5rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-navy));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-item-content h4 {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--color-gray-600);
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* ============================================
   Tecnologías Section
   ============================================ */
.tecnologias {
    padding: 5rem 0;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.tecnologias-content {
    max-width: 900px;
    margin: 0 auto;
}

.tecnologias h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.tecnologias-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.tecnologias-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tecnologias-fullwidth {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 2rem 3rem;
    gap: 1rem;
}

.tecnologia-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 110px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.tecnologia-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.tecnologia-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.tecnologia-item:hover img {
    opacity: 1;
}

/* ============================================
   Security Banner
   ============================================ */
.security-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 1.25rem 0;
}

.security-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.security-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    min-width: 70px;
}

.security-grade .grade-letter {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.security-grade .grade-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-info {
    color: white;
    text-align: left;
    max-width: 500px;
}

.security-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.security-info p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.5;
}

.security-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    text-decoration: none;
}

.security-verify-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.security-verify-btn svg {
    stroke: white;
}


/* ============================================
   Platform Logos
   ============================================ */
.platform-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.platform-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.platform-logo-single {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo {
    width: 320px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .platform-logo {
        width: 220px;
        max-height: 90px;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-navy);
    color: white;
    padding: 0;
}

/* Top strip with CTA */
.footer-cta-strip {
    background: var(--color-cyan);
    padding: 2rem 0;
    text-align: center;
}

.footer-cta-strip p {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-cta-strip a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: white;
    color: var(--color-navy);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-cta-strip a:hover {
    background: var(--color-amber);
    color: white;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 64px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--color-cyan);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-amber);
    border-radius: 1px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.6rem; }
.footer-column a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-payment {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-payment p {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.payment-logos img {
    height: 30px;
    width: auto;
    padding: 5px 10px;
    background: white;
    border-radius: 6px;
    transition: transform 0.2s;
}

.payment-logos img:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-contact a:hover { color: white; }

/* ============================================
   Blog Listing Page
   ============================================ */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-placeholder-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

.blog-placeholder-img svg {
    width: 60px;
    height: 60px;
    fill: white;
    opacity: 0.8;
}

.blog-placeholder-img.category-moodle {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-cyan) 100%);
}

.blog-placeholder-img.category-iomad {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-amber) 100%);
}

.blog-placeholder-img.category-ia {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.blog-placeholder-img.category-wordpress {
    background: linear-gradient(135deg, var(--color-navy) 0%, #6366f1 100%);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-category.category-moodle { color: var(--color-cyan); }
.blog-category.category-iomad { color: var(--color-amber); }
.blog-category.category-ia { color: #7c3aed; }
.blog-category.category-wordpress { color: #6366f1; }

.blog-card-content h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--color-navy);
}

.blog-card-content > p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.blog-meta .blog-date {
    color: var(--color-gray-500);
    font-size: 0.85rem;
}

.blog-read-more {
    color: var(--color-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: var(--color-navy);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.newsletter-form input[type="email"] {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    min-width: 300px;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-cyan);
}

/* ============================================
   Blog Post Pages
   ============================================ */
.blog-post-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0a2240 100%);
    padding: 140px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-post-header .breadcrumb {
    margin-bottom: 1.5rem;
}

.blog-post-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

.blog-post-header .breadcrumb a:hover {
    color: white;
}

.blog-post-header .breadcrumb span {
    color: rgba(255,255,255,0.6);
    margin: 0 0.5rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0;
    max-width: 800px;
}

.category-tag {
    display: inline-block;
    background: var(--color-cyan);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-tag.tag-moodle {
    background: var(--color-cyan);
}

.category-tag.tag-iomad {
    background: var(--color-amber);
}

.category-tag.tag-wordpress {
    background: var(--color-navy);
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.blog-post-meta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.blog-post-content {
    padding: 4rem 0;
    background: white;
}

.blog-post-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-article h2 {
    color: var(--color-navy);
    margin: 2.5rem 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.blog-post-article h3 {
    color: var(--color-cyan);
    margin: 2rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.blog-post-article p {
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-post-article ul,
.blog-post-article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-post-article li {
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.blog-post-article strong {
    color: var(--color-navy);
}

.blog-post-article blockquote {
    border-left: 4px solid var(--color-cyan);
    padding: 1rem 1.5rem;
    background: var(--color-gray-50);
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-post-article blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--color-navy);
}

.blog-post-article code {
    background: var(--color-gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    color: var(--color-cyan);
}

.blog-post-article pre {
    background: var(--color-navy);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-post-article pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

.blog-feature-box {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog-feature-box h4 {
    color: var(--color-cyan);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.blog-feature-box h4 svg {
    fill: var(--color-cyan);
}

.blog-feature-box ul {
    margin: 0;
}

.blog-post-share {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.blog-post-share span {
    color: var(--color-gray-600);
    font-weight: 600;
}

.blog-post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-gray-100);
    border-radius: 50%;
    color: var(--color-gray-600);
    transition: all 0.3s;
}

.blog-post-share a:hover {
    background: var(--color-cyan);
    color: white;
}

.blog-related {
    background: var(--color-gray-50);
    padding: 4rem 0;
}

.blog-related h3 {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.plugin-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.plugin-card h4 {
    color: var(--color-navy);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.plugin-card .rating {
    color: var(--color-amber);
    font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .network-svg { width: 350px; height: 400px; }
    .expertos-grid { grid-template-columns: repeat(2, 1fr); }
    .servicios-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 3rem; }
    .stat-number { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn { display: block; z-index: 101; }
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-navy);
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 100;
    }
    .nav.nav-open { right: 0; }
    .nav-link {
        color: rgba(255,255,255,0.9);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    .nav-link:hover, .nav-link.active { color: var(--color-cyan); }
    .nav .btn { margin-top: 1.5rem; width: 100%; }

    /* Hamburger animation */
    .mobile-menu-btn.active span {
        background: var(--color-cyan);
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Header */
    .header .container { height: 70px; }
    .logo img { height: 50px; }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero-content {
        padding: 1.5rem 1.25rem;
        background: radial-gradient(ellipse at center, rgba(10, 34, 64, 0.95) 0%, rgba(10, 34, 64, 0.85) 70%, rgba(10, 34, 64, 0.6) 100%);
        border-radius: 16px;
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .btn-hero {
        width: 100%;
        max-width: 260px;
        padding: 0.85rem 1.5rem;
    }

    /* Reduce visual effects on mobile for performance */
    .hero-grid { opacity: 0.4; }
    .hero-glows .glow { transform: scale(0.5); opacity: 0.4; }
    .hero-dots-far, .hero-dots-mid { opacity: 0.4; }
    .hero-dots-near { opacity: 0.5; }
    .hero-signals { opacity: 0.3; }
    .network-svg { width: 180px; height: 200px; opacity: 0.15; }

    /* Grids */
    .expertos-grid { grid-template-columns: 1fr; }
    .tecnologias-grid {
        gap: 1rem;
        justify-content: center;
    }
    .tecnologia-item {
        width: 168px;
        height: 96px;
        padding: 1rem;
    }

    /* Platform logos */
    .platform-logos { min-height: 150px; }
    .platform-logo { width: 200px; max-height: 80px; }
    .platform-logo-stack { gap: 1.5rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin-bottom: 1.5rem; }
    .footer-brand img { height: 60px; }
    .footer-social { justify-content: center; }
    .footer-column { margin-bottom: 1.5rem; }
    .footer-payment { padding: 1rem 0; }
    .payment-logos { flex-wrap: wrap; gap: 1rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Other sections */
    .shooting-star:nth-child(4),
    .shooting-star:nth-child(5) { display: none; }
    .page-header { padding: 120px 0 40px; }
    .page-header h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header p { font-size: 1rem; }

    /* Stats section */
    .stats-section { padding: 3rem 0; }
    .stats-grid { gap: 3rem; }
    .stat-number { font-size: 3.5rem; }
    .stat-label { font-size: 0.85rem; }

    /* Software libre */
    .software-libre-content h3 { font-size: 1.3rem; flex-direction: column; }
    .animated-words-wrapper { min-width: 100px; }

    /* Services cards */
    .servicio-card { padding: 1.5rem; }
    .servicio-features { font-size: 0.9rem; }

    /* About section */
    .about-content h2 { font-size: 1.75rem; }

    /* Paises */
    .paises-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .pais-card { padding: 1rem; }
    .pais-card span { font-size: 0.85rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-buttons .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
    .stats-section { padding: 2rem 0; }
    .stats-grid { gap: 2rem; }
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.75rem; }
    .tecnologias-grid { gap: 0.75rem; }
    .tecnologia-item { width: 120px; height: 72px; padding: 0.6rem; }
    .paises-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.5rem; }
    .software-libre-content h3 { font-size: 1.1rem; }
    .servicio-card-header h3 { font-size: 1.1rem; }
    .platform-logo { width: 160px; }
    .breadcrumb { font-size: 0.85rem; }
    .breadcrumb span { margin: 0 0.25rem; }
}

/* Menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   TABS SYSTEM - Service tabs like ingeweb.co
   ============================================ */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-navy);
}

.tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tab-content-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.tab-content-text p {
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tab-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-gray-700);
    font-size: 0.95rem;
}

.tab-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 50%;
}

.tab-content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-content-image img {
    max-width: 100%;
    border-radius: 12px;
}

.tab-content-image .tab-icon-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-navy));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.tab-content-image .tab-icon-large svg {
    width: 100%;
    height: 100%;
    color: white;
}

/* ============================================
   DIFFERENTIATORS SECTION
   ============================================ */
.diferenciadores {
    background: var(--color-gray-50);
}

.diferenciadores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.diferenciador-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: all 0.3s;
}

.diferenciador-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.diferenciador-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(30, 58, 95, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diferenciador-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-cyan);
}

.diferenciador-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.diferenciador-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ============================================
   CTA BANNER (distributed CTAs)
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0a2240 100%);
    padding: 3.5rem 0;
    text-align: center;
    color: white;
}

.cta-banner h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

/* ============================================
   ALTERNATING SECTION BACKGROUNDS
   ============================================ */
.section-alt {
    background: var(--color-gray-50);
}

/* ============================================
   EXPERT CARDS - 3-column grid fix
   ============================================ */
.expertos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ============================================
   SERVICE PAGE - Intro with two columns
   ============================================ */
.intro-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-two-col .intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.intro-two-col .intro-text p {
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-two-col .intro-image {
    display: flex;
    justify-content: center;
}

.intro-two-col .intro-image img {
    max-width: 300px;
}

/* ============================================
   RESPONSIVE - Tabs & new components
   ============================================ */
@media (max-width: 992px) {
    .tabs-nav {
        flex-wrap: wrap;
        gap: 0;
    }

    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tab-content-image {
        order: -1;
    }

    .diferenciadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .intro-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 0.25rem;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding: 0.75rem 1rem;
        background: var(--color-gray-50);
        border-radius: 8px;
    }

    .tab-btn.active {
        border-left-color: var(--color-cyan);
        background: white;
    }

    .diferenciadores-grid {
        grid-template-columns: 1fr;
    }

    .expertos-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-banner h3 {
        font-size: 1.35rem;
    }
}
