/* =========================================
   NETUP SYSTEMS - MASTER STYLE 2026
   ========================================= */

:root {
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-soft: #07111f;
    --cyan: #4df6ff;
    --violet: #6ee7ff;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --brand-badge-bg: rgba(255, 255, 255, 0.12);
    --brand-badge-border: rgba(191, 219, 254, 0.34);
    --brand-badge-text: #dbeafe;
    --brand-title-shadow: 0 10px 30px rgba(2, 8, 22, 0.24);
    --brand-panel-bg: rgba(7, 17, 31, 0.5);
    --brand-panel-border: rgba(191, 219, 254, 0.22);
    --hero-copy-bg: rgba(4, 12, 24, 0.62);
    --hero-copy-border: rgba(191, 219, 254, 0.24);
    --text-on-dark: #f1f5f9;
    --text-on-dark-soft: rgba(241, 245, 249, 0.94);
    --text-on-light-strong: #2b3a4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #0b1a2e;
    overflow-x: hidden;
}

#global-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

/* --- Navegación --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.logo img { height: 40px; }

.brand-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--secondary); }

.nav-links a[aria-current="page"] {
    color: #1d4ed8;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(77, 246, 255, 0.45);
}

.nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(77, 246, 255, 0), rgba(77, 246, 255, 0.95), rgba(77, 246, 255, 0));
    box-shadow: 0 0 12px rgba(77, 246, 255, 0.45);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(30, 58, 138, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.menu-toggle[aria-expanded="true"] {
    background: rgba(219, 234, 254, 0.95);
}

/* --- Utilidades de layout y lectura --- */
.container {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

.seccion {
    position: relative;
    padding: 84px 0;
}

.titulo-seccion {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.2;
    margin-bottom: 14px;
}

.texto {
    font-size: 1.05rem;
    line-height: 1.65;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

/* Capa de contraste para que el texto nunca se pierda sobre imágenes */
.fondo-oscuro,
.fondo-azul,
.seccion.servicios {
    position: relative;
    isolation: isolate;
}

.fondo-oscuro::before,
.fondo-azul::before,
.seccion.servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 8, 22, 0.38) 0%, rgba(2, 8, 22, 0.26) 100%);
}

.fondo-oscuro > *,
.fondo-azul > *,
.seccion.servicios > * {
    position: relative;
    z-index: 1;
}

.fondo-oscuro .titulo-seccion,
.fondo-azul .titulo-seccion,
.seccion.servicios .titulo-seccion {
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(2, 8, 22, 0.45);
}

.fondo-oscuro .texto,
.fondo-azul .texto,
.seccion.servicios .texto {
    color: var(--text-on-dark);
    text-shadow: 0 2px 10px rgba(2, 8, 22, 0.3);
}

/* --- Sección Inicio (Hero) --- */
.inicio {
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 110px 0 40px;
    position: relative;
    overflow: hidden;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

.hero-media,
.overlay,
.hero-spotlight {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.005);
    filter: saturate(1.06) contrast(1.03) brightness(1.16);
    animation: heroSlideshow 18s infinite;
}

.hero-slide-1 {
    background-image: url('../Imagen/stock/hero-bg-1.jpg');
}

.hero-slide-2 {
    background-image: url('../Imagen/stock/hero-bg-2.jpg');
    animation-delay: 6s;
}

.hero-slide-3 {
    background-image: url('../Imagen/stock/hero-bg-3.jpg');
    animation-delay: 12s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 1) 100%);
    opacity: 0.22;
}

.hero-beam,
.hero-orb {
    position: absolute;
    pointer-events: none;
}

.hero-beam {
    width: 38vw;
    height: 38vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 246, 255, 0.28) 0%, rgba(77, 246, 255, 0) 70%);
    filter: blur(12px);
    mix-blend-mode: screen;
    animation: pulseFloat 8s ease-in-out infinite;
}

.hero-beam-1 {
    top: -10%;
    left: -10%;
}

.hero-beam-2 {
    right: -12%;
    bottom: -12%;
    animation-delay: -3s;
}

