#menuFlotante {
    position: fixed;
    right: 40px;
    top: 270px;
    transform: translateY(-50%);
    z-index: 999999;
}

/* CONTENEDOR */
#menuFlotante .wrapper {
    position: relative;
}

/* =========================
   BLOQUE 1: SOLO BOLITAS
========================= */
#menuFlotante .dots-only {
    position: relative;
    background: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    border:solid 1px rgba(0,0,0,0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

/* línea centrada */
#menuFlotante .dots-only::before {
    content: "";
    position: absolute;
    width: 2px;
    background: #1F3A5C;
    left: 50%;
    transform: translateX(-50%);
    top: 23px;
    height: calc(100% - 40px);
}

/* bolitas */
#menuFlotante .dots-only span {
    width: 8px;
    height: 8px;
    background: #1F3A5C;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 0 0 rgba(255, 94, 1, 0);
}

/* hover igual que bloque 2 */
#menuFlotante .dots-only span:hover {
    background: #789F0C;
    transform: scale(1.4);
    box-shadow: 0 0 8px #789F0C;
}
    
#menuFlotante .dots-only span.active {
    background: #789F0C;
    transform: scale(1.4);
    box-shadow: 0 0 8px #789F0C;
}


/* =========================
   BLOQUE 2: MENU COMPLETO
========================= */
#menuFlotante .menu-full {
    position: absolute;
    right: 0;
    bottom: 0;

    background: #fff;
    padding: 30px 20px 30px 30px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    opacity: 0;
    pointer-events: none;
    transform: translateX(20px) translateY(20px); 
    transition: 0.3s;
    
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* GRID con columna REAL de bolitas */
#menuFlotante .menu-full .item {
    display: grid;
    grid-template-columns: 1fr 30px; /* más espacio */
    align-items: center;
}

/* texto */
#menuFlotante .menu-full a {
    color: #1F3A5C;
    text-decoration: none;
    white-space: nowrap;
    padding-right: 35px; /* separación del texto */
}

/* bolita centrada */
#menuFlotante .menu-full .dot {
    width: 11px;
    height: 11px;
    background: #1F3A5C;
    border-radius: 50%;
    justify-self: center;
    z-index: 2;
    transition: 0.3s;
}

/* LÍNEA CENTRADA EN LA COLUMNA */
#menuFlotante .menu-full::before {
    content: "";
    position: absolute;
    width: 1px;
    background: #1F3A5C;

    /* esto la centra EXACTO en la columna */
    right: 34px; /* padding derecho */
    transform: translateX(-50%);

    top: 80px;
    height: calc(100% - 115px);
}

/* hover */
#menuFlotante .menu-full .item:hover .dot {
    background: #789F0C;
    transform: scale(1.4);
    box-shadow: 0 0 8px #789F0C;
}

#menuFlotante .menu-full .item:hover a {
    color: #789F0C;
}

/* =========================
   HOVER (CAMBIO DE BLOQUE)
========================= */
#menuFlotante .wrapper:hover .dots-only {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
}

#menuFlotante .wrapper:hover .menu-full {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}
    
#menuFlotante .dots-only span,
#menuFlotante .menu-full .dot {
    cursor: pointer;
}
    
#menuFlotante .menu-title {
    font-weight: 600;
    margin-bottom: 0px;
    padding-left: 2px;
}
    
/* item activo */
#menuFlotante .menu-full .item.active a {
    color: #789F0C;
}

/* bolita activa */
#menuFlotante .menu-full .item.active .dot {
    background: #789F0C;
    transform: scale(1.4);
    box-shadow: 0 0 8px #789F0C;
}
    
/* BOTON CONTACTENOS */
/* CONTENEDOR */
.contact-fab {
    position: absolute; /*  ya no fixed */
    top: calc(100% + 15px); /* debajo del menú */
    right: 0;

    display: flex;
    align-items: center;
    gap: 12px;

    flex-direction: row-reverse; /* texto a la derecha */
    
}

/* BOTÓN CIRCULAR */
.contact-fab .fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff; /* blanco */
    color: #1F3A5C; /* morado */

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* igual que menús */
    transition: all 0.3s ease;
    
    border:solid 1px rgba(0,0,0,0.15);
}

/* HOVER BOTÓN */
.contact-fab .fab-btn:hover {
    transform: scale(1.1);
    transform: scale(1.1);
}

/* TEXTO (OCULTO INICIAL) */
.contact-fab .fab-label {
    background: #fff;
    color: #1F3A5C;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;

    transition: all 0.3s ease;
}

/* FLECHITA (detalle pro) */
.contact-fab .fab-label::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

/* HOVER GENERAL */
.contact-fab:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
    
/* BOTÓN TOP */
.btn-top {
    position: fixed; /* clave */
    right: 40px;
    bottom: 30px; /* pegado abajo de la pantalla */

    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: #1F3A5C;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    z-index: 999999;

    transition: all 0.3s ease;

    /* oculto inicialmente */
    opacity: 0;
    pointer-events: none;
    text-decoration: none !important;
    border:solid 1px rgba(255,255,255,0.15);
}

/* flecha */
.btn-top::before {
    content: "↑";
    font-size: 20px !important;
    transition: transform 0.3s ease;
    margin-top: -5px;
}

/* hover */
.btn-top:hover::before {
    transform: translateY(-4px);
}

.btn-top:hover {
    transform: scale(1.05);
    color: #789F0C;
}

@media (max-width: 768px) {
    #menuFlotante,
    .btn-top {
        display: none !important;
    }
}