/* ============================================
   NovaHost - CSS Variables
   ============================================ */
:root {
    /* Colores corporativos - NovaHost Brand */
    --color-navy: #1E3A5F;
    --color-cyan: #0891B2;
    --color-amber: #D97706;
    /* Acentos sobre fondo oscuro (los corporativos no contrastan ahí) */
    --color-cyan-light: #22d3ee;
    --color-amber-light: #fbbf24;
    /* Fondo oscuro de secciones */
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1E3A5F 50%, #0a1f3d 100%);
    /* 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;
    /* Radios — contenedor recto, control redondeado */
    --radius-flat: 2px;      /* tarjetas, paneles, imágenes, bloques de código */
    --radius-control: 8px;   /* botones, campos de formulario */
    --radius-box: 20%;       /* cajas de icono cuadradas: escala con su tamaño */
    --radius-pill: 999px;    /* etiquetas */
    --radius-circle: 50%;    /* círculos */
    /* Tipografía */
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-primary: 'Inter', -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: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header:not(.header-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.header:not(.header-scrolled) .nav-link:hover,
.header:not(.header-scrolled) .nav-link.active {
    color: #ffffff;
}

.header:not(.header-scrolled) .logo img {
    filter: brightness(0) invert(1);
}

.header:not(.header-scrolled) .mobile-menu-btn span {
    background: #ffffff;
}

.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: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   Typography Scale — Sistema Sora / Inter
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

h1 { font-size: 70px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 44px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 32px; font-weight: 600; line-height: 1.1; }
h4 { font-size: 22px; font-weight: 500; line-height: 1.2; }

p { font-family: var(--font-primary); font-size: 16px; font-weight: 400; line-height: 1.5; }






/* ============================================
   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: var(--radius-control);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-cyan);
    color: white;
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background: rgba(30, 58, 95, 0.07);
    color: var(--color-navy);
}

.btn-amber {
    background: var(--color-amber);
    color: white;
}

.btn-amber:hover {
    background: var(--color-amber);
    color: white;
    filter: brightness(1.08);
}

/* ============================================
   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: 130px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

/* 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: var(--radius-circle);
    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;
}



@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: var(--radius-flat);
}

.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); }
}

/* 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;
}

/* Hero container */
.hero .container {
    position: relative;
    z-index: 15;
}

/* Hero centrado — homepage, única imagen */
.hero-centered {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    animation: content-fade-in 1.5s ease-out;
}

/* Hero split — páginas de servicio */
.hero-content {
    animation: content-fade-in 1.5s ease-out;
    text-align: left;
}

/* Hero centrado (index) — sobreescribe text-align del split */
.hero-content.hero-centered {
    text-align: center;
}

@keyframes content-fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* H1 hero — compartido */
.hero-content h1,
.hero-centered h1 {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.05;
    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);
}

.hero-content h1 .highlight,
.hero-centered 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-highlight-xl {
    display: block;
    font-size: 1.2em;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-home .hero-highlight-xl {
    font-size: 1.5em;
}

.hero-label {
    font-size: 0.45em;
    font-weight: 500;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* Tagline — compartido */
.hero-content .tagline,
.hero-centered .tagline {
    font-size: 1.15rem;
    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;
}

/* Párrafo hero — base (split layout) */
.hero-content p {
    font-size: 18px;
    color: #f3f4f6;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    font-weight: 400;
}

/* Párrafo hero — solo centrado */
.hero-centered p {
    font-size: 18px;
    color: #f3f4f6;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    font-weight: 400;
}

/* Botones hero — base */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Botones centrados solo en hero-centered */
.hero-centered .hero-buttons {
    justify-content: center;
}

.btn-hero {
    padding: 1rem calc(2rem + 3px);
    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.15), 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-cyan);
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.5);
}

.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: rgba(255,255,255,0.18);
    color: white;
}

/* ============================================
   Page Header (for internal pages)
   ============================================ */


/* ============================================
   Somos Expertos Section
   ============================================ */


/* ============================================
   Servicios Section
   ============================================ */
.servicios {
    padding: 5rem 0;
    background: var(--color-gray-50);
}

.servicios > .container > h2 {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-gray-600);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.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: var(--radius-flat);
    padding: 2rem;
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s;
}

.servicio-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}