.hero-orb {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 40px rgba(77, 246, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-orb-1 {
    width: 180px;
    height: 180px;
    right: 18%;
    top: 18%;
    animation: orbitalDrift 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 110px;
    height: 110px;
    left: 10%;
    bottom: 14%;
    animation: orbitalDrift 11s ease-in-out infinite reverse;
}

.overlay {
    z-index: 1;
    background:
    linear-gradient(90deg, rgba(2, 8, 22, 0.14) 0%, rgba(2, 8, 22, 0.06) 45%, rgba(2, 8, 22, 0.1) 100%),
    linear-gradient(180deg, rgba(2, 8, 22, 0.02), rgba(2, 8, 22, 0.08));
}

.hero-spotlight {
    z-index: 1;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(77, 246, 255, 0.34) 0%, rgba(77, 246, 255, 0.2) 18%, transparent 34%);
    opacity: 0.58;
    transition: background-position 0.2s ease;
}

.inicio-content {
    max-width: 1320px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 46px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    width: 100%;
    align-items: start;
}

.inicio-izquierda,
.inicio-derecha {
    position: relative;
    z-index: 2;
}

.inicio-izquierda {
    max-width: 760px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(18, 32, 52, 0.34), rgba(18, 32, 52, 0.2));
    border: 1px solid rgba(191, 219, 254, 0.38);
    box-shadow: 0 28px 68px rgba(2, 8, 22, 0.54);
    backdrop-filter: blur(10px);
}

.hero-kicker,
.panel-tag,
.floating-label {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin-bottom: 22px;
    font-size: 0.72rem;
    background: rgba(18, 32, 52, 0.38);
    box-shadow: inset 0 0 0 1px rgba(77, 246, 255, 0.08);
}

.inicio h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1;
    margin-bottom: 14px;
    white-space: nowrap;
    max-width: none;
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(2, 8, 22, 0.75);
}

.inicio-lead {
    font-size: 1.25rem;
    color: rgba(236, 245, 255, 0.98);
    margin-bottom: 12px;
    text-shadow: 0 4px 18px rgba(2, 8, 22, 0.68);
}

.inicio-subtitulo {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(248, 252, 255, 0.99);
    margin-bottom: 32px;
    max-width: 680px;
    text-shadow: 0 3px 16px rgba(2, 8, 22, 0.62);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.btn-cta,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-cta {
    color: #04111f;
    background: linear-gradient(135deg, var(--cyan), #d5fbff);
    box-shadow: 0 14px 32px rgba(77, 246, 255, 0.25);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.btn-cta:hover,
.btn-secondary:hover,
.servicio-card:hover {
    transform: translateY(-4px);
}

.btn-secondary:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 860px;
}

.hero-metric {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(8, 15, 30, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.hero-metric strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.hero-metric span {
    display: block;
    font-size: 0.92rem;
    color: var(--text-on-dark-soft);
}

.servicio-rapido {
    background: linear-gradient(160deg, rgba(4, 12, 24, 0.44), rgba(4, 12, 24, 0.3));
    padding: 30px;
    border-radius: 24px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 30px 80px rgba(2, 8, 22, 0.48);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-rapido::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77, 246, 255, 0.12), transparent 45%, rgba(59, 130, 246, 0.16));
    pointer-events: none;
}

.hero-panel h3 {
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.panel-tag {
    display: inline-block;
    color: var(--cyan);
    font-size: 0.72rem;
    margin-bottom: 14px;
}

.servicio-rapido ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.servicio-rapido li {
    margin-bottom: 12px;
    font-size: 0.96rem;
    padding: 12px 0 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    color: var(--text-on-dark-soft);
}

@media (min-width: 1025px) {
    .servicio-rapido li {
        white-space: nowrap;
    }
}

.servicio-rapido li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(77, 246, 255, 0.65);
}

.hero-floating-card {
    width: min(320px, 100%);
    margin: -26px 0 0 auto;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(2, 8, 22, 0.32);
    position: relative;
}

.floating-label {
    font-size: 0.68rem;
    color: var(--cyan);
    display: inline-block;
    margin-bottom: 16px;
}

.floating-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.floating-line strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.floating-line span {
    color: var(--text-on-dark-soft);
    font-size: 0.88rem;
}

.seccion.servicios { background: rgba(15, 23, 42, 0.32); color: var(--white); }
footer { position: relative; z-index: 1; background: rgba(3, 7, 18, 0.94); color: var(--white); }

/* --- Sección Quiénes Somos --- */
#quienes .titulo-seccion {
    text-align: left;
    color: #ffffff;
    margin-bottom: 20px;
}

.quienes-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: 30px;
    align-items: start;
}

.quienes-copy {
    background: linear-gradient(160deg, rgba(18, 32, 52, 0.34), rgba(18, 32, 52, 0.22));
    border: 1px solid rgba(191, 219, 254, 0.3);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quienes-side {
    background: linear-gradient(160deg, rgba(18, 32, 52, 0.34), rgba(18, 32, 52, 0.22));
    border: 1px solid rgba(77, 246, 255, 0.34);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(77, 246, 255, 0.08), 0 24px 48px rgba(2, 8, 22, 0.5);
}

.quienes-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.4);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.quienes-copy .texto {
    color: rgba(248, 250, 252, 0.96);
    line-height: 1.75;
    margin-bottom: 14px;
}

