/* =========================================================
   Nemona — Mercadotecnia de Simbiosis
   Custom Styles (complementa Tailwind CSS)
   ========================================================= */

/* --- Variables de mouse interactivo -------------------- */
:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --footer-mouse-x: 50%;
    --footer-mouse-y: 50%;
}

/* --- Glassmorphism base --------------------------------- */
.glass {
    background: rgba(11, 19, 38, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Ambient glow decorativo ---------------------------- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

/* --- Tipografía serif italic ---------------------------- */
.serif-italic {
    font-family: "Libre Caslon Text", serif;
    font-style: italic;
}

/* --- Bloque de lección / bullet lateral ---------------- */
.lesson-block {
    border-left: 2px solid rgba(45, 212, 191, 0.2);
    padding-left: 2rem;
    position: relative;
}
.lesson-block::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #2dd4bf;
    border-radius: 50%;
}

/* --- Material Symbols ----------------------------------- */
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* --- Hero: textura de grano + fondo interactivo -------- */
.hero-grain {
    position: relative;
    overflow: hidden;
    background-color: #000;
}
.hero-grain::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuAQWWfTZnFkAQ5hdE3-xbxo-5VpQZgqrv9_rlMkTXSctsvuDMI29QpJB3tvvQUsPoc-IOAxqHKyy7ZP2D28Ni9rfKvu7KSTGSgCuYPgFcBnuN4LiXlYwfboKeOzPwMTF2ByhFXwx5wUDfkfjhs8skOfYUMkXwOMEHXSw7B3rz6USIzbgZEYyl1FVcPgtYPQaQU-01X40ujKFpgGKl38zf_nMae7xWQqG0Di5-z_OFGoGKpuPfrVc4EBTZqkxSW4eCO5LyOGn8RVqOk);
    filter: contrast(150%) brightness(100%);
    z-index: 5;
}
.hero-interactive-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 600px at var(--mouse-x) var(--mouse-y), rgba(45, 212, 191, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 80%);
    pointer-events: none;
    z-index: 4;
}
.footer-interactive-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 600px at var(--footer-mouse-x) var(--footer-mouse-y), rgba(45, 212, 191, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* --- Chat WhatsApp -------------------------------------- */
.chat-bubble {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
.typing-dots span {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-4px); }
}
#chat-container::-webkit-scrollbar { width: 6px; }
#chat-container::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.2);
    border-radius: 10px;
}

/* --- Flujo horizontal de automatización (Ecosistema) --- */
.flow-line {
    height: 2px;
    background: rgba(45, 212, 191, 0.12);
    position: relative;
    flex-grow: 1;
    overflow: visible;
}
.flow-line-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(45,212,191,0.3), #2dd4bf);
    box-shadow: 0 0 10px rgba(45,212,191,0.6);
    border-radius: 2px;
    transition: none;
}
.flow-pulse {
    position: absolute;
    top: -5px;
    left: -20px;
    width: 40px;
    height: 12px;
    background: #2dd4bf;
    border-radius: 6px;
    filter: blur(6px);
    opacity: 0;
}
.flow-node {
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.flow-node.active {
    border-color: rgba(45,212,191,0.9) !important;
    box-shadow: 0 0 32px rgba(45,212,191,0.5) !important;
    background: rgba(45,212,191,0.18) !important;
}
.flow-node.active .material-symbols-outlined {
    text-shadow: 0 0 12px currentColor;
}

/* --- Simbiosis SVG nodes -------------------------------- */
@keyframes float-node {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(15px, -20px); }
    66%       { transform: translate(-10px, 15px); }
}
@keyframes pulse-node {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 0.9; }
}
.symbiosis-node {
    animation: float-node 6s ease-in-out infinite, pulse-node 4s ease-in-out infinite;
}

/* --- Solution flow SVG paths --------------------------- */
.flow-path {
    stroke-dasharray: 10, 10;
    stroke-dashoffset: 1000;
}
.active-path {
    animation: draw-path 20s linear infinite;
}
@keyframes draw-path {
    to { stroke-dashoffset: 0; }
}
.node-glow {
    transition: all 0.5s ease;
}
