/* ===== HEADER DEVINT - NIVEL DIOS ===== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;

    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    transition: all 0.5s cubic-bezier(.22,.61,.36,1);
}

.header.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* CONTENEDOR */
.header-container {
    position: relative;

    margin: 20px auto;
    width: 92%;
    max-width: 1200px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 28px;

    border-radius: 999px; /* forma liquida */

    /* GLASS PROFUNDO */
    background: rgba(5, 10, 20, 0.45);

    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);

    border: 1px solid rgba(0, 212, 255, 0.08);

    /* SOMBRA SUAVE (flotante) */
    box-shadow:
        0 10px 40px rgba(0,0,0,0.7),
        inset 0 0 20px rgba(0,212,255,0.04);

    overflow: hidden;
}

/* DIFUMINADO DE BORDES (CLAVE IMPORTANTE) */
.header-container::before {
    content: "";
    position: absolute;
    inset: -2px;

    border-radius: inherit;

    background: radial-gradient(
        circle at 50% 50%,
        rgba(0,212,255,0.25),
        transparent 70%
    );

    opacity: 0.15;
    filter: blur(25px);

    z-index: 0;
}

/* CAPA DE LUZ SUAVE (movimiento visual) */
.header-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(0,212,255,0.08),
        transparent 70%
    );

    opacity: 0.4;
    pointer-events: none;
}

/* CONTENIDO ENCIMA */
.header-container > * {
    position: relative;
    z-index: 2;
}

/* LOGO (el PNG es azul oscuro: se vuelve blanco sobre el fondo oscuro) */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0,212,255,0.35));
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin: 0 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: #00d4ff;
}

.nav a[aria-current="page"]::after {
    width: 100%;
}

/* SUBRAYADO FLUIDO */
.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #00d4ff, #007cf0);
    box-shadow: 0 0 12px rgba(0,212,255,0.7);

    transition: width 0.35s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ACCESO A LA PLATAFORMA DMONITOR */
.cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cta-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 40px;
    border: 1px solid rgba(0,212,255,0.45);
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-platform:hover {
    background: rgba(0,212,255,0.12);
    color: #fff;
}

.mobile-menu .mobile-platform {
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
    color: #00d4ff;
    border: 1px solid rgba(0,212,255,0.45);
}

/* BOTÓN */
.cta-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 40px;
    border: none;

    background: linear-gradient(135deg, #00d4ff, #007cf0);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0,212,255,0.45);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 32px rgba(0,212,255,0.7);
}
/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px 6px;
    background: none;
    border: 0;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0,212,255,0.8);
    transition: all 0.3s ease;
}

/* ===== MENÚ MOBILE ===== */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);

    width: 90%;
    max-width: 400px;

    padding: 25px;
    border-radius: 25px;

    background: rgba(5,10,20,0.7);
    backdrop-filter: blur(25px);

    border: 1px solid rgba(0,212,255,0.1);

    display: flex;
    flex-direction: column;
    gap: 15px;

    opacity: 0;
    pointer-events: none;

    transition: all 0.4s ease;
}

/* ACTIVO */
.mobile-menu.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.mobile-menu a {
    text-decoration: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
    background: rgba(0,212,255,0.1);
    color: #00d4ff;
}

.mobile-menu .mobile-cta {
    margin-top: 6px;
    text-align: center;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #00d4ff, #007cf0);
}

.mobile-menu .mobile-cta:hover {
    color: #000;
    background: linear-gradient(135deg, #33ddff, #1a8cff);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1240px) {
    .nav a {
        margin: 0 8px;
        font-size: 0.9rem;
    }
}

/* En anchos intermedios DMonitor queda solo con su ícono */
@media (max-width: 1120px) {
    .cta-platform { padding: 9px 11px; }
    .cta-platform span:not(.dx-visually-hidden) { display: none; }
}

@media (max-width: 960px) {

    .nav {
        display: none;
    }

    .cta {
        display: none;
    }

    /* En celular el menú siempre visible: si aparece solo al hacer scroll,
       al entrar al inicio no hay forma de navegar. */
    .header,
    .header:not(.show) {
        opacity: 1;
        transform: none;
    }

    /* Área táctil mínima de 44x44 px para el botón hamburguesa */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .header-container {
        padding: 6px 10px 6px 18px;
    }
}

/* ===== EXTRA SMALL ===== */
@media (max-width: 500px) {
    .logo img {
        height: 32px;
    }
}