.quienes-points {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.quienes-point {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(191, 219, 254, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.quienes-point i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe;
    font-size: 0.95rem;
    border-radius: 10px;
}

.quienes-point h4 {
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 1rem;
}

.quienes-point p {
    color: var(--text-on-dark-soft);
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.16);
}

.quienes-side h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(77, 246, 255, 0.5);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(77, 246, 255, 0.22);
}

.quienes-metric-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.quienes-metric-list li {
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(77, 246, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quienes-metric-list strong {
    display: block;
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 0.97rem;
    text-shadow: 0 1px 6px rgba(2, 8, 22, 0.6);
}

.quienes-metric-list span {
    display: block;
    color: var(--text-on-dark-soft);
    font-size: 0.86rem;
    line-height: 1.4;
}

.quienes-btn {
    width: 100%;
    border-radius: 12px;
    min-height: 48px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.55), rgba(7, 17, 31, 0.7));
    border: 1px solid rgba(77, 246, 255, 0.35);
    color: #ffffff;
    font-weight: 600;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.quienes-btn:hover {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.75), rgba(7, 17, 31, 0.85));
    box-shadow: 0 0 18px rgba(77, 246, 255, 0.25);
}

/* --- Sección Servicios --- */
#servicios .titulo-seccion {
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

.servicios-header {
    max-width: 820px;
    margin: 0 auto 24px;
}

.servicios-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(77, 246, 255, 0.14);
    border: 1px solid rgba(77, 246, 255, 0.3);
    color: #b3f8ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.servicios-header .texto {
    color: rgba(248, 250, 252, 0.95);
    font-size: 0.97rem;
}

.servicios-header,
.alianzas-header,
.contacto-header,
.contador-header {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(6, 14, 28, 0.34);
    border: 1px solid rgba(191, 219, 254, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- Grid de Servicios --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.servicio-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(2, 8, 22, 0.26);
    border: 1px solid rgba(148, 163, 184, 0.28);
    transition: 0.3s;
    overflow: hidden;
    text-align: center;
}

.servicio-img { width: 100%; height: 150px; object-fit: cover; }
.servicio-card h3 { padding: 14px 14px 8px; color: #0f172a; font-size: 1rem; line-height: 1.3; }
.servicio-card p { padding: 0 16px 18px; font-size: 0.92rem; line-height: 1.66; color: var(--text-on-light-strong); }



/* --- Sección Alianzas --- */
.alianzas-header {
    max-width: 900px;
    margin: 0 auto 22px;
}

#alianzas.seccion {
    padding-top: 74px;
    padding-bottom: 72px;
}

#alianzas .titulo-seccion {
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(2, 8, 22, 0.32);
}

#alianzas .texto {
    color: rgba(248, 250, 252, 0.97);
    text-shadow: 0 2px 10px rgba(2, 8, 22, 0.32);
}

.alianzas-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alianzas-carousel {
    position: relative;
    overflow: hidden;
    padding: 6px 0 10px;
}

.alianzas-carousel::before,
.alianzas-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 2;
    pointer-events: none;
}

.alianzas-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.82), rgba(30, 58, 138, 0));
}

.alianzas-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(30, 58, 138, 0.82), rgba(30, 58, 138, 0));
}

.alianzas-track {
    --alianza-card-size: 212px;
    --alianza-gap: 10px;
    --alianza-loop-distance: calc((var(--alianza-card-size) * 3) + (var(--alianza-gap) * 3));
    display: flex;
    gap: var(--alianza-gap);
    width: max-content;
    animation: alianzasScroll 24s linear infinite;
    will-change: transform;
}

.alianzas-carousel:hover .alianzas-track {
    animation-play-state: paused;
}

.alianza-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--alianza-card-size);
    min-height: 100%;
    padding: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(7, 17, 31, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alianza-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.08), transparent 48%, rgba(30, 58, 138, 0.08));
    pointer-events: none;
}

.alianza-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(7, 17, 31, 0.24);
    border-color: rgba(191, 219, 254, 0.75);
}

.alianza-card-featured {
    transform: translateY(-2px);
}

.alianza-card-clone {
    pointer-events: auto;
}

.alianza-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 8px;
    margin-bottom: 7px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.alianza-logo-wrap img {
    width: 100%;
    max-width: 92px;
    max-height: 40px;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.alianza-card:hover .alianza-logo-wrap,
.alianza-logo-wrap:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.95), 0 12px 24px rgba(30, 58, 138, 0.16);
    background: linear-gradient(180deg, #ffffff, #eef4ff);
}

.alianza-card:hover .alianza-logo-wrap img,
.alianza-logo-wrap:hover img {
    transform: scale(1.08) rotate(-1deg);
    filter: saturate(1.08);
}

.alianza-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.alianza-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 6px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.6rem;
    font-weight: 700;
}