/* ============================================
   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: var(--gradient-dark);
    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: var(--color-cyan-light);
    filter: none;
}

.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: var(--color-amber-light);
    filter: none;
}

.feature-section:nth-child(even) .feature-list li::before {
    background: var(--color-cyan-light);
}

.feature-section:nth-child(even):nth-child(3n) .feature-list li::before {
    background: var(--color-amber-light);
}

.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: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(30,58,95,0.1));
    border-radius: var(--radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8,145,178,0.18);
}

.feature-icon-box svg {
    width: 52px;
    height: 52px;
    display: block;
    color: var(--color-cyan);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
}

.feature-icon-box svg * {
    vector-effect: non-scaling-stroke;
}

.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: var(--radius-circle);
}

.feature-section:nth-child(3n) .feature-list li::before {
    background: var(--color-amber);
}

.feature-text .btn {
    margin-top: 0.5rem;
}





/* ============================================
   Service Page Hero
   ============================================ */






/* ============================================
   Service Highlights
   ============================================ */




/* ============================================
   Trust Banner
   ============================================ */




/* ============================================
   Improved Service Cards
   ============================================ */






/* ============================================
   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: var(--radius-flat);
    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 .btn {
    margin-top: auto;
}



/* ============================================
   Testimonials
   ============================================ */




/* ============================================
   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: var(--radius-flat);
    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: var(--radius-circle);
    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; }



/* ============================================
   Blog Post Hero (compact)
   ============================================ */




/* ============================================
   Valores Section
   ============================================ */
.valores-section {
    padding: 5rem 0;
    background: var(--gradient-dark);
    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: var(--radius-flat);
    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: var(--radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
}

.valor-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-cyan-light);
}

.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;
}





.cta-final-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}



/* ============================================
   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;
    text-align: center;
    line-height: 1.4;
}

.software-libre .static-text {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
}

.animated-words-wrapper {
    display: block;
    position: relative;
    height: 1.8em;
}

.animated-word {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    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: var(--gradient-dark);
    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: var(--radius-pill);
    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: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    fill: none;
    stroke: var(--color-cyan);
    stroke-width: 1.75;
}

.demanda-tag svg * {
    vector-effect: non-scaling-stroke;
}

/* ============================================
   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: white;
    border: 1px solid var(--color-gray-200);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-flat);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    min-width: 140px;
}

.pais-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--color-cyan);
}

.pais-flag {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-flat);
    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
   ============================================ */


/* ============================================
   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: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(30, 58, 95, 0.1));
    border-radius: var(--radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    color: var(--color-cyan);
}

.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: var(--radius-flat);
    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: var(--radius-control);
    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;
}

/* campo obligatorio vacio — la clase la aplica main.js al validar */
.form-group .error {
    border-color: #dc2626;
    background: #fef2f2;
}

.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-fullwidth {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    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: var(--radius-flat);
    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: var(--radius-flat);
    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: var(--radius-control);
    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;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.platform-logos a img {
    height: 44px;
    width: auto;
    object-fit: contain;
}





/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-navy);
    color: white;
    padding: 0;
}



.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: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    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);
}

.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: 28px;
    width: auto;
    opacity: 0.75;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.payment-logos img:hover {
    opacity: 1;
}

.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-card-image {
    overflow: hidden;
}

.blog-placeholder-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-flat) var(--radius-flat) 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-placeholder-img.category-ojs {
    background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
}

.blog-placeholder-img.category-security {
    background: linear-gradient(135deg, #dc2626 0%, var(--color-amber) 100%);
}

.blog-placeholder-img.related-card-img {
    height: 150px;
    border-radius: var(--radius-flat) var(--radius-flat) 0 0;
}

.blog-placeholder-img.related-card-img svg {
    width: 50px;
    height: 50px;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content.compact {
    padding: 1.25rem;
}

.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-category.category-ojs { color: #0D9488; }

.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);
}

.related-posts-grid {
    max-width: 900px;
    margin: 0 auto;
}

.text-link {
    font-weight: 600;
}

.text-link-cyan { color: var(--color-cyan); }
.text-link-amber { color: var(--color-amber); }
.text-link-pink { color: #ec4899; }
.text-link-teal { color: #0D9488; }



/* ============================================
   Blog Post Pages
   ============================================ */


.blog-post-meta {
    display: flex;
    justify-content: center;
    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;
    flex-shrink: 0;
    stroke: 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 var(--radius-flat) var(--radius-flat) 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: var(--radius-flat);
    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: var(--radius-flat);
    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: var(--radius-flat);
    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 {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: 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: var(--radius-circle);
    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: var(--radius-flat);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.plugin-card h4 {
    color: var(--color-navy);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

/* ============================================
   Responsive
   ============================================ */




/* Extra small devices */








/* ============================================
   RESPONSIVE - Tabs & new components
   ============================================ */

