@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --brand-red: #f21d56;
    --brand-rich-black: #0a0a0a;
    --brand-white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
}

/* ----- CONTENEDOR PRINCIPAL ----- */
.nexnubo-smart-bar {
    background-color: var(--brand-rich-black) !important;
    color: var(--brand-white) !important;
    position: relative;
    border-top: 1px solid rgba(255, 7, 59, 0.3);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    z-index: 50;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
}

/* Aislamiento de links genéricos para evitar herencias de tema */
.nexnubo-smart-bar a {
    color: inherit !important;
    text-decoration: none !important;
}

.nexnubo-smart-bar a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* EFECTO DE FONDO Y LÁSER */
.bg-aura {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255, 7, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: breatheAura 4s ease-in-out infinite alternate;
}

@keyframes breatheAura {
    0% { opacity: 0.4; transform: translateX(-50%) scaleY(1); }
    100% { opacity: 1; transform: translateX(-50%) scaleY(1.3); }
}

.neon-line-container {
    position: absolute;
    top: -1px; left: 0;
    width: 100%; height: 3px;
    overflow: hidden; z-index: 2;
}

.neon-line {
    position: absolute;
    top: 0; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,7,59,0.8) 40%, #FFFFFF 50%, rgba(255,7,59,0.8) 60%, transparent 100%);
    box-shadow: 0 0 20px 4px rgba(255, 7, 59, 0.9);
    animation: scanline 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scanline { 0% { left: -100%; } 100% { left: 100%; } }

/* ----- HEADER COMPACTO (Siempre visible) ----- */
.bar-header {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: background 0.3s ease;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.bar-header:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4rem; /* Aumentamos el gap para empujar los iconos hacia el centro y separarlos del botón */
}

/* Branding: Creado por + Logo */
.created-by-text {
    font-size: 0.6rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

.logo-text-wrapper {
    display: flex;
    align-items: center;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    letter-spacing: -0.02em;
    line-height: 1 !important;
    color: var(--brand-white) !important;
    transition: transform 0.3s ease;
    font-family: 'Inter', sans-serif !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo-link:hover .logo-text-wrapper { transform: scale(1.02); }
.logo-accent {
    color: var(--brand-red) !important;
    text-shadow: 0 0 10px rgba(255, 7, 59, 0.6) !important;
}

.divider {
    width: 1px; height: 20px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Typewriter (Máquina de escribir) */
.tw-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tw-label {
    font-size: 0.6rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

.tw-box {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    color: var(--brand-white) !important;
    min-width: 150px;
    font-family: 'Inter', sans-serif !important;
}

.tw-highlight {
    font-weight: 700 !important;
    color: var(--brand-red) !important;
    text-shadow: 0 0 8px rgba(255, 7, 59, 0.4) !important;
}

.cursor {
    display: inline-block;
    width: 2px; height: 14px;
    background-color: var(--brand-red) !important;
    animation: blink 0.8s infinite;
    margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Redes Sociales en el Header */
.social-icons-compact {
    display: flex;
    gap: 1.2rem; /* Separamos un poco más los iconos entre sí para que respiren mejor */
}

.social-icon-compact {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-icon-compact svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon-compact:hover {
    color: var(--brand-red) !important;
    transform: translateY(-2px);
}

.social-icon-compact:hover svg {
    filter: drop-shadow(0 0 6px rgba(255, 7, 59, 0.8));
}

/* Botón Expandir Pulsante */
@keyframes ripplePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 7, 59, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 7, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 7, 59, 0); }
}

.toggle-btn {
    background: rgba(255, 7, 59, 0.08) !important;
    border: 1px solid rgba(255, 7, 59, 0.3) !important;
    color: var(--brand-red) !important;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: ripplePulse 2s infinite;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.toggle-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-header:hover .toggle-btn {
    background: var(--brand-red) !important;
    color: var(--brand-white) !important;
    box-shadow: 0 0 15px rgba(255, 7, 59, 0.6);
    border-color: var(--brand-red) !important;
    animation: none;
}

.is-expanded .toggle-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--brand-white) !important;
    box-shadow: none;
    animation: none;
}

.is-expanded .toggle-btn svg {
    transform: rotate(180deg);
}

/* ----- CONTENIDO EXPANDIBLE (Acordeón) ----- */
.bar-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.02);
    position: relative;
    z-index: 5;
}

.is-expanded .bar-body { grid-template-rows: 1fr; }

.body-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.is-expanded .body-inner {
    opacity: 1;
    transition-delay: 0.2s;
}

.expanded-grid {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .expanded-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Texto SEO */
.nexnubo-smart-bar p.seo-paragraph {
    font-size: 0.75rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    max-width: 600px;
    letter-spacing: 0.02em;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.nexnubo-smart-bar p.seo-paragraph strong { color: var(--brand-white) !important; font-weight: 600 !important; }
.nexnubo-smart-bar p.seo-paragraph .highlight { color: var(--brand-red) !important; font-weight: 600 !important; }

.copyright-text {
    font-size: 0.6rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 1rem !important;
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* Botón CTA Formulario */
.cta-area {
    display: flex;
    justify-content: flex-end;
}

.cta-button-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 7, 59, 0.25) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.cta-button-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,7,59,0.15), transparent);
    transition: left 0.6s ease;
}

.cta-button-premium:hover {
    transform: translateY(-2px);
    background: rgba(255, 7, 59, 0.08) !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 10px 30px rgba(255, 7, 59, 0.2);
}

.cta-button-premium:hover::before { left: 100%; }

.cta-icon {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 7, 59, 0.4) !important;
    color: var(--brand-red) !important;
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
}

.cta-button-premium:hover .cta-icon {
    background: rgba(255, 7, 59, 0.15) !important;
    border-color: var(--brand-red) !important;
    color: var(--brand-white) !important;
    box-shadow: 0 0 15px rgba(255, 7, 59, 0.4) !important;
}

.tech-rocket {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.cta-button-premium:hover .tech-rocket {
    transform: translateY(-3px) translateX(3px);
    filter: drop-shadow(0 0 8px var(--brand-red));
}

.cta-text-group { display: flex; flex-direction: column; }
.cta-title {
    color: var(--brand-white) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif !important;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Responsive Ocultamientos para que no se rompa en Móvil */
@media (max-width: 1024px) {
    .divider, .tw-label { display: none; }
}
@media (max-width: 768px) {
    .created-by-text, .tw-wrapper { display: none; }
    .cta-button-premium { width: 100%; justify-content: center; margin-top: 1.5rem; }
    .cta-area { justify-content: center; width: 100%; }
    .nexnubo-smart-bar p.seo-paragraph { text-align: center; font-size: 0.7rem !important; }
    .copyright-text { text-align: center; }
}
@media (max-width: 480px) {
    .social-icons-compact { display: none; } /* En pantallas diminutas, esconde las redes para que quepa el logo y botón */
}