.alianza-content h3 {
    font-size: 0.86rem;
    color: #0f172a;
    margin-bottom: 3px;
}

.alianza-content p {
    color: var(--text-on-light-strong);
    line-height: 1.5;
    margin-bottom: 7px;
    font-size: 0.8rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alianza-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.78rem;
}

.alianza-link i {
    transition: transform 0.25s ease;
}

.alianza-card:hover .alianza-link i {
    transform: translateX(4px);
}

@keyframes alianzasScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--alianza-loop-distance)));
    }
}

.alianza-card-weldertec {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.98));
}

.alianza-card-weldertec .alianza-tag {
    background: #fff7ed;
    color: #c2410c;
}

.alianza-card-delvalle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.98));
}

.alianza-card-delvalle .alianza-tag {
    background: #ecfdf5;
    color: #15803d;
}

.alianza-card-clinica {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
}

.alianza-card-clinica .alianza-tag {
    background: #eff6ff;
    color: #1d4ed8;
}

/* --- Blog Section --- */
.blog-header {
    max-width: 920px;
    margin: 0 auto 34px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(6, 14, 28, 0.34);
    border: 1px solid rgba(191, 219, 254, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#blog .titulo-seccion {
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(2, 8, 22, 0.45);
}

#blog .texto {
    color: rgba(248, 250, 252, 0.96);
    text-shadow: 0 2px 10px rgba(2, 8, 22, 0.3);
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #0f172a, #1e3a8a);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.blog-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
}

.blog-reveal {
    opacity: 0;
    transform: translateY(16px);
}

.blog-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: blogSectionReveal 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

.featured-blog {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.35);
}

.featured-blog:hover {
    transform: translateY(-12px);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    color: #0f172a;
}

.blog-content p {
    color: var(--text-on-light-strong);
    line-height: 1.75;
}

.blog-alliances {
    position: relative;
    margin-top: 34px;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.92));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.blog-alliances::before,
.blog-alliances::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.blog-alliances::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0));
}

.blog-alliances::after {
    width: 180px;
    height: 180px;
    bottom: -110px;
    left: -70px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0));
}

.blog-alliances h3 {
    position: relative;
    width: fit-content;
    margin: 0 auto 12px;
    text-align: center;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    color: #0f172a;
    letter-spacing: 0.01em;
}

.blog-alliances h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #1d4ed8);
}

.blog-alliances-intro {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
    color: var(--text-on-light-strong);
    line-height: 1.68;
}

.blog-alliances-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
}

.blog-alliance-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 14px;
    background: #f9fbff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.blog-alliance-item:hover,
.blog-alliance-item:focus-within,
.blog-alliance-item:focus-visible,
.blog-alliance-item.is-selected {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.blog-alliance-item.is-selected {
    transform: translateY(-5px) scale(1.006);
    border-color: rgba(37, 99, 235, 0.52);
    box-shadow: 0 18px 34px rgba(30, 58, 138, 0.22);
}

.blog-alliance-item:active {
    transform: translateY(-2px) scale(0.996);
}

.blog-alliance-head {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    transition: transform 0.28s ease;
}

.blog-alliance-head img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.blog-alliance-head h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
    transition: transform 0.28s ease, color 0.28s ease;
}

.blog-alliance-head span {
    font-size: 0.78rem;
    color: #1d4ed8;
    font-weight: 600;
    transition: transform 0.28s ease;
}

.blog-alliance-item:hover .blog-alliance-head,
.blog-alliance-item:focus-within .blog-alliance-head,
.blog-alliance-item:focus-visible .blog-alliance-head,
.blog-alliance-item.is-selected .blog-alliance-head {
    transform: translateX(4px);
}

.blog-alliance-item:hover .blog-alliance-head img,
.blog-alliance-item:focus-within .blog-alliance-head img,
.blog-alliance-item:focus-visible .blog-alliance-head img,
.blog-alliance-item.is-selected .blog-alliance-head img {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.2);
}

.blog-alliance-item:hover .blog-alliance-head h4,
.blog-alliance-item:focus-within .blog-alliance-head h4,
.blog-alliance-item:focus-visible .blog-alliance-head h4,
.blog-alliance-item.is-selected .blog-alliance-head h4 {
    transform: translateX(2px);
    color: #0b1f4f;
}

.blog-alliance-item:hover .blog-alliance-head span,
.blog-alliance-item:focus-within .blog-alliance-head span,
.blog-alliance-item:focus-visible .blog-alliance-head span,
.blog-alliance-item.is-selected .blog-alliance-head span {
    transform: translateX(2px);
}

.blog-alliance-item p {
    font-size: 0.88rem;
    line-height: 1.58;
    color: var(--text-on-light-strong);
    margin-bottom: 10px;
}

.blog-alliance-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-alliance-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1e3a8a;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.16);
}

