/*
--- VE-DATA | Futuristic Theme ---
*/

/* --- Root Variables & Base Styles --- */
:root {
    --bg-color: #0a0a14;
    --bg-darker: #05050a;
    --primary-neon: #00f2ea;
    --secondary-accent: #ff00c1;
    --text-color: #eeeeee;
    --text-muted: #eeeeee;
    --font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 600;
}

p {
    line-height: 1.8;
}

/* --- Reusable Components & Sections --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title-container {
    margin-bottom: 3rem;
}

.section-title-underline {
    height: 3px;
    width: 60px;
    background: var(--primary-neon);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-neon);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-primary-hologram {
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-hologram:hover {
    background: var(--primary-neon);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--primary-neon);
    transform: translateY(-3px);
}

.content-section {
    padding: 50px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}


/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-orb {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-neon);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--primary-neon);
}


/* --- Navigation Bar --- */
.navbar {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 242, 234, 0.2);
    transition: background 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    text-shadow: none;
    letter-spacing: 1px;
}

.navbar-brand .logo-data {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.45);
}

.nav-link {
    color: var(--text-color) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-neon);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 3px var(--primary-neon);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* --- Hero Section --- */
.hero-section {
    padding-top: 107px;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 242, 234, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto;
}


/* --- Value Proposition Section --- */
.value-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 234, 0.2);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.1);
}

.value-card-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
}

.value-card-title {
    margin-bottom: 15px;
    color: #fff;
}

.value-card-text {
    color: var(--text-muted);
}


/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 242, 234, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.7;
}

.service-item[data-service="ai"]::before { background-image: url('../img/machine.webp'); }
.service-item[data-service="hosting"]::before { background-image: url('../img/servidores.webp'); }
.service-item[data-service="backup"]::before { background-image: url('../img/proteccion.webp'); }
.service-item[data-service="colocation"]::before { background-image: url('../img/colocation.webp'); }
.service-item[data-service="admin"]::before { background-image: url('../img/administración.webp'); }
.service-item[data-service="connectivity"]::before { background-image: url('../img/conectividad.jpg'); }
.service-item[data-service="contpaqi"]::before { background-image: url('../img/contpaqi.webp'); }
.service-item[data-service="storage"]::before { background-image: url('../img/almacenamiento.webp'); }

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.3);
}

.service-item:hover::before {
    transform: scale(1.1);
    opacity: 0.4;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 10, 20, 1) 0%, rgba(10, 10, 20, 0) 100%);
    color: #fff;
    transform: translateY(30%);
    transition: transform 0.4s ease;
}

.service-item:hover .service-content {
    transform: translateY(0);
}

.service-content h4 {
    font-size: 1.2rem;
}

.service-content p {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.service-item:hover .service-content p {
    opacity: 1;
}


/* --- Client Slider Section --- */
.client-slider {
    display: flex; /* Fallback for when JS is disabled */
}

.client-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 234, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 242, 234, 0.1);
    border-color: rgba(0, 242, 234, 0.5);
}

.client-card .card-img-top {
    background-color: #ffffff;
    padding: 20px;
    height: 150px;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.client-card .card-body {
    padding: 20px;
}

.client-card .card-title {
    color: var(--primary-neon);
    font-weight: 700;
}

.client-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Slider Controls */
.controls {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.controls li {
    pointer-events: auto;
    color: var(--primary-neon);
    background-color: rgba(10, 10, 20, 0.5);
    border: 1px solid var(--primary-neon);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.controls li:hover {
    background-color: var(--primary-neon);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-neon);
}

.controls .prev {
    margin-left: -50px;
}

.controls .next {
    margin-right: -50px;
}

/* Tiny Slider Navigation Dots */
.tns-nav {
    text-align: center;
    margin-top: 20px;
}

.tns-nav button {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 242, 234, 0.3);
    border: none;
    border-radius: 50%;
    margin: 0 5px;
    padding: 0;
    transition: background-color 0.3s ease;
}

.tns-nav button.tns-nav-active {
    background-color: var(--primary-neon);
}


/* --- Contact Form Section --- */
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 234, 0.3);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
    outline: none;
}


/* --- Footer Section --- */
.footer-section {
    padding: 64px 0 20px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 242, 234, 0.2);
}

.footer-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.65rem;
    letter-spacing: .5px;
}

.footer-section h3 span {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 234, .45);
}

.footer-section p {
    margin: 6px 0;
    color: rgba(255, 255, 255, .86);
}

.footer-section a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, text-shadow .2s ease;
}

.footer-section a:hover,
.footer-section a:focus-visible {
    color: var(--primary-neon);
    text-shadow: 0 0 6px rgba(0, 242, 234, .35);
    outline: none;
    transform: translateX(2px);
}

.footer-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    display: block;
    position: relative;
}

.footer-section h5::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 6px;
    background: var(--primary-neon);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 242, 234, .5);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li+li {
    margin-top: .55rem;
}

.footer-section .social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 10px 0 0 0;
}

.footer-section .social-links li {
    margin: 0;
    padding: 0;
}

.footer-section .social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(0, 242, 234, 0.22);
    color: rgba(255, 255, 255, .92);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.footer-section .social-links a:hover,
.footer-section .social-links a:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--primary-neon);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 242, 234, .25);
}

.footer-section .social-links i {
    font-size: 1.12rem;
    line-height: 1;
    display: block;
}

.footer-section a i {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-neon);
    filter: drop-shadow(0 0 6px rgba(0,242,234,.35));
}

.footer-section hr {
    border: none;
    height: 1px;
    margin: 28px 0 12px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 234, 0.22), transparent);
}

.footer-section .text-center p {
    color: rgba(255, 255, 255, .78);
    margin: 0;
    font-size: .96rem;
}


/* --- Animations & Keyframes --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 991.98px) {
    .footer-section {
        padding: 56px 0 18px;
    }
}

@media (max-width: 575.98px) {
    .footer-section {
        padding: 48px 0 16px;
    }

    .footer-section h3 {
        font-size: 1.55rem;
    }
    .hero-section {
        height: 100vh;
    }
}
/* --- Client Slider Responsive --- */
@media (max-width: 767.98px) {
    .controls .prev {
        margin-left: 10px;
    }

    .controls .next {
        margin-right: 10px;
    }
}
/* --- Hero Section Responsive --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Justificaciones */

#about p {
    text-align: justify;
}

#sustainability p {
    text-align: justify;
}

.value-card-text {
    text-align: justify;
}

.card-text {
    text-align: justify;
}


/* --- Video Showcase Section --- */
.video-showcase {
    position: relative;
    padding: 50px 0;
    background: var(--bg-color);
    overflow: hidden;
}

.video-overlay {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.video-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

.video-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: auto;
    height: 80vh;
    aspect-ratio: 1080 / 1920;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 242, 234, 0.3);
    box-shadow: 0 0 40px rgba(0, 242, 234, 0.2);
    transition: box-shadow 0.3s ease;
}

.video-showcase:hover .video-container {
    box-shadow: 0 0 60px rgba(0, 242, 234, 0.4);
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    border-radius: 15px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .video-container {
        max-width: 90%;
        height: 70vh;
    }

    .video-content h2 {
        font-size: 1.5rem;
    }

    .video-content p {
        font-size: 1rem;
    }
}