:root {
    --zsw-cyan: #00E0FF;
    --zsw-dark: #05070a;
    --zsw-card-bg: #0A0E17;
}

body {
    background-color: #020202;
    /* Fondo Negro Base */
    background-image:
        /* 1. Viñeta Radial (Iluminación Central) */
        radial-gradient(circle at center, transparent 35%, #000000 98%),
        /* 2. Red Tecnológica (Grid): Iluminación potenciada y tamaño reducido */
        linear-gradient(rgba(0, 224, 255, 0.25) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(0, 224, 255, 0.25) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 45px 45px, 45px 45px;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Terminal de Código Hero */
.terminal-loader {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.15);
    padding: 15px 20px;
    border-radius: 4px;
    height: 125px;
    /* Altura exacta para 5 líneas */
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: left;
    font-size: 0.82rem;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.05);
    position: relative;
    backdrop-filter: blur(8px);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

@media (max-width: 768px) {
    .terminal-loader {
        height: 100px;
        padding: 10px 15px;
        font-size: 0.7rem;
        margin-bottom: 20px;
    }

    .terminal-line {
        line-height: 1.2 !important;
    }
}

.terminal-line {
    display: block;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #00ff41;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.navbar-toggler {
    border-color: rgba(0, 224, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 224, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 224, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Custom */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 224, 255, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
}

/* ESTILO DEL LOGO REQUERIDO */
.navbar-brand img {
    /* AGREGAR la animación de flotación:
       Dura 4 segundos, es suave (ease-in-out) y es infinita */
    animation: floating 4s ease-in-out infinite;
}


/* Reusable components */
.btn-zsw-primary {
    border: 2px solid var(--zsw-cyan);
    color: var(--zsw-cyan);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.btn-zsw-primary:hover {
    background-color: var(--zsw-cyan);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.4);
}

.btn-zsw-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.btn-zsw-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-zsw-outline-info {
    border: 2px solid #0dcaf0;
    color: #0dcaf0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.btn-zsw-outline-info:hover {
    background-color: #0dcaf0;
    color: #000;
}

.btn-zsw-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.btn-zsw-outline-light:hover {
    background-color: #fff;
    color: #000;
}

.zsw-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.zsw-card-highlight {
    border-color: var(--zsw-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.1);
}

.zsw-card:hover {
    transform: translateY(-10px);
    border-color: var(--zsw-cyan);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 224, 255, 0.15);
}

.icon-box {
    color: var(--zsw-cyan);
    transition: transform 0.3s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hover-white:hover {
    color: #ffffff !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Fondo Tecnológico sin Foto */
.hero-section-custom {
    position: relative;
    overflow: hidden;
}

/* El efecto de viñeta ahora se maneja globalmente en el body para evitar doble oscurecimiento */
.hero-section-custom::after {
    display: none;
}

/* Definición de la animación de flotación */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}