.blog-alliance-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
}

.blog-alliance-link i {
    transition: transform 0.25s ease;
}

.blog-alliance-link:hover i {
    transform: translateX(3px);
}

.blog-alliances.is-visible {
    animation: blogAlliancesReveal 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.blog-alliances.is-visible h3 {
    animation: blogAlliancesTextIn 540ms ease-out 120ms both;
}

.blog-alliances.is-visible .blog-alliances-intro {
    animation: blogAlliancesTextIn 560ms ease-out 210ms both;
}

.blog-alliances.is-visible .blog-alliance-item {
    animation: blogAllianceCardIn 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blog-alliances.is-visible .blog-alliance-item:nth-child(1) { animation-delay: 280ms; }
.blog-alliances.is-visible .blog-alliance-item:nth-child(2) { animation-delay: 360ms; }
.blog-alliances.is-visible .blog-alliance-item:nth-child(3) { animation-delay: 440ms; }

@keyframes blogAlliancesReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blogAlliancesTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blogAllianceCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blogSectionReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-alliances,
    .blog-alliances h3,
    .blog-alliances-intro,
    .blog-alliance-item,
    .blog-alliances.is-visible,
    .blog-alliances.is-visible h3,
    .blog-alliances.is-visible .blog-alliances-intro,
    .blog-alliances.is-visible .blog-alliance-item,
    .blog-reveal,
    .blog-reveal.is-visible {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.btn-blog {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.btn-blog i {
    transition: transform 0.25s ease;
}

.btn-blog:hover i {
    transform: translateX(4px);
}

.blog-highlight {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-highlight-item {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    color: #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.blog-highlight-item h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #dbeafe;
}

.blog-highlight-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-on-dark-soft);
}

.blog-actions {
    margin-top: 30px;
}

/* --- Contacto & Formulario --- */
.contacto-header {
    max-width: 920px;
    margin: 0 auto 28px;
}

.contacto-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(191, 219, 254, 0.35);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#contacto .titulo-seccion {
    color: #ffffff;
    margin-bottom: 16px;
}

#contacto .texto {
    color: rgba(248, 250, 252, 0.95);
}

.contact-grid { max-width: 940px; margin: 0 auto; }

.contact-card {
    background: rgba(7, 17, 31, 0.58);
    padding: 34px;
    border-radius: 22px;
    color: var(--text-on-dark-soft);
    border: 1px solid rgba(191, 219, 254, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.contact-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.contact-methods {
    display: grid;
    gap: 10px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-on-dark-soft);
    line-height: 1.45;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.14);
}

.contact-method i {
    color: #93c5fd;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(191, 219, 254, 0.28);
    border-radius: 10px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.btn-enviar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.form-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.btn-ghost {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.35);
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 600;
}

.contact-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.contact-status.success {
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #dcfce7;
}

.contact-status.error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fee2e2;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Sección Contador --- */
.contador-header {
    max-width: 920px;
    margin: 0 auto 28px;
}

.contador-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(191, 219, 254, 0.28);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seccion-contador .titulo-seccion {
    color: #ffffff;
    margin-bottom: 12px;
}

.seccion-contador .texto {
    color: rgba(241, 245, 249, 0.96);
}

.contador-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.contador-grande-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.2);
}

.contador-total-card {
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contador-total-card.updated {
    background: rgba(77, 246, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(77, 246, 255, 0.18), 0 0 28px rgba(77, 246, 255, 0.12);
    transform: translateY(-2px);
}

.contador-total-card.updated .contador-icon,
.contador-total-card.updated .contador-numero {
    animation: visitorPulse 0.8s ease;
}

.contador-chart-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(15, 23, 42, 0.3) 100%);
    border: 1px solid rgba(191, 219, 254, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.contador-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.contador-chart-head h3 {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.2;
    max-width: 320px;
}

.contador-chart-head span {
    color: rgba(191, 219, 254, 0.92);
    font-size: 0.85rem;
    text-align: right;
    line-height: 1.4;
    max-width: 260px;
}

.contador-chart-wrap {
    position: relative;
    min-height: 360px;
    width: 100%;
    padding: 10px 8px 4px 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(9, 18, 34, 0.42) 0%, rgba(9, 18, 34, 0.18) 100%);
    border: 1px solid rgba(191, 219, 254, 0.12);
    overflow: hidden;
}

.contador-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.contador-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.28);
}

.contador-icon-secondary {
    background: rgba(77, 246, 255, 0.2);
}

.contador-numero {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
}

.contador-texto {
    font-weight: 700;
    color: #e2e8f0;
}

.contador-subtexto {
    font-size: 0.9rem;
    color: var(--text-on-dark-soft);
}

