* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0f0f1a;
    color: white;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#networkCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.section {
    padding: 100px 20px;
    text-align: center;
}

.section.dark {
    background: #141427;
}

.btn-magnetic {
    padding: 15px 30px;
    background: #0044ff;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
}
.hero-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

.btn-primary {
background: #0066ff;
border: none;
padding: 14px 30px;
color: white;
cursor: pointer;
}

.btn-secondary {
background: transparent;
border: 1px solid white;
padding: 14px 30px;
color: white;
cursor: pointer;
}

.grid-4, .grid-5 {
display: grid;
gap: 20px;
margin-top: 40px;
}

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }

.card-minimal {
padding: 30px;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.03);
}

.two-columns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
gap: 40px;
align-items: center;
}

.visual-placeholder {
height: 250px;
background: linear-gradient(45deg,#111,#222);
display: flex;
align-items: center;
justify-content: center;
opacity: 0.5;
}

.cards-horizontal {
display: grid;
gap: 30px;
grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
margin-top: 40px;
}

.card-large {
padding: 40px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.1);
}

.timeline {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
margin-top: 40px;
}

.results {
display: flex;
justify-content: center;
gap: 60px;
flex-wrap: wrap;
}

.result-item h2 {
font-size: 3rem;
color: #0066ff;
}

.sector {
padding: 25px;
background: rgba(255,255,255,0.05);
cursor: pointer;
text-align: center;
}

.light {
background: #f5f5f5;
color: #111;
}

.dark-text li {
color: #111;
}

.cta-final {
background: #000;
padding: 120px 20px;
text-align: center;
}

footer {
    position: relative;
    padding: 80px 10%;
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.footer-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: rgba(0,191,255,0.15);
    border: 1px solid rgba(0,191,255,0.4);
    color: #00bfff;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-btn:hover {
    background: #00bfff;
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(0,191,255,0.4);
    transform: translateY(-3px);
}

footer h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e2e8f0;
}

footer p,
footer a {
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;   /* 🔥 centra el grid */
    text-align: center; /* 🔥 centra el contenido interno */
}
.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bg3D {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}
/* ============================= */
/* ANIMACIÓN DE ENTRADA */
/* ============================= */

.service-card {
    background: linear-gradient(145deg, #111827, #0f172a);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(.2,.8,.2,1);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 150, 255, 0.25);
}


.service-card p {
    color: #60a5fa;
    font-weight: 500;
}

.service-card ul {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.service-card ul li {
    margin-bottom: 10px;
    color: #cbd5e1;
}


/* ============================= */
/* BOTÓN INTERACTIVO */
/* ============================= */

.btn-card {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #00bfff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: #008ecc;
    transform: scale(1.05);
}
/* ============================= */
/* ANIMACIÓN GLOBAL DE TEXTO */
/* ============================= */

.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.98);
    transition: all 1s cubic-bezier(.19,1,.22,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}




/* ============================= */
/* TÍTULOS PREMIUM */
/* ============================= */

h1, h2, h3 {
    transition: all 0.4s ease;
}

h1:hover, h2:hover, h3:hover {
    letter-spacing: 1px;
    color: #00bfff;
}

/* ============================= */
/* PÁRRAFOS MÁS ELEGANTES */
/* ============================= */

p {
    line-height: 1.7;
    transition: all 0.3s ease;
}

p:hover {
    color: #e0f2ff;
}

/* ============================= */
/* LISTAS DINÁMICAS */
/* ============================= */

li {
    transition: all 0.3s ease;
}

li:hover {
    transform: translateX(6px);
    color: #ffffff;
}

/* ============================= */
/* BOTONES GLOBALES */
/* ============================= */

button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.3);
}

/* ============================= */
/* MÉTRICAS ANIMADAS */
/* ============================= */

.metric-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(90deg, #00bfff, #0077ff);

    background-clip: text;              /* estándar */
    -webkit-background-clip: text;      /* Chrome / Safari */

    color: transparent;
    -webkit-text-fill-color: transparent; /* Safari fix */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b1120;
    color: #dbeafe;
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 56px;
    font-weight: 700;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

p {
    font-size: 16px;
    color: #94a3b8;
}
body {
    background: linear-gradient(-45deg, #0b1120, #0f172a, #0b1a35, #0b1120);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,191,255,0.25), transparent 60%);
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}
h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #00bfff, #0077ff);
    transition: width 0.8s ease;
}

h2.visible::after {
    width: 100%;
}
.services {
    position: relative;
    padding: 120px 10%;
    background: #0b0f1a;
    overflow: hidden;
}

/* Canvas */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Contenido encima */
.services h2,
.services .container {
    position: relative;
    z-index: 2;
}

/* Tarjetas */
.container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 300px;
    color: white;
}
html {
    scroll-behavior: smooth;
}
#bg3D {
    pointer-events: none;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s ease;
}

footer a:hover {
    color: #00bfff;
    transform: translateX(4px);
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

html {
    scroll-behavior: smooth;
}
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none; /* Quita el subrayado */
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}
.col-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

#dashboardCanvas {
    width: 100%;
    height: 320px;
    display: block;
    border-radius: 16px;
}
.col-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;   /* 🔥 ESTO ES CLAVE */
}

#dashboardCanvas {
    width: 100%;
    max-width: 500px;
    height: 320px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}
#dashboardCanvas {
    box-shadow: 0 20px 50px rgba(0, 191, 255, 0.2);
}

.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
}

.footer-glow-line::before {
    content: "";
    position: absolute;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        #00bfff,
        #38bdf8,
        transparent
    );
    animation: glowMove 4s linear infinite;
    filter: blur(4px);
}

@keyframes glowMove {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}