.contador-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(191, 219, 254, 0.16);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #dbeafe;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Indicadores Financieros --- */
.indicadores-financieros {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.indicador-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(77, 246, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.indicador-card:hover {
    background: rgba(77, 246, 255, 0.1);
    border-color: rgba(77, 246, 255, 0.4);
    transform: translateY(-2px);
}

.indicador-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #4df6ff;
    background: rgba(77, 246, 255, 0.14);
    flex-shrink: 0;
}

.indicador-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.indicador-nombre {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(186, 230, 253, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.indicador-valor {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.indicador-valor.cargando {
    opacity: 0.45;
    font-size: 1rem;
}

.indicador-fecha {
    font-size: 0.76rem;
    color: rgba(191, 219, 254, 0.78);
    line-height: 1.2;
}

.indicador-fuente {
    margin-top: 2px;
    font-size: 0.74rem;
    color: rgba(77, 246, 255, 0.92);
    text-decoration: underline;
    text-decoration-color: rgba(77, 246, 255, 0.5);
    text-underline-offset: 2px;
    width: fit-content;
}

.indicador-fuente:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.75);
}

/* --- Footer --- */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.8fr;
    gap: 22px;
}

.footer-content h4 {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-info p,
.footer-links a,
.footer-contact .contact-link {
    color: rgba(241, 245, 249, 0.95);
    text-decoration: none;
    line-height: 1.7;
}

.footer-links a:hover,
.footer-contact .contact-link:hover {
    color: #7dd3fc;
}

.footer-bottom p {
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.75);
}

.footer-links {
    display: grid;
    gap: 6px;
}

.footer-contact {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.18);
    color: #dbeafe;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.social-icons a:hover {
    background: rgba(77, 246, 255, 0.18);
    border-color: rgba(77, 246, 255, 0.5);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 26px;
    border-top: 1px solid rgba(191, 219, 254, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbeafe;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(191, 219, 254, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.visitor-counter.updated {
    background: rgba(77, 246, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(77, 246, 255, 0.18), 0 0 22px rgba(77, 246, 255, 0.16);
    transform: translateY(-1px) scale(1.02);
}

.visitor-counter.updated i,
.visitor-counter.updated #visitor-count {
    animation: visitorPulse 0.7s ease;
}

.counter-label {
    color: var(--text-on-dark-soft);
}

@keyframes visitorPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Nube de pensamiento del robot --- */
.ai-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 92px;
    height: 92px;
    z-index: 999;
}

.ai-thought-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(6px);
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(125, 211, 252, 0.55);
    border-radius: 18px;
    padding: 9px 16px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(125,211,252,0.1);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0.32s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 14px;
}

/* Tres puntitos que conectan la nube con el robot */
.ai-thought-dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(125, 211, 252, 0.55);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(37,99,235,0.12);
}
.ai-dot-1 {
    width: 8px;
    height: 8px;
    bottom: -12px;
    right: 36px;
}
.ai-dot-2 {
    width: 5px;
    height: 5px;
    bottom: -20px;
    right: 40px;
}
.ai-dot-3 {
    width: 3px;
    height: 3px;
    bottom: -26px;
    right: 43px;
}

/* Aparece al hover sobre el wrapper completo */
.ai-wrapper:hover .ai-thought-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0s;
}

/* Texto con animación de escritura suave */
.ai-thought-text {
    display: inline-block;
    animation: none;
}

.ai-wrapper:hover .ai-thought-text {
    animation: aiThoughtAppear 0.4s ease forwards;
}

@keyframes aiThoughtAppear {
    from { opacity: 0; letter-spacing: -0.04em; }
    to   { opacity: 1; letter-spacing: 0.01em; }
}

/* --- Botón Robot & Chatbot --- */
.ai-assistant-btn {
    --ai-offset-x: 0px;
    --ai-offset-y: 0px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 92px;
    height: 92px;
    background: transparent;
    border-radius: 50%;
    z-index: 999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: none;
    box-shadow: none;
    transition: transform 0.35s ease, filter 0.35s ease;
    transform: translate3d(var(--ai-offset-x), var(--ai-offset-y), 0);
    will-change: transform, filter;
}

.ai-assistant-btn::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.24) 0%, rgba(37, 99, 235, 0.12) 45%, rgba(15, 23, 42, 0) 72%);
    filter: blur(10px);
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.ai-assistant-btn svg {
    width: 92px;
    height: 92px;
    filter: drop-shadow(0 12px 24px rgba(8, 15, 34, 0.18)) drop-shadow(0 0 16px rgba(34, 211, 238, 0.2));
}

.ai-float {
    transform-origin: center 62%;
    animation: aiFloat 5.6s ease-in-out infinite;
}

.ai-aura,
.ai-base {
    animation: aiAuraPulse 4.8s ease-in-out infinite;
}

.ai-eye,
.ai-center-line,
.ai-mouth,
.ai-halo {
    animation: aiGlow 3.6s ease-in-out infinite;
}

/* Parpadeo de ojos */
.ai-eye-left {
    transform-box: fill-box;
    transform-origin: center;
    animation: aiGlow 3.6s ease-in-out infinite, aiEyeBlink 6s ease-in-out infinite;
}
.ai-eye-right {
    transform-box: fill-box;
    transform-origin: center;
    animation: aiGlow 3.6s ease-in-out infinite, aiEyeBlink 6s ease-in-out infinite 0.18s;
}

/* Brazos vivos */
.ai-arm-left {
    transform-box: fill-box;
    transform-origin: 100% 0%;
    animation: aiArmLeftWave 2.8s ease-in-out infinite;
}
.ai-arm-right {
    transform-box: fill-box;
    transform-origin: 0% 0%;
    animation: aiArmRightWave 2.8s ease-in-out infinite 1.4s;
}

/* Cabeza que se inclina ligeramente */
.ai-head {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: aiHeadTilt 4.2s ease-in-out infinite;
}

/* Cuerpo que "respira" */
.ai-body {
    transform-box: fill-box;
    transform-origin: center top;
    animation: aiBodyBreathe 4.2s ease-in-out infinite;
}

.ai-leg-left,
.ai-leg-right {
    transform-box: fill-box;
    transform-origin: center top;
    animation: aiLegStep 3.2s ease-in-out infinite;
}

.ai-leg-right {
    animation-delay: 1.6s;
}

.ai-face-panel {
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.ai-assistant-btn:hover {
    transform: translate3d(var(--ai-offset-x), calc(var(--ai-offset-y) - 3px), 0) scale(1.03);
    filter: brightness(1.04);
}

.ai-assistant-btn:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

.ai-assistant-btn:hover .ai-eye {
    filter: drop-shadow(0 0 10px rgba(191, 219, 254, 0.9));
}

.ai-assistant-btn:hover .ai-aura {
    opacity: 1;
}

@keyframes aiFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes aiAuraPulse {
    0%, 100% {
        opacity: 0.66;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.04);
    }
}

@keyframes aiGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(103, 232, 249, 0.08));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.7));
    }
}

/* Parpadeo natural de ojos */
@keyframes aiEyeBlink {
    0%, 88%, 100% { transform: scaleY(1); opacity: 1; }
    92%            { transform: scaleY(0.05); opacity: 0.3; }
    96%            { transform: scaleY(1); opacity: 1; }
}

/* Brazo izquierdo saluda hacia arriba y vuelve */
@keyframes aiArmLeftWave {
    0%,  60%, 100% { transform: rotate(0deg); }
    20%             { transform: rotate(-48deg); }
    40%             { transform: rotate(-22deg); }
}

/* Brazo derecho se mueve con retraso */
@keyframes aiArmRightWave {
    0%,  60%, 100% { transform: rotate(0deg); }
    20%             { transform: rotate(48deg); }
    40%             { transform: rotate(22deg); }
}

/* Cabeza se inclina de lado a lado, como escuchando */
@keyframes aiHeadTilt {
    0%, 100%  { transform: rotate(0deg); }
    25%        { transform: rotate(4deg); }
    75%        { transform: rotate(-4deg); }
}

/* Cuerpo respira: leve escala vertical */
@keyframes aiBodyBreathe {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(1.04); }
}

@keyframes aiLegStep {
    0%, 100% { transform: rotate(0deg); }
    30%      { transform: rotate(7deg); }
    60%      { transform: rotate(-5deg); }
}

.chatbot-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: none; /* Se activa con JS */
    z-index: 1000;
    overflow: hidden;
}

.chatbot-popup.active {
    display: block;
}

.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 22, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    z-index: 998;
}

.chat-overlay.active {
    display: block;
}

.close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-header { background: var(--primary); color: white; padding: 15px; display: flex; justify-content: space-between; }
.chat-body { padding: 20px; height: 300px; overflow-y: auto; background: #f1f5f9; }
.message { margin-bottom: 15px; padding: 10px; border-radius: 10px; font-size: 0.85rem; }
.received { background: white; border-left: 4px solid var(--secondary); }
.chat-footer { padding: 15px; text-align: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .inicio {
        padding: 100px 0 30px;
    }

    .inicio-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 26px;
    }

    .inicio h1 {
        max-width: none;
    }

    .inicio-izquierda {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .hero-kicker,
    .hero-actions {
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .inicio-subtitulo {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-floating-card {
        margin: 16px auto 0;
    }

    .servicio-rapido {
        transform: none;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: min(320px, calc(100vw - 40px));
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
        border: 1px solid rgba(148, 163, 184, 0.22);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        z-index: 1100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        color: #0f172a;
    }

    .nav-links a:hover {
        background: rgba(219, 234, 254, 0.6);
        color: #1d4ed8;
    }

    .nav-links a[aria-current="page"] {
        background: rgba(219, 234, 254, 0.85);
        color: #1d4ed8;
        text-shadow: 0 0 8px rgba(77, 246, 255, 0.35);
        box-shadow: inset 0 0 0 1px rgba(77, 246, 255, 0.35), 0 0 12px rgba(77, 246, 255, 0.2);
    }

    .nav-links a[aria-current="page"]::after {
        left: 14px;
        right: 14px;
        bottom: 6px;
        height: 3px;
    }

    .social-icons {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        padding-top: 6px;
    }

    .form-grid { grid-template-columns: 1fr; }

    .featured-blog {
        transform: none;
    }

    .quienes-panel {
        grid-template-columns: 1fr;
    }

    #quienes .titulo-seccion {
        text-align: center;
    }

    .quienes-copy,
    .quienes-side {
        padding: 22px;
    }

    .servicios-grid,
    .contador-layout,
    .contador-stats,
    .indicadores-financieros,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .alianza-card-featured {
        transform: none;
    }

    .alianzas-carousel::before,
    .alianzas-carousel::after {
        width: 24px;
    }

    .alianzas-track {
        --alianza-card-size: min(68vw, 232px);
        --alianza-gap: 12px;
    }

    .blog-highlight {
        grid-template-columns: 1fr;
    }

    .blog-alliances {
        padding: 18px;
    }

    .blog-alliances h3 {
        width: 100%;
        font-size: 1.22rem;
    }

    .blog-alliances h3::after {
        width: 92px;
    }

    .blog-alliances-intro {
        font-size: 0.96rem;
    }
}

@media (max-width: 540px) {
    .hero-kicker {
        font-size: 0.62rem;
        line-height: 1.6;
    }

    .btn-cta,
    .btn-secondary {
        width: 100%;
    }

    .hero-panel,
    .hero-floating-card {
        text-align: left;
    }

    .alianza-card {
        padding: 12px;
    }

    .alianza-logo-wrap {
        min-height: 88px;
    }

    .alianza-logo-wrap img {
        max-width: 108px;
        max-height: 48px;
    }

    .contador-chart-card {
        padding: 16px;
    }

    .contador-chart-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }

    .contador-chart-head span {
        text-align: left;
        font-size: 0.78rem;
        line-height: 1.35;
        max-width: none;
    }

    .contador-chart-wrap {
        min-height: 270px;
        padding: 8px 4px 2px 2px;
    }
}

@media (max-width: 380px) {
    .seccion-contador .container {
        width: min(1200px, calc(100% - 20px));
    }

    .contador-chart-card {
        padding: 12px;
        border-radius: 14px;
    }

    .contador-chart-head h3 {
        font-size: 0.92rem;
        line-height: 1.35;
        max-width: none;
    }

    .contador-chart-head span {
        font-size: 0.72rem;
    }

    .contador-chart-wrap {
        min-height: 232px;
        padding: 6px 0 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-beam,
    .hero-orb,
    .servicio-rapido {
        animation: none;
        transition: none;
        transform: none;
    }
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
        transform: scale(1.005);
    }
    6%, 45% {
        opacity: 1;
    }
    55%, 100% {
        opacity: 0;
        transform: scale(1.03);
    }
}

@keyframes pulseFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 24px, 0) scale(1.08);
    }
}

@keyframes orbitalDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(22px, -18px, 0);
    }
}

/* --- Blog Detail Pages --- */
.blog-detail-page {
    background: radial-gradient(circle at top, #102445 0%, #07111f 65%);
    min-height: 100vh;
}

.blog-detail-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-detail-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 25px 60px rgba(2, 8, 22, 0.28);
}

.blog-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-detail-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(30, 58, 138, 0.32);
}

.blog-detail-header {
    margin-top: 16px;
    margin-bottom: 22px;
}

.blog-detail-kicker {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.blog-detail-header h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 14px;
    max-width: none;
    display: block;
    position: static;
    inset: auto;
}

.blog-detail-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #475569;
}

.blog-detail-section {
    margin-top: 24px;
}

.blog-detail-section h2 {
    font-size: 1.35rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.blog-detail-section p {
    line-height: 1.8;
    color: #334155;
}

.blog-detail-section ul {
    margin-top: 12px;
    padding-left: 20px;
    color: #334155;
    line-height: 1.8;
}

.blog-detail-cta {
    margin-top: 28px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0f172a, #1e3a8a);
    color: #e2e8f0;
}

.blog-detail-cta h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.blog-detail-cta p {
    margin-bottom: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .blog-detail-card {
        padding: 24px;
    }
